Returns the mouse movement velocity in the X-axis direction.
y
Returns the mouse movement velocity in the Y-axis direction.
speed
Returns the mouse movement velocity.
Return Value
Returns whether the acquisition succeeded or failed
Description
Gets the current mouse movement velocity in pixels / sec.
Measurement starts from the moment the mouse enters the window.
You can use Window.resetMouseVelocity to reset the measurement, allowing you to measure from any timing.