[Commits] SDL: Allow mappings to be added before GameControllerInit

libsdl.org revision control commits-owner at libsdl.org
Mon Mar 7 07:44:11 PST 2016


details:   https://hg.libsdl.org/SDL/rev/c59a7e780093
changeset: 10105:c59a7e780093
user:      Ethan Lee <flibitijibibo at flibitijibibo.com>
date:      Mon Mar 07 08:22:55 2016 -0500
description:
Allow mappings to be added before GameControllerInit

diffstat:

 src/joystick/SDL_gamecontroller.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 4cd67316b308 -r c59a7e780093 src/joystick/SDL_gamecontroller.c
--- a/src/joystick/SDL_gamecontroller.c	Sat Mar 05 23:25:23 2016 -0500
+++ b/src/joystick/SDL_gamecontroller.c	Mon Mar 07 08:22:55 2016 -0500
@@ -861,7 +861,6 @@
 {
     int i = 0;
     const char *pMappingString = NULL;
-    s_pSupportedControllers = NULL;
     pMappingString = s_ControllerMappings[i];
     while (pMappingString) {
         SDL_GameControllerAddMapping(pMappingString);


More information about the commits mailing list