diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2016-10-03 03:26:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-03 03:26:04 -0700 |
| commit | 2db2e886206c1380bc86cfc5282096adf2e51272 (patch) | |
| tree | a2e30b3240b3beef5518782d3b26bda7389922ec /Source/Core/InputCommon/ControllerEmu.cpp | |
| parent | 4b62d417283abd2bc40409b9f73eed900a89995c (diff) | |
| parent | 149654df5a7db04315badc95354bab3ccd02964f (diff) | |
Merge pull request #4010 from leoetlino/relative-input
Add relative input for the Wiimote IR
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp index 2fd85b3fac..84f511f822 100644 --- a/Source/Core/InputCommon/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu.cpp @@ -295,10 +295,13 @@ ControllerEmu::Cursor::Cursor(const std::string& _name) controls.emplace_back(std::make_unique<Input>("Forward")); controls.emplace_back(std::make_unique<Input>("Backward")); controls.emplace_back(std::make_unique<Input>(_trans("Hide"))); + controls.emplace_back(std::make_unique<Input>("Recenter")); numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Center"), 0.5)); numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Width"), 0.5)); numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Height"), 0.5)); + numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Dead Zone"), 0, 0, 20)); + boolean_settings.emplace_back(std::make_unique<BooleanSetting>(_trans("Relative Input"), false)); } void ControllerEmu::LoadDefaults(const ControllerInterface& ciface) |
