Added support for trigger rumble for all Microsoft Xbox One controllers

This commit is contained in:
Sam Lantinga 2021-02-11 17:28:07 -08:00
parent 1f7ec3fa4e
commit 5427f4861b
1 changed files with 2 additions and 1 deletions

View File

@ -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