1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:43:22 +08:00

More Code Quality

Double whoops.
This commit is contained in:
maromalo 2022-04-23 02:14:41 -03:00
parent 23ef1e194d
commit 6a87dfdabb

View File

@ -17,10 +17,12 @@ namespace osu.Game.Overlays.Settings.Sections.Input
protected override LocalisableString Header => JoystickSettingsStrings.JoystickGamepad;
private readonly BindableNumber<float> deadzoneThreshold = new BindableNumber<float>();
private readonly Bindable<bool> enabled = new BindableBool(true);
public JoystickSettings(JoystickHandler joystickHandler)
{
this.joystickHandler = joystickHandler;
}
[BackgroundDependencyLoader]
private void load()
{
@ -55,6 +57,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
TransferValueOnCommit = true;
}
}
private class DeadzoneSlider : OsuSliderBar<float>
{
public override LocalisableString TooltipText => Current.Disabled ? "" : base.TooltipText;