Added support for third party Nintendo Switch controllers that don't support the full protocol

This commit is contained in:
Sam Lantinga 2019-10-17 16:59:05 -07:00
parent 1568d44648
commit 616ae77ef2
3 changed files with 179 additions and 56 deletions

View file

@ -1171,6 +1171,13 @@ SDL_IsJoystickNintendoSwitchPro(Uint16 vendor, Uint16 product)
eType == k_eControllerType_SwitchInputOnlyController);
}
SDL_bool
SDL_IsJoystickNintendoSwitchProInputOnly(Uint16 vendor, Uint16 product)
{
EControllerType eType = GuessControllerType(vendor, product);
return (eType == k_eControllerType_SwitchInputOnlyController);
}
SDL_bool
SDL_IsJoystickSteamController(Uint16 vendor, Uint16 product)
{