diff options
| author | Tilka <tilkax@gmail.com> | 2020-02-10 02:05:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 02:05:24 +0000 |
| commit | ce1bc0b3ca5235571434c4b19ec785baab77fe8f (patch) | |
| tree | abf5a0198bf40f731a8f11411112548e141ff5b1 /Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | |
| parent | 01d69ba81a0a6ece04befa6cf5f14f14c65792e7 (diff) | |
| parent | 47877ecf2c3b173d77bc55242a22ae9adbabf2be (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/IMUCursor.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp index 3e6aecb348..f617adaf6f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp @@ -20,7 +20,7 @@ IMUCursor::IMUCursor(std::string name, std::string ui_name) : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUCursor, ControlGroup::CanBeDisabled::Yes) { - controls.emplace_back(std::make_unique<Input>(Translate, _trans("Recenter"))); + AddInput(Translate, _trans("Recenter")); // Default values are optimized for "Super Mario Galaxy 2". // This seems to be acceptable for a good number of games. |
