mirror of
https://github.com/ppy/osu
synced 2025-02-02 03:11:58 +00:00
More Code Quality
Double whoops.
This commit is contained in:
parent
23ef1e194d
commit
6a87dfdabb
@ -17,10 +17,12 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
protected override LocalisableString Header => JoystickSettingsStrings.JoystickGamepad;
|
protected override LocalisableString Header => JoystickSettingsStrings.JoystickGamepad;
|
||||||
private readonly BindableNumber<float> deadzoneThreshold = new BindableNumber<float>();
|
private readonly BindableNumber<float> deadzoneThreshold = new BindableNumber<float>();
|
||||||
private readonly Bindable<bool> enabled = new BindableBool(true);
|
private readonly Bindable<bool> enabled = new BindableBool(true);
|
||||||
|
|
||||||
public JoystickSettings(JoystickHandler joystickHandler)
|
public JoystickSettings(JoystickHandler joystickHandler)
|
||||||
{
|
{
|
||||||
this.joystickHandler = joystickHandler;
|
this.joystickHandler = joystickHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
@ -55,6 +57,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
TransferValueOnCommit = true;
|
TransferValueOnCommit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class DeadzoneSlider : OsuSliderBar<float>
|
private class DeadzoneSlider : OsuSliderBar<float>
|
||||||
{
|
{
|
||||||
public override LocalisableString TooltipText => Current.Disabled ? "" : base.TooltipText;
|
public override LocalisableString TooltipText => Current.Disabled ? "" : base.TooltipText;
|
||||||
|
Loading…
Reference in New Issue
Block a user