summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2020-02-10 02:05:24 +0000
committerGitHub <noreply@github.com>2020-02-10 02:05:24 +0000
commitce1bc0b3ca5235571434c4b19ec785baab77fe8f (patch)
treeabf5a0198bf40f731a8f11411112548e141ff5b1 /Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp
parent01d69ba81a0a6ece04befa6cf5f14f14c65792e7 (diff)
parent47877ecf2c3b173d77bc55242a22ae9adbabf2be (diff)
Merge pull request #8617 from jordan-woyak/control-creation-cleanup
InputCommon: Clean up creation of inputs.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp
index df67930f9d..4a03527ffe 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp
@@ -27,9 +27,9 @@ AnalogStick::AnalogStick(const char* const name_, const char* const ui_name_,
: ReshapableInput(name_, ui_name_, GroupType::Stick), m_stick_gate(std::move(stick_gate))
{
for (auto& named_direction : named_directions)
- controls.emplace_back(std::make_unique<Input>(Translate, named_direction));
+ AddInput(Translate, named_direction);
- controls.emplace_back(std::make_unique<Input>(Translate, _trans("Modifier")));
+ AddInput(Translate, _trans("Modifier"));
}
AnalogStick::ReshapeData AnalogStick::GetReshapableState(bool adjusted)