InputCommon: Clean up creation of inputs.
This commit is contained in:
1 parent
01d69ba81a
commit
47877ecf2c
30 files changed
+127
-122
No files matched your search
@@ -19,8 +19,8 @@ namespace ControllerEmu
|
||||
Slider::Slider(const std::string& name_, const std::string& ui_name_)
|
||||
: ControlGroup(name_, ui_name_, GroupType::Slider)
|
||||
{
|
||||
controls.emplace_back(std::make_unique<Input>(Translate, _trans("Left")));
|
||||
controls.emplace_back(std::make_unique<Input>(Translate, _trans("Right")));
|
||||
AddInput(Translate, _trans("Left"));
|
||||
AddInput(Translate, _trans("Right"));
|
||||
|
||||
AddDeadzoneSetting(&m_deadzone_setting, 50);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user