From 80021c21b6a9bc7096fb7e98acca15310dc2a9a5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 5 Sep 2018 15:28:06 -0700 Subject: [PATCH] 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_ps4.c b/src/joystick/hidapi/SDL_hidapi_ps4.c index 076f29ba79f4c..3484ddb9757a8 100644 --- a/src/joystick/hidapi/SDL_hidapi_ps4.c +++ b/src/joystick/hidapi/SDL_hidapi_ps4.c @@ -44,6 +44,7 @@ #define RAZER_USB_VID 0x1532 #define RAZER_PANTHERA_PID 0X0401 +#define RAZER_PANTHERA_EVO_PID 0x1008 #define USB_PACKET_LENGTH 64 @@ -264,7 +265,8 @@ static SDL_bool CheckUSBConnected(hid_device *dev) static SDL_bool HIDAPI_DriverPS4_CanRumble(Uint16 vendor_id, Uint16 product_id) { /* The Razer Panthera fight stick hangs when trying to rumble */ - if (vendor_id == RAZER_USB_VID && product_id == RAZER_PANTHERA_PID) { + if (vendor_id == RAZER_USB_VID && + (product_id == RAZER_PANTHERA_PID || product_id == RAZER_PANTHERA_EVO_PID)) { return SDL_FALSE; } return SDL_TRUE;