SDL-mirror/src/joystick
Sam Lantinga 68b32846b8 Fixed bug 1371 - DX joystick axis ordering fix
Alex Nankervis 2012-01-15 11:19:45 PST

DirectX joysticks can enumerate their axis out of order. This results in some
joysticks having vertical/horizontal swapped, for example (vertical axis gets
assigned to axis0). Joysticks that I've tested with this problem: XBOX 360
controller, Logitech Extreme 3D Pro.

Attached is a diff that fixes this by sorting the DX joystick objects by their
data offsets into the DX data structs. This puts the joystick objects into a
standard ordering (X axis -> axis0, Y axis -> axis1, and so on).
2012-01-15 15:48:27 -05:00
..
android Fixed bug 1368 - Enabling joystick subsystem cause an infinite loop 2012-01-13 20:57:35 -05:00
beos Happy New Year! 2011-12-31 09:28:07 -05:00
bsd Happy New Year! 2011-12-31 09:28:07 -05:00
darwin Happy New Year! 2011-12-31 09:28:07 -05:00
dummy Happy New Year! 2011-12-31 09:28:07 -05:00
iphoneos Happy New Year! 2011-12-31 09:28:07 -05:00
linux Happy New Year! 2011-12-31 09:28:07 -05:00
nds Happy New Year! 2011-12-31 09:28:07 -05:00
windows Fixed bug 1371 - DX joystick axis ordering fix 2012-01-15 15:48:27 -05:00
SDL_joystick.c Fixed bug 1337 - joystick crash due to heap corruption with btnx 2012-01-01 16:58:00 -05:00
SDL_joystick_c.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_sysjoystick.h Happy New Year! 2011-12-31 09:28:07 -05:00