From 52071f39432e9ecdbc6be9ab1bb36b0008456495 Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Wed, 24 Sep 2025 21:38:02 -0400 Subject: [PATCH 1/2] Prevent profiles with no device specification from resetting device --- Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp index 2d299981db..ce0105b90f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp @@ -115,7 +115,7 @@ void EmulatedController::LoadConfig(Common::IniFile::Section* sec) const auto lock = EmulatedController::GetStateLock(); std::string defdev; - if (sec->Get("Device", &defdev, "")) + if (sec->Get("Device", &defdev, "") && !defdev.empty()) SetDefaultDevice(defdev); LoadGroupsConfig(sec, ""); From 0401f4a8c3082fd905fca84422ff29e5176d1e63 Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Wed, 24 Sep 2025 21:38:18 -0400 Subject: [PATCH 2/2] Add SDL Gamepad stock profile --- Data/Sys/Profiles/GCPad/SDL Gamepad.ini | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Data/Sys/Profiles/GCPad/SDL Gamepad.ini diff --git a/Data/Sys/Profiles/GCPad/SDL Gamepad.ini b/Data/Sys/Profiles/GCPad/SDL Gamepad.ini new file mode 100644 index 0000000000..5afb0f6ba2 --- /dev/null +++ b/Data/Sys/Profiles/GCPad/SDL Gamepad.ini @@ -0,0 +1,26 @@ +[Profile] +Buttons/A = `Button A` +Buttons/B = `Button B` +Buttons/X = `Button X` +Buttons/Y = `Button Y` +Buttons/Z = `Shoulder R` +Buttons/Start = `Start` +Main Stick/Up = `Left Y+` +Main Stick/Down = `Left Y-` +Main Stick/Left = `Left X-` +Main Stick/Right = `Left X+` +Main Stick/Calibration = 100.00 +C-Stick/Up = `Right Y+` +C-Stick/Down = `Right Y-` +C-Stick/Left = `Right X-` +C-Stick/Right = `Right X+` +C-Stick/Calibration = 100.00 +Triggers/L = `Trigger L` +Triggers/R = `Trigger R` +Triggers/L-Analog = `Trigger L` +Triggers/R-Analog = `Trigger R` +D-Pad/Up = `Pad N` +D-Pad/Down = `Pad S` +D-Pad/Left = `Pad W` +D-Pad/Right = `Pad E` +Rumble/Motor = `Motor L` | `Motor R`