Support horizontal scrolling in SDL

Hi. I’m new to the list, so that’s why you don’t know me.

My agenda is the following: to have horizontal scrolling (with EmulateWheel)
in Battle for Wesnoth (wesnoth.org; a libsdl-using turn-based strategy game).
I wrote a patch which got rejected more or less because it wasn’t a standard
feature of sdl (see patch 644 on https://gna.org/patch/?group=wesnoth).

So, I figure that I should convince you to support horizontal scrolling.

Last time you discussed this, the following points were made:
(1) On OS X, when you hold shift and scroll, the vertical scroll events become
horizontal. What should SDL do about this?
(2) We could define SDL_BUTTON_WHEEL(LEFT|RIGHT).
(3) We shouldn’t, because it would not work on more than one platform.
(4) Yes it would.

And that’s why you don’t support horizontal scrolling, AFAICT. See for
yourself: http://www.libsdl.org/pipermail/sdl/2005-March/thread.html#67970

To actually quote something:

Microsoft also sells (and Windows supports) a USB mouse with both vertical
and horizontal wheels, so it’s not necessarily a Mac-specific thing.

And xorg has EmulateWheel: pick a button. When you hold that button, pointer
movement gets converted into scroll events (in both directions); and you get
do decide which button events they get converted into. Common wisdom is that
vert=4,5 and horz=6,7.

So, every major platform can generate horizontal scroll events. I think
libsdl should provide a uniform interface to it, because there’s demand for it
from application developers: I want to use horizontal scrolling, the wesnoth
devs would like to be able to accept the patch, and horizontal scrolling is
already used in many other applications (konqueror and firefox, to name two).

In summary: support horizontal scrolling in SDL!–
Jonas K?lker <@Jonas_Koelker> URL:http://jonaskoelker.homeunix.org/
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070114/14ac1c33/attachment.pgp

Realising that the subject is very misleading, I’ve chosen to rectify it.

Is that the reason why I’m not getting any responses? People in $timezone are
not asleep (AFAICT based on #traffic). Should I have posted this in bugzilla?
If not there and not here, where? I will take this to bugzilla instead unless
I’m told not to within ~= the next day.On Sun, Jan 14, 2007 at 04:18:24PM +0100, Jonas Koelker wrote:

In summary: support horizontal scrolling in SDL!

Jonas K?lker <@Jonas_Koelker> URL:http://jonaskoelker.homeunix.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070116/c06743ef/attachment.pgp