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 set
{ {
KeyboardStep = 0.01f;
BindableDouble doubleValue = (BindableDouble)value; BindableDouble doubleValue = (BindableDouble)value;
// create a second layer of bindable so we can only handle state changes when not being dragged. // 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; doubleValue.ValueChanged += newValue => base.Bindable.Value = newValue;
} }
} }
public SensitivitySetting()
{
KeyboardStep = 0.01f;
}
} }
private class SensitivitySlider : OsuSliderBar<double> private class SensitivitySlider : OsuSliderBar<double>