From 98829d37e8bd2c3e5a617d19d41a103e330d1bc5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 11 Dec 2018 19:50:58 -0800 Subject: [PATCH] Handle both "Sony Interactive Intertainment" and "Sony Computer Entertainment" when ignoring motion sensors --- 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 c028716bb..69e41caeb 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -1469,7 +1469,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid) Uint32 vidpid; #if defined(__LINUX__) - if (name && SDL_strcmp(name, "Sony Interactive Entertainment Wireless Controller Motion Sensors") == 0) { + if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) { /* Don't treat the PS4 motion controls as a separate game controller */ return SDL_TRUE; }