Bug#559615: boswars: uncontrollable with Wacom tablet when in full-screen mode
Kalle Olavi Niemitalo
kon at iki.fi
Sun Dec 20 17:39:01 UTC 2009
Kalle Olavi Niemitalo <kon at iki.fi> writes:
> This now looks like an SDL bug.
If I set SDL_MOUSE_RELATIVE=0 in the environment,
then the tablet works correctly in full-screen mode too.
> The Barrage game has no such problem with the tablet
> and I see it gets the coordinates from SDL_GetMouseState
> rather than from SDL_PollEvent.
The real reason though seems to be that Barrage uses SDL_Cursor;
if the cursor is visible, then SDL lets X control its location
and doesn't consider relative mouse motion so important that
it'd want to keep the cursor away from the edges of the screen.
I see these ways to fix or work around this bug:
(a) putenv("SDL_MOUSE_RELATIVE=0") in boswars before SDL
initialization. AFAICT boswars does not care about relative
mouse motion.
(b) Make boswars use SDL cursors instead of drawing its own.
(c) Make boswars use a wholly transparent SDL cursor, then draw
its own at the same location.
(d) Add to SDL a separate interface with which the application
can disable pointer warping. Then make boswars call that.
(e) Make SDL explicitly support tablet devices (perhaps via
XInput) and pass their coordinates through unmolested.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20091220/a78a0473/attachment.pgp>
More information about the Pkg-games-devel
mailing list