ESP32 Display Controller and Graphics Library

◆ scancodeAvailable()

int scancodeAvailable ( )

Gets 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 Keyboard.begin() method should be called with generateVirtualKeys = false and createVKQueue = false.
Alternatively it is also possible to suspend the conversion task calling Keyboard.suspendVirtualKeyGeneration() method.

The number of scancodes available to read.

Definition at line 678 of file keyboard.cpp.