mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt/ControllerEmu: Replace Input Radius/Shape settings with an input calibration "wizard".
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user