mirror of https://github.com/encounter/SDL.git
Added note about trigger rumble availability across third-party Xbox One controllers
This commit is contained in:
parent
e7a56323ab
commit
9d1dbd2ad8
|
@ -153,7 +153,16 @@ static SDL_bool
|
||||||
ControllerHasTriggerRumble(Uint16 vendor_id, Uint16 product_id)
|
ControllerHasTriggerRumble(Uint16 vendor_id, Uint16 product_id)
|
||||||
{
|
{
|
||||||
/* All the Microsoft Xbox One controllers have trigger rumble */
|
/* All the Microsoft Xbox One controllers have trigger rumble */
|
||||||
return (vendor_id == USB_VENDOR_MICROSOFT);
|
if (vendor_id == USB_VENDOR_MICROSOFT) {
|
||||||
|
return SDL_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* It turns out other controllers a mixed bag as to whether they support
|
||||||
|
trigger rumble or not, and when they do it's often a buzz rather than
|
||||||
|
the vibration of the Microsoft trigger rumble, so for now just pretend
|
||||||
|
that it is not available.
|
||||||
|
*/
|
||||||
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
|
|
Loading…
Reference in New Issue