From 47877ecf2c3b173d77bc55242a22ae9adbabf2be Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 27 Oct 2019 11:04:08 -0500 Subject: InputCommon: Clean up creation of inputs. --- Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp') 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(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. -- cgit v1.2.3