summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-09-13 13:14:10 +1200
committerScott Mansell <phiren@gmail.com>2015-09-13 13:14:10 +1200
commit3e4b62797c632690bd3c8037dbce7bde1dae96c4 (patch)
tree6fb87b13e1e090dca085495343cb37c91a5e86ec /Source/Core/InputCommon/ControllerEmu.cpp
parentc0a89c3bf4dfe5b45989df2ea5e804009b615f16 (diff)
parentcbd539eb3d34b6be3df54ea414b77130cc225b3c (diff)
Merge pull request #3033 from JosJuice/stick-names
Use official names for GameCube controller sticks
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp
index f1d33c65c3..a95da19100 100644
--- a/Source/Core/InputCommon/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/ControllerEmu.cpp
@@ -143,7 +143,11 @@ void ControllerEmu::SaveConfig(IniFile::Section *sec, const std::string& base)
}
ControllerEmu::AnalogStick::AnalogStick(const char* const _name, ControlState default_radius)
- : ControlGroup(_name, GROUP_TYPE_STICK)
+ : AnalogStick(_name, _name, GROUP_TYPE_STICK)
+{}
+
+ControllerEmu::AnalogStick::AnalogStick(const char* const _name, const char* const _ui_name, ControlState default_radius)
+ : ControlGroup(_name, _ui_name, GROUP_TYPE_STICK)
{
for (auto& named_direction : named_directions)
controls.emplace_back(new Input(named_direction));