natiny_input_get_wheel_x

C
float natiny_input_get_wheel_x(void);

Returns the accumulated horizontal wheel movement since the last frame, in notches. Every wheel event reported between frames contributes to the result. The value is independent of the window's scale mode and uses the same unit on the desktop and in a browser. Positive is to the right. Most mice report 0.0f; trackpads can report many small horizontal deltas.

Returns

Type Description
float Notches turned this frame; 0.0f when it did not

Example

C
timeline_x += natiny_input_get_wheel_x() * 24.0f;