sdl2_frt/src/joystick
Sam Lantinga 23c01c1890 Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile
x414e54

It is a bit of a pain to update the library or rely on whatever version the user has on their computer for default mappings.

So providing an easily updatable text file via SDL_GameControllerAddMappingsFromFile is still currently the most viable way. However using this replaces all mappings provided by the SDL_HINT_GAMECONTROLLERCONFIG environment variable which may have come from the user's custom Steam mapping.

There should be an easy way for games to supply extra game controller mappings to fill in the differences between SDL versions without it clobbering the SDL_HINT_GAMECONTROLLERCONFIG environment variable.

Internally the mappings could use a priority system and if the priority is lower then it will not overwrite the mappings.

For now it just assumes SDL_HINT_GAMECONTROLLERCONFIG is the highest priority, the default hardcoded are the lowest and anything set via the API is medium.
2016-11-11 13:29:23 -08:00
..
android Fixed bug 3444 - Android-TV: no more handling of back button on remote 2016-10-17 22:09:22 -07:00
bsd Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
darwin Updated Mac OS X game controller support 2016-11-11 04:06:00 -07:00
dummy Updated copyright to 2016 2016-01-02 10:10:34 -08:00
emscripten Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
haiku Fixed freeing strings created by strdup() with SDL_free(). 2016-06-28 21:08:23 +02:00
iphoneos Implemented SDL_GetHintBoolean() to make it easier to check boolean hints 2016-10-07 23:40:44 -07:00
linux Standardized the format of the SDL joystick GUID and added functions to retrieve the USB VID/PID from a joystick and game controller. 2016-11-10 17:19:34 -08:00
psp Patched to compile on various platforms. 2016-04-12 18:11:36 -04:00
windows Updated Windows game controller support 2016-11-11 03:35:37 -08:00
SDL_gamecontroller.c Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile 2016-11-11 13:29:23 -08:00
SDL_gamecontrollerdb.h Updated Windows game controller support 2016-11-11 03:35:37 -08:00
SDL_joystick_c.h Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() 2016-08-26 12:18:08 -07:00
SDL_joystick.c Fixed whitespace 2016-11-11 04:30:09 -08:00
SDL_sysjoystick.h Fixed recentering triggers when the application doesn't have focus 2016-10-07 16:13:37 -07:00
sort_controllers.py Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00