[SDL] Analogue joystick "sticks" on OS X

mike stedman ravuya at gmail.com
Sun Apr 22 16:18:16 PDT 2007


Hey all,

When working with analogue joysticks on Mac OS X (Logitech Wingman
Rumblepad, Microsoft Xbox360 wired controller) I notice that the stick gets
wedged in one direction at program initialization after I push it initially.

After I do a full circle on the stick it becomes "unstuck" but this looks
very unprofessional. Does anyone know what's going on here? I have deadzone
code, but the wedging seems to be near 100% in the direction opposite what I
just pressed.

>From what I can tell, if I start my program and push up-left on the
joystick, the game will respond to that slightly, but then repeatedly emit
down-right motion when I release the stick until I do a full circle with the
stick, after which point it acts normally.

Is SDL doing some kind of adaptive re-calibration, or is this the fault of
the OS X joystick driver? I haven't encountered this issue on Windows or
Linux and can't see anything in the archives about it. I am using the
SDL_Joystick code instead of the event interface, but will change over if
the bug is fixed there.

Any insight would be great, particularly if there's some sort of "hidden"
SDL_Joystick function to force recalibration.
-- 
Mike
http://rav.realitybytes.tk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070422/23de94e7/attachment.htm 


More information about the SDL mailing list