Skip to content

SDL2: Use precise mouse wheel values#5830

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
Menduist:sdl_use_precise_mousewheel
May 1, 2026
Merged

SDL2: Use precise mouse wheel values#5830
raysan5 merged 1 commit intoraysan5:masterfrom
Menduist:sdl_use_precise_mousewheel

Conversation

@Menduist
Copy link
Copy Markdown
Contributor

@Menduist Menduist commented May 1, 2026

https://wiki.libsdl.org/SDL2/SDL_MouseWheelEvent

    Sint32 x;           /**< The amount scrolled horizontally, positive to the right and negative to the left */
    Sint32 y;           /**< The amount scrolled vertically, positive away from the user and negative toward the user */
[...]
    float preciseX;     /**< The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18) */
    float preciseY;     /**< The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18) */

SDL 2.0.18 was released in 2021

@Menduist Menduist force-pushed the sdl_use_precise_mousewheel branch from 03e967d to 23a406a Compare May 1, 2026 12:55
@Menduist Menduist changed the title SDL: Use precise mouse wheel values SDL2: Use precise mouse wheel values May 1, 2026
@raysan5 raysan5 merged commit 05c15c8 into raysan5:master May 1, 2026
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented May 1, 2026

@Menduist thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants