mirror of
https://github.com/yawut/SDL.git
synced 2026-08-05 10:08:46 -05:00
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). |
||
|---|---|---|
| .. | ||
| android | ||
| beos | ||
| bsd | ||
| darwin | ||
| dummy | ||
| iphoneos | ||
| linux | ||
| nds | ||
| windows | ||
| SDL_joystick_c.h | ||
| SDL_joystick.c | ||
| SDL_sysjoystick.h | ||