Allow mappings to be added before GameControllerInit
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Mon, 07 Mar 2016 08:22:55 -0500
changeset 10105 c59a7e780093
parent 10104 4cd67316b308
child 10106 d240baef8248
Allow mappings to be added before GameControllerInit
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);