1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

Move KeyboardStep assignment to ctor

This commit is contained in:
smoogipoo 2017-12-07 20:53:28 +09:00
parent 46cd6fdb45
commit d52b84df46

View File

@ -80,8 +80,6 @@ namespace osu.Game.Overlays.Settings.Sections.Input
set
{
KeyboardStep = 0.01f;
BindableDouble doubleValue = (BindableDouble)value;
// create a second layer of bindable so we can only handle state changes when not being dragged.
@ -99,6 +97,11 @@ namespace osu.Game.Overlays.Settings.Sections.Input
doubleValue.ValueChanged += newValue => base.Bindable.Value = newValue;
}
}
public SensitivitySetting()
{
KeyboardStep = 0.01f;
}
}
private class SensitivitySlider : OsuSliderBar<double>