Catch both PS3 and PS4 motion controls and don't treat them as a game controller
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Feb 2020 18:36:23 -0800
changeset 13487e6b1848e4f1e
parent 13486 7057789eda0d
child 13488 97d9e8bfd582
Catch both PS3 and PS4 motion controls and don't treat them as a game controller
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Tue Feb 04 16:05:39 2020 -0800
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Tue Feb 04 18:36:23 2020 -0800
     1.3 @@ -1494,8 +1494,8 @@
     1.4      Uint32 vidpid;
     1.5  
     1.6  #if defined(__LINUX__)
     1.7 -    if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) {
     1.8 -        /* Don't treat the PS4 motion controls as a separate game controller */
     1.9 +    if (name && SDL_strstr(name, "Controller Motion Sensors")) {
    1.10 +        /* Don't treat the PS3 and PS4 motion controls as a separate game controller */
    1.11          return SDL_TRUE;
    1.12      }
    1.13  #endif