FabGL
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.

Returns
The number of scancodes available to read.

Definition at line 201 of file keyboard.cpp.