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 43c5f62d44
commit e6ac16ef2f
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)
{