I have to appologize for not being vigilant keeping up on the list. I did search
the mailing list archives, and found nothing relavant.
My question is this:
Does SDL have CROSS-PLATFORM mouse-wheel support?
The state of affairs as I understand them regarding mouse-wheels with
SDL is as follows:
1) XFree86 has support for the mouse wheel as a third axis (Z)
2) Since scripting actions based on axis-moved events is
impractical, most XFree86 setups have the Z axis
changing remapped to buttons 4 and 5. (XFree86,
convieniently, provides such a remapping facility)
3) Since the X11 spec only allows for 5 mouse buttons "pure bread"
X11 apps can't accept input past the third button, if the
system remaps the Z axis to buttons 4 and 5... (XFree86
circumvents this by allowing for more than 5 buttons,
but then the app would be tied to a XFree86
extension...)
4) Since most XFree86 setups with mouse wheels are remapped to
use button 4 and 5, and most SDL development
propigates from Linux (running XFree86) most SDL
apps adopted this as the (defacto) standard means to
access the mouse wheel, but since SDL didn't want to be
tied to XFree86, it doesn't allow access to buttons
beyond button 5.
5) Non-X platforms (namely windows) handle the mouse-wheel
totally separate from axises and buttons...
What I really want to know is does SDL include code to map mouse-wheel
events on non-X platforms back to button 4 and 5 events so that the
same code will act similarly on all platforms?
Any comments and/or suggestions welcome,
Best holiday regards,
-Loren
…
Great news! Get free KNXmail here!
http://www.knx1070.comSubject: The verdict on CROSS-PLATFORM mouse wheel access?