Speculatively disable rumble on the Razer Panthera Evo, which doesn't have rumble motors and probably hangs in the same way the Panthera does.
authorSam Lantinga <slouken@libsdl.org>
Wed, 05 Sep 2018 15:28:06 -0700
changeset 121761bc855492aaf
parent 12175 0061cfbdd0c5
child 12177 d9e69bf4c6d4
Speculatively disable rumble on the Razer Panthera Evo, which doesn't have rumble motors and probably hangs in the same way the Panthera does.
src/joystick/hidapi/SDL_hidapi_ps4.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_ps4.c	Wed Sep 05 13:04:50 2018 -0700
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_ps4.c	Wed Sep 05 15:28:06 2018 -0700
     1.3 @@ -44,6 +44,7 @@
     1.4  
     1.5  #define RAZER_USB_VID       0x1532
     1.6  #define RAZER_PANTHERA_PID  0X0401
     1.7 +#define RAZER_PANTHERA_EVO_PID  0x1008
     1.8  
     1.9  #define USB_PACKET_LENGTH   64
    1.10  
    1.11 @@ -264,7 +265,8 @@
    1.12  static SDL_bool HIDAPI_DriverPS4_CanRumble(Uint16 vendor_id, Uint16 product_id)
    1.13  {
    1.14      /* The Razer Panthera fight stick hangs when trying to rumble */
    1.15 -    if (vendor_id == RAZER_USB_VID && product_id == RAZER_PANTHERA_PID) {
    1.16 +    if (vendor_id == RAZER_USB_VID &&
    1.17 +        (product_id == RAZER_PANTHERA_PID || product_id == RAZER_PANTHERA_EVO_PID)) {
    1.18          return SDL_FALSE;
    1.19      }
    1.20      return SDL_TRUE;