diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2015-10-03 18:01:36 -0700 |
|---|---|---|
| committer | shuffle2 <godisgovernment@gmail.com> | 2015-10-03 18:01:36 -0700 |
| commit | 06379cc3a02dd17ef95e848cd9c811106c07dfbb (patch) | |
| tree | 081d7794fd4f2fec666cfcf5d36f96c83baad6dd /Source/Core/InputCommon | |
| parent | 43879ebc1e4ce85aa3ef47c6e36dd74aae6a57cd (diff) | |
| parent | 449c57a8e0d8ca8af016fac16c6fe6d6bc431714 (diff) | |
Merge pull request #3113 from lioncash/input
InputCommon: Get rid of multiple identical define macros
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp index 6a00eb5156..3c32afbde2 100644 --- a/Source/Core/InputCommon/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu.cpp @@ -143,6 +143,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) {} diff --git a/Source/Core/InputCommon/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu.h index db6e23f636..6fcc30e9e3 100644 --- a/Source/Core/InputCommon/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu.h @@ -154,6 +154,8 @@ public: virtual void LoadConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" ); virtual void SaveConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" ); + void SetControlExpression(int index, const std::string& expression); + const std::string name; const std::string ui_name; const unsigned int type; |
