ESP32 Display Controller and Graphics Library

◆ getNextScancode()

int getNextScancode ( int  timeOutMS = -1,
bool  requestResendOnTimeOut = false 

Gets a scancode from 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.

timeOutMSTimeout in milliseconds. -1 means no timeout (infinite time).
requestResendOnTimeOutIf true and timeout has expired then asks the keyboard to resend the scancode.
The first scancode of the queue (-1 if no data is available in the timeout period).

Definition at line 207 of file keyboard.cpp.