Răsfoiți Sursa

Added check for XBOX in addition to Xbox and X-Box

Sam Lantinga 8 ani în urmă
părinte
comite
ea9bc659f5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/joystick/SDL_gamecontroller.c

+ 1 - 1
src/joystick/SDL_gamecontroller.c

@@ -892,7 +892,7 @@ static ControllerMapping_t *SDL_PrivateGetControllerMappingForNameAndGUID(const
 #endif /* __LINUX__ */
 
     if (!mapping && name) {
-        if (SDL_strstr(name, "Xbox") || SDL_strstr(name, "X-Box")) {
+        if (SDL_strstr(name, "Xbox") || SDL_strstr(name, "X-Box") || SDL_strstr(name, "XBOX")) {
             mapping = s_pXInputMapping;
         }
     }