natiny.input.get_mouse_x_speed
natiny.input.get_mouse_x_speed() -> delta_x
Returns the horizontal movement delta of the mouse cursor since the previous frame.
Returns
| Type | Description |
|---|---|
number |
Horizontal movement in drawing units since the previous frame |
Example
local dx = natiny.input.get_mouse_x_speed()