From dc1d3c2974fcfec86e2cefb3466d13d6bf47401b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 4 Feb 2020 18:36:23 -0800 Subject: [PATCH] Catch both PS3 and PS4 motion controls and don't treat them as a game controller --- src/joystick/SDL_gamecontroller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index ba810222b..9dd27b545 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -1494,8 +1494,8 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid) Uint32 vidpid; #if defined(__LINUX__) - if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) { - /* Don't treat the PS4 motion controls as a separate game controller */ + if (name && SDL_strstr(name, "Controller Motion Sensors")) { + /* Don't treat the PS3 and PS4 motion controls as a separate game controller */ return SDL_TRUE; } #endif