We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1250

Summary: Inconsistent values in SDL_MOUSEWHEEL event
Product: SDL Reporter: Stepan Zastupov <stepan.zastupov>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Stepan Zastupov 2011-07-23 03:18:53 UTC
SDL_MOUSEWHEEL on X11 always reports direction scale equal to 1, while on Win7 (haven't tested on other versions or Mac) it's multiple of 120.

I propose the following solutions:
For Windows: divide it by 120 before filling SDL_MouseWheelEvent. Or, provide a way to query the scale.
For X11: currently, the scale is constant while on Windows it accelerates when a user scroll like crazy. So it would be great to have the acceleration support on X11, if possible.
Comment 1 Sam Lantinga 2013-05-21 02:47:16 UTC
This is fixed in the current snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip