Forráskód Böngészése

Allow mappings to be added before GameControllerInit

Ethan Lee 9 éve
szülő
commit
2a754ca735
1 módosított fájl, 0 hozzáadás és 1 törlés
  1. 0 1
      src/joystick/SDL_gamecontroller.c

+ 0 - 1
src/joystick/SDL_gamecontroller.c

@@ -861,7 +861,6 @@ SDL_GameControllerInit(void)
 {
     int i = 0;
     const char *pMappingString = NULL;
-    s_pSupportedControllers = NULL;
     pMappingString = s_ControllerMappings[i];
     while (pMappingString) {
         SDL_GameControllerAddMapping(pMappingString);