diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-13 02:13:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 02:13:27 +0000 |
| commit | 131f4931fb9fa26a51525a55e7c57265a9812135 (patch) | |
| tree | 52e0b3bdbf3a7500f04bc39cee2a0fd99f007966 /Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp | |
| parent | 8d59d1bb11bf594afc6fa3f0a860773c6fa6b8b5 (diff) | |
| parent | 0064f70c8a17cd40c15486ac385508ce0ee20cf1 (diff) | |
Merge pull request #7792 from jordan-woyak/auto-calibration
DolphinQt/ControllerEmu: Add stick calibration "wizard".
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp index 2fec9c7bd0..bacf158be0 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.cpp @@ -29,11 +29,6 @@ Tilt::Tilt(const std::string& name_) controls.emplace_back(std::make_unique<Input>(Translate, _trans("Modifier"))); - // Set default input radius to the full 1.0 (no resizing) - // Set default input shape to a square (no reshaping) - // Max deadzone to 50% - AddReshapingSettings(1.0, 0.5, 50); - numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Angle"), 0.9, 0, 180)); } @@ -88,4 +83,9 @@ ControlState Tilt::GetGateRadiusAtAngle(double ang) const return SquareStickGate(max_tilt_angle).GetRadiusAtAngle(ang); } +ControlState Tilt::GetDefaultInputRadiusAtAngle(double ang) const +{ + return SquareStickGate(1.0).GetRadiusAtAngle(ang); +} + } // namespace ControllerEmu |
