Motivation for SDL backend mouse wheel handling #6081
Replies: 3 comments 9 replies
-
Whatever motivation there was has probably been lost to time. It's changed shape a few times over the years, but the general logic has been the same since the SDL backend was originally introduced back in 2015: imgui/examples/opengl_sdl_example/imgui_impl_sdl.cpp Lines 220 to 229 in 2acdafe It might just be that it was inspired by the example code from the SDL documentation, which does the same thing: https://wiki.libsdl.org/SDL2/SDL_MouseWheelEvent |
Beta Was this translation helpful? Give feedback.
-
Knowing which values are you getting and on what system may be useful to know. Thanks! |
Beta Was this translation helpful? Give feedback.
-
See #4019 (comment) for a sneak peak at some messy the "mouse wheeling" landscape. Although I don't REMEMBER why we clamped it is apparent this is needed until we can unf*ckify this mess. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering what the motivation is for handling the mouse wheel in SDL like this:
why are increments clipped to +-1?
Beta Was this translation helpful? Give feedback.
All reactions