From ea9bc659f59efc38654cc3a4d3e42ccb90b3e84b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 13 Aug 2017 20:39:00 -0700 Subject: [PATCH] Added check for XBOX in addition to Xbox and X-Box --- src/joystick/SDL_gamecontroller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 37de32510..ba0ab8369 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/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; } }