| Summary: | Support horizontal mouse scrolling | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jonas Koelker <jonaskoelker> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
Jonas Koelker
2007-01-17 16:39:46 UTC
I agree! This has been added to SDL 1.2.12, subversion revision 3156 Buttons 6 and 7 are likely to be real mouse buttons (see the WM_XBUTTON patch in Bug #311)...I know we picked 4 and 5 for the vertical wheel because it matched XFree86's nasty hack, but can we select something that isn't likely to map to a real button, like, 44 and 45? (and in 1.3, can we have these not map to buttons at all?) --ryan. We could, although I picked 6 and 7 because it looks like that's what horizontal scrolling usually maps to in xorg. At this point I don't think there's any way to tell in X11 whether buttons 4/5/6/7 are actual buttons or mouse wheel, which is a shame... In 1.3 there's a real scrolling event, and the mousewheel button events are only there for backwards compatibility. The only problem with this is that if we use buttons 6 and 7 to represent mousewheel, then that actually changes the buttons that applications will see. That's probably not acceptable for SDL 1.2 which is supposed to be binary compatible between revisions. Okay, this has been reverted in 1.2 with subversion revision 3159, and horizontal scrolling support is now in SDL 1.3. |