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 614 - Only 5 axis detected with Xbox 360 controller
Summary: Only 5 axis detected with Xbox 360 controller
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 1.2.13
Hardware: x86 Windows (XP)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL: http://uppix.net/f/f/1/6c3350ac1ec87b...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 05:59 UTC by hubadu
Modified: 2008-08-14 06:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hubadu 2008-08-14 05:59:09 UTC
SDL_Joystick only works with 5 axis with the x360 controller, one is missing, the red surrounded one one the picture. I don't have this issue with others API.
Comment 1 hubadu 2008-08-14 06:10:34 UTC
The digital pad of the X360 controller must provide (on some other api it's the axis 32) a perfect float angle value, for instance:
- up arrow -> 0°
- up arrow + right arrow -> 45°
- right arrow -> 90°
...



Comment 2 hubadu 2008-08-14 06:28:17 UTC
Oops...
Xbox 360 controller is detected as a JoyHatMotion event.


Sorry ;)