FabGL
ESP32 Display Controller and Graphics Library
|
bool getNextDelta | ( | MouseDelta * | delta, |
int | timeOutMS = -1 , |
||
bool | requestResendOnTimeOut = false |
||
) |
Gets a mouse movement from the queue.
delta | Pointer to MouseDelta structure to be filled with mouse movement. May be nullptr if not required (in this case only Status().buttons is updated. |
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:
MouseDelta mouseDelta; Mouse.getNextDelta(&mouseDelta);