From 5427f4861bfd7cb20c1950fa475879a27d8d169b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 11 Feb 2021 17:28:07 -0800 Subject: [PATCH] Added support for trigger rumble for all Microsoft Xbox One controllers --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index 563a0fab6..3b6597926 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -138,7 +138,8 @@ ControllerHasPaddles(Uint16 vendor_id, Uint16 product_id) static SDL_bool ControllerHasTriggerRumble(Uint16 vendor_id, Uint16 product_id) { - return SDL_IsJoystickXboxOneElite(vendor_id, product_id); + // All the Microsoft Xbox One controllers have trigger rumble + return (vendor_id == USB_VENDOR_MICROSOFT); } static SDL_bool