diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-10-01 08:29:19 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-10-01 08:45:22 -0400 |
| commit | 449c57a8e0d8ca8af016fac16c6fe6d6bc431714 (patch) | |
| tree | 6a52df0df21315f64108180239b99f505b8b9239 /Source/Core/InputCommon/ControllerEmu.cpp | |
| parent | 696d6eae099feba23c280017c5184785fc1e3076 (diff) | |
InputCommon: Get rid of multiple identical define macros
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp index a95da19100..7aada744c7 100644 --- a/Source/Core/InputCommon/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu.cpp @@ -142,6 +142,11 @@ void ControllerEmu::SaveConfig(IniFile::Section *sec, const std::string& base) ctrlGroup->SaveConfig(sec, defdev, base); } +void ControllerEmu::ControlGroup::SetControlExpression(int index, const std::string& expression) +{ + controls.at(index)->control_ref->expression = expression; +} + ControllerEmu::AnalogStick::AnalogStick(const char* const _name, ControlState default_radius) : AnalogStick(_name, _name, GROUP_TYPE_STICK) {} |
