Ryujinx-SDL/src
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
..
atomic Updated copyright to 2016 2016-01-02 10:10:34 -08:00
audio Fixed bug 3484 - DSP driver does not detect /dev/dsp0 2016-11-11 12:41:06 -08:00
core Fixed bug 3473 - can't build on linux with an old kernel 2016-11-01 10:33:44 -07:00
cpuinfo Updated copyright to 2016 2016-01-02 10:10:34 -08:00
dynapi 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
events Removed empty statement. 2016-11-05 21:22:39 +01:00
file Updated copyright to 2016 2016-01-02 10:10:34 -08:00
filesystem Fixed compiling if filesystem is disabled (thanks, Elias!). 2016-08-30 21:14:13 +02:00
haptic Implemented SDL_GetHintBoolean() to make it easier to check boolean hints 2016-10-07 23:40:44 -07:00
joystick Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile 2016-11-11 13:29:23 -08:00
libm Updated copyright to 2016 2016-01-02 10:10:34 -08:00
loadso Fixed bug 3478 - Patch Haiku to use dlopen instead of load_add_on 2016-11-01 10:30:46 -07:00
main Fixed bug 3461 - Implement TEXTINPUT events for Haiku 2016-10-19 20:42:22 -07:00
power Initial Apple TV / tvOS support. 2016-09-13 22:18:06 -03:00
render Better fix for last point in D3D11 renderer, thanks to Nader Golbaz 2016-11-06 15:15:32 -08:00
stdlib Define _GNU_SOURCE when building SDL 2016-11-11 13:14:00 -08:00
test Define _GNU_SOURCE when building SDL 2016-11-11 13:14:00 -08:00
thread Define _GNU_SOURCE when building SDL 2016-11-11 13:14:00 -08:00
timer Windows: Fixed not removing the always added hint callback on quit. 2016-10-16 22:47:37 +02:00
video Define _GNU_SOURCE when building SDL 2016-11-11 13:14:00 -08:00
SDL_assert_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_assert.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_error_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_error.c Only use GCC pragmas when we're building with GCC 2016-10-01 11:22:39 -07:00
SDL_hints.c Implemented SDL_GetHintBoolean() to make it easier to check boolean hints 2016-10-07 23:40:44 -07:00
SDL_internal.h Define _GNU_SOURCE when building SDL 2016-11-11 13:14:00 -08:00
SDL_log.c Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc 2016-10-01 12:28:05 -07:00
SDL.c Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized 2016-10-17 21:44:32 -07:00