[aquaria] Absolute input device fix

Thomas W. Most twm at freecog.net
Fri Apr 22 02:16:02 EDT 2011


I've attached a patch for an issue with absolute input devices like
Wacom tablets and touchscreens in fullscreen.  The issue is actually
an SDL bug, but there is a pretty simple workaround, which is
described pretty thoroughly in Debian bug 559615 [1].  Essentially,
SDL implements infinite scrolling in a way which doesn't play nice
with these input devices.  Disabling this behavior is as simple as:

  export SDL_MOUSE_RELATIVE=0
  ./aquaria

The patch adds setting this environment variable to the Aquaria binary
to avoid the need for a wrapper script.

This may fix bug 4608 [2] based on the symptoms described there,
though I haven't confirmed as I neither own a Mac nor have access to a
Wacom tablet at the moment.  I have tested this patch under Linux
using a Lenovo S10-3t touchscreen netbook.

I'm hoping that someone else can test this on the platforms I don't
have access to and confirm there are no regressions.

--Tom

[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559615
[2]: https://bugzilla.icculus.org/show_bug.cgi?id=4608
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abs-input.patch
Type: text/x-patch
Size: 466 bytes
Desc: not available
URL: <http://icculus.org/pipermail/aquaria/attachments/20110422/ca52a629/attachment.bin>


More information about the aquaria mailing list