Window.getMouseVelocity

Function/Meaning
Get mouse movement velocity (1.1.0 or later)
Type
Method of the Window class
Syntax
getMouseVelocity(x, y, speed)
Arguments
x 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.
Reference
Window.getTouchVelocity
Window.resetMouseVelocity