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:
parent
46cd6fdb45
commit
d52b84df46
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user