FabGL
ESP32 VGA Controller and Graphics Library

◆ getData()

int fabgl::PS2ControllerClass::getData ( int  timeOutMS = -1,
bool  isReply = false 
)

Get a scancode from the queue.

Parameters
timeOutMSTimeout in milliseconds. -1 means no timeout (infinite time).
isReplySet true when waiting for a reply from a command sent to the device.
Returns
The first scancode of the queue (-1 if no data is available in the timeout period).