summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu.cpp
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2015-10-03 18:01:36 -0700
committershuffle2 <godisgovernment@gmail.com>2015-10-03 18:01:36 -0700
commit06379cc3a02dd17ef95e848cd9c811106c07dfbb (patch)
tree081d7794fd4f2fec666cfcf5d36f96c83baad6dd /Source/Core/InputCommon/ControllerEmu.cpp
parent43879ebc1e4ce85aa3ef47c6e36dd74aae6a57cd (diff)
parent449c57a8e0d8ca8af016fac16c6fe6d6bc431714 (diff)
Merge pull request #3113 from lioncash/input
InputCommon: Get rid of multiple identical define macros
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu.cpp5
1 files changed, 5 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)
{}