We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 430

Summary: Mac OS X joystick code is busted...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: PowerPC   
OS: Mac OS X (All)   

Description Ryan C. Gordon 2007-05-28 20:51:53 UTC
Date: Sun, 22 Apr 2007 17:18:16 -0600
From: "mike stedman"
To: sdl@libsdl.org
Subject: [SDL] Analogue joystick "sticks" on OS X

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
Comment 1 Ryan C. Gordon 2007-05-28 20:52:15 UTC
I can confirm this here. Looking into it...

--ryan.

Comment 2 Ryan C. Gordon 2007-05-28 22:32:56 UTC
Whoops, this is a dupe, someone reported this a long time ago...

--ryan.



*** This bug has been marked as a duplicate of bug 344 ***