FabGL
ESP32 Display Controller and Graphics Library

◆ getNextVirtualKey() [1/2]

VirtualKey getNextVirtualKey ( bool *  keyDown = nullptr,
int  timeOutMS = -1 
)

Gets a virtual key from the queue.

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

Parameters
keyDownA pointer to boolean variable which will contain if the virtual key is depressed (true) or released (false).
timeOutMSTimeout in milliseconds. -1 means no timeout (infinite time).
Returns
The first virtual key of the queue (VK_NONE if no data is available in the timeout period).

Definition at line 704 of file keyboard.cpp.