Better fix to make sure we're only returning controllers from the HIDAPI joystick API

This commit is contained in:
Sam Lantinga 2018-08-31 18:10:21 -07:00
parent 4ffcd88ca2
commit 34237b80f4
7 changed files with 19 additions and 16 deletions

View file

@ -210,7 +210,7 @@ typedef struct {
static SDL_bool
HIDAPI_DriverSwitch_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, Uint16 usage_page, Uint16 usage)
HIDAPI_DriverSwitch_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number)
{
return SDL_IsJoystickNintendoSwitchPro(vendor_id, product_id);
}