FabGL
ESP32 VGA Controller and Graphics Library
|
int fabgl::KeyboardClass::scancodeAvailable | ( | ) |
Get the number of scancodes available in the queue.
Scancodes are always generated but they can be consumed by the scancode-to-virtualkeys task. So, in order to use this method KeyboardClass.begin() method should be called with generateVirtualKeys = false and createVKQueue = false. Alternatively it is also possible to suspend the conversion task calling KeyboardClass.suspendVirtualKeyGeneration() method.