mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 15:30:50 +00:00
Use the Valve code name for the Steam Deck controller
This commit is contained in:
parent
43c40d30a2
commit
ffb8515c21
3 changed files with 3 additions and 3 deletions
|
@ -3002,7 +3002,7 @@ SDL_bool SDL_IsJoystickSteamController(Uint16 vendor_id, Uint16 product_id)
|
||||||
SDL_bool SDL_IsJoystickSteamDeck(Uint16 vendor_id, Uint16 product_id)
|
SDL_bool SDL_IsJoystickSteamDeck(Uint16 vendor_id, Uint16 product_id)
|
||||||
{
|
{
|
||||||
EControllerType eType = GuessControllerType(vendor_id, product_id);
|
EControllerType eType = GuessControllerType(vendor_id, product_id);
|
||||||
return eType == k_eControllerType_SteamDeck;
|
return eType == k_eControllerType_SteamControllerNeptune;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_IsJoystickXInput(SDL_JoystickGUID guid)
|
SDL_bool SDL_IsJoystickXInput(SDL_JoystickGUID guid)
|
||||||
|
|
|
@ -598,5 +598,5 @@ static const ControllerDescription_t arrControllers[] = {
|
||||||
{ MAKE_CONTROLLER_ID( 0x28de, 0x1142 ), k_eControllerType_SteamController, NULL }, // Valve wireless Steam Controller
|
{ MAKE_CONTROLLER_ID( 0x28de, 0x1142 ), k_eControllerType_SteamController, NULL }, // Valve wireless Steam Controller
|
||||||
{ MAKE_CONTROLLER_ID( 0x28de, 0x1201 ), k_eControllerType_SteamControllerV2, NULL }, // Valve wired Steam Controller (HEADCRAB)
|
{ MAKE_CONTROLLER_ID( 0x28de, 0x1201 ), k_eControllerType_SteamControllerV2, NULL }, // Valve wired Steam Controller (HEADCRAB)
|
||||||
{ MAKE_CONTROLLER_ID( 0x28de, 0x1202 ), k_eControllerType_SteamControllerV2, NULL }, // Valve Bluetooth Steam Controller (HEADCRAB)
|
{ MAKE_CONTROLLER_ID( 0x28de, 0x1202 ), k_eControllerType_SteamControllerV2, NULL }, // Valve Bluetooth Steam Controller (HEADCRAB)
|
||||||
{ MAKE_CONTROLLER_ID( 0x28de, 0x1205 ), k_eControllerType_SteamDeck, NULL }, // Valve Steam Deck Builtin Controller
|
{ MAKE_CONTROLLER_ID( 0x28de, 0x1205 ), k_eControllerType_SteamControllerNeptune, NULL }, // Valve Steam Deck Builtin Controller
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@ typedef enum
|
||||||
k_eControllerType_UnknownSteamController = 1,
|
k_eControllerType_UnknownSteamController = 1,
|
||||||
k_eControllerType_SteamController = 2,
|
k_eControllerType_SteamController = 2,
|
||||||
k_eControllerType_SteamControllerV2 = 3,
|
k_eControllerType_SteamControllerV2 = 3,
|
||||||
k_eControllerType_SteamDeck = 4,
|
k_eControllerType_SteamControllerNeptune = 4,
|
||||||
|
|
||||||
// Other Controllers
|
// Other Controllers
|
||||||
k_eControllerType_UnknownNonSteamController = 30,
|
k_eControllerType_UnknownNonSteamController = 30,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue