|
FabGL
ESP32 Display Controller and Graphics Library
|
| bool getNextPacket | ( | MousePacket * | packet, |
| int | timeOutMS = -1, |
||
| bool | requestResendOnTimeOut = false |
||
| ) |
Gets a mouse raw movement (packet) from the queue.
| packet | Pointer to MousePacket structure to be filled with mouse movement. |
| timeOutMS | Timeout in milliseconds. -1 means no timeout (infinite time). |
| requestResendOnTimeOut | If true and timeout has expired then asks the mouse to resend the mouse movement. |
Example:
MousePacket mousePacket; Mouse.getNextPacket(&mousePacket);