FabGL
ESP32 Display Controller and Graphics Library

◆ setSampleRate()

bool setSampleRate ( int  value)
inline

Sets the maximum rate of mouse movements reporting.

The default sample rate is 60 samples/sec.

Parameters
valueSample rate as samples per second. Valid values: 10, 20, 40, 60, 80, 100, and 200.
Returns
True if command has been successfully delivered to the mouse.
Examples
VGA/SpaceInvaders/SpaceInvaders.ino.

Definition at line 232 of file mouse.h.