Window.getMouseVelocity

Function/Meaning

[Windows *] Get mouse coordinate movement speed

Type
Windowclassmethod of
Syntax
getMouseVelocity(x, y, speed)
Arguments
x

Returns the mouse coordinate movement speed in the X-axis direction.

y

Returns the mouse coordinate movement speed in the Y-axis direction.

speed

The mouse coordinate movement speed is returned.

Return value

Returns whether the acquisition was successful or unsuccessful

Explanation

Get the current mouse movement speed in pixel / sec.
Measurement starts from the moment you enter the window.
You can use Window.resetMouseVelocity to reset the measurement so that you can get the measurement at any time.

Reference
Window.getTouchVelocity
Window.resetMouseVelocity