natiny_input_get_mouse_y_speed

C
int natiny_input_get_mouse_y_speed(void);

Returns the vertical movement delta of the mouse cursor since the previous frame.

Returns

Type Description
int Vertical movement in drawing units since the previous frame

Example

C
int dy = natiny_input_get_mouse_y_speed();

Notes

  • Positive values indicate downward movement; negative values indicate upward movement.
  • The result uses the same coordinate system as drawing commands and is 0 when the cursor position does not change.