Handle both "Sony Interactive Intertainment" and "Sony Computer Entertainment" when ignoring motion sensors
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Dec 2018 19:50:58 -0800
changeset 12472b661dfdd7aba
parent 12471 ae081435ba86
child 12473 8a05e33d1b4b
Handle both "Sony Interactive Intertainment" and "Sony Computer Entertainment" when ignoring motion sensors
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Mon Dec 10 13:32:24 2018 +0100
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Tue Dec 11 19:50:58 2018 -0800
     1.3 @@ -1469,7 +1469,7 @@
     1.4      Uint32 vidpid;
     1.5  
     1.6  #if defined(__LINUX__)
     1.7 -    if (name && SDL_strcmp(name, "Sony Interactive Entertainment Wireless Controller Motion Sensors") == 0) {
     1.8 +    if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) {
     1.9          /* Don't treat the PS4 motion controls as a separate game controller */
    1.10          return SDL_TRUE;
    1.11      }