summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-06-26 20:27:18 +0200
committerJosJuice <josjuice@gmail.com>2023-03-07 17:39:34 +0100
commit1b55d7c59429ae96b014b61c5393a4dacc578cfa (patch)
tree0040ea59416409088b1c37a5b2ecbf75925417e7 /Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
parent4c326f2030fda4c23cb4374fef1dee3da0c4822d (diff)
Android: Change how the overlay controller setting works
Up until now, there have been two settings on Android that stored the selected Wii Remote extension: the normal one that's also used on PC, and a SharedPreferences one that's used by the overlay controls to determine what controls to show. It is possible for these two to end up out of sync, and my input changes have made that more likely to happen. To fix this, let's rework how the overlay controller setting works. We don't want it to encode the currently selected Wii Remote extension. However, we can't simply get rid of the setting, because for some Wii games we need the ability to switch between a GameCube controller and a Wii Remote. What this commit does is give the user the option to select any of the 4 GameCube controllers and any of the 4 Wii Remotes. (Before, controllers 2-4 weren't available in the overlay.) Could be useful for things like the Psycho Mantis fight in Metal Gear Solid. I'm also switching from SharedPreferences to Dolphin.ini while I'm at it.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
index f7f2054927..ec28a4d6f6 100644
--- a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
@@ -11,6 +11,11 @@ NumericSettingBase::NumericSettingBase(const NumericSettingDetails& details) : m
{
}
+const char* NumericSettingBase::GetININame() const
+{
+ return m_details.ini_name;
+}
+
const char* NumericSettingBase::GetUIName() const
{
return m_details.ui_name;