ESP32 Display Controller and Graphics Library

◆ getNextVirtualKey() [2/2]

bool getNextVirtualKey ( VirtualKeyItem item,
int  timeOutMS = -1 

Gets a virtual key from the queue, including associated scan code.

Virtual keys are generated from scancodes only if generateVirtualKeys parameter is true (default) and createVKQueue parameter is true (default) of Keyboard.begin() method.

itemPointer to VirtualKeyItem structure which receive virtual key info.
timeOutMSTimeout in milliseconds. -1 means no timeout (infinite time).
True if item has been received. False if no data is available in the timeout period.

Definition at line 695 of file keyboard.cpp.