Add steam deck detection and HIDAPI driver scaffold.

This commit is contained in:
Max Maisel
2023-09-07 17:04:01 +02:00
committed by Sam Lantinga
parent 0baee3e676
commit c1a7d0f96e
8 changed files with 183 additions and 0 deletions

View File

@@ -2912,6 +2912,12 @@ SDL_bool SDL_IsJoystickSteamController(Uint16 vendor_id, Uint16 product_id)
return eType == k_eControllerType_SteamController || eType == k_eControllerType_SteamControllerV2;
}
SDL_bool SDL_IsJoystickSteamDeck(Uint16 vendor_id, Uint16 product_id)
{
EControllerType eType = GuessControllerType(vendor_id, product_id);
return eType == k_eControllerType_SteamDeck;
}
SDL_bool SDL_IsJoystickXInput(SDL_JoystickGUID guid)
{
return (guid.data[14] == 'x') ? SDL_TRUE : SDL_FALSE;