SDL: Use the Valve code name for the Steam Deck controller

From ffb8515c211dcafc156473c63f247125233b6de6 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 28 Dec 2023 15:41:02 -0800
Subject: [PATCH] Use the Valve code name for the Steam Deck controller

---
 src/joystick/SDL_joystick.c    | 2 +-
 src/joystick/controller_list.h | 2 +-
 src/joystick/controller_type.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 5e21dd95d8dd..1d71653b2172 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -3002,7 +3002,7 @@ SDL_bool SDL_IsJoystickSteamController(Uint16 vendor_id, Uint16 product_id)
 SDL_bool SDL_IsJoystickSteamDeck(Uint16 vendor_id, Uint16 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)
diff --git a/src/joystick/controller_list.h b/src/joystick/controller_list.h
index 5678db4a4b79..c8ba2c0cebe7 100644
--- a/src/joystick/controller_list.h
+++ b/src/joystick/controller_list.h
@@ -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, 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, 0x1205 ), k_eControllerType_SteamDeck, NULL },	// Valve Steam Deck Builtin Controller
+	{ MAKE_CONTROLLER_ID( 0x28de, 0x1205 ), k_eControllerType_SteamControllerNeptune, NULL },	// Valve Steam Deck Builtin Controller
 };
diff --git a/src/joystick/controller_type.h b/src/joystick/controller_type.h
index 78c595586301..155c8ad11e15 100644
--- a/src/joystick/controller_type.h
+++ b/src/joystick/controller_type.h
@@ -37,7 +37,7 @@ typedef enum
 	k_eControllerType_UnknownSteamController = 1,
 	k_eControllerType_SteamController = 2,
 	k_eControllerType_SteamControllerV2 = 3,
-	k_eControllerType_SteamDeck = 4,
+	k_eControllerType_SteamControllerNeptune = 4,
 
 	// Other Controllers
 	k_eControllerType_UnknownNonSteamController = 30,