Skip to content

Use SDL2 SDL_GameController instead of SDL_Joystick where possible

Freddy requested to merge DefaultUser/sdl2_gamecontroller into div0-stable

SDL_GameController provides mappings between axis and button indices and a general layout that is similar to a XBox 360 controller. Since this layout is common, these changes allow creating proper controller mappings for a large variety of gamepad/OS combinations out of the box.

This fixes issues like xonotic-data.pk3dir#1947

Merge request reports