XInput Xbox360 button mapping completely different to SDL1.2/SDL2 Linux

Hi,

Why is the button mapping in SDL_dxjoystick.c for XInput devices completely different compared to the DX version from SDL1.2? Wouldn’t it be easier for users to have the same mapping as before? And Windows (when used with Xinput) now has completely different mappings compared to other operating systems like Linux. Ok, there is now this special axis for the triggers, but I don’t understand the change for the buttons

Are you talking about the “Joystick” Subsystem? or the GameController
subsystem?

In my experience controllers have never had similar mappings even across
OSes even in SDL1.2, and it has been rather frustrating in the past,
which is why the GameController API is SO nice and welcome.

You really should be using the GameController API which maps all known
controllers to a common button & axis mapping. (mappings are update-able
via an API call (or an ENV var on startup).On 06/26/2013 05:30 PM, Franz Schrober wrote:

Hi,

Why is the button mapping in SDL_dxjoystick.c for XInput devices completely different compared to the DX version from SDL1.2? Wouldn’t it be easier for users to have the same mapping as before? And Windows (when used with Xinput) now has completely different mappings compared to other operating systems like Linux. Ok, there is now this special axis for the triggers, but I don’t understand the change for the buttons


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Edward Rudd
OutOfOrder.cc
Skype: outoforder_cc
317-674-3296