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 - Inconsistent values in SDL_MOUSEWHEEL event
Summary: Inconsistent values in SDL_MOUSEWHEEL event
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-23 03:18 UTC by Stepan Zastupov
Modified: 2013-05-21 02:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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