mirror of
https://github.com/osukey/osukey.git
synced 2025-05-26 07:57:32 +09:00
Fix SensitivitySlider keyboard control
This commit is contained in:
parent
dddd432dc8
commit
36cfa552f4
@ -80,6 +80,8 @@ 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.
|
||||||
@ -105,8 +107,6 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
|
|
||||||
public SensitivitySlider()
|
public SensitivitySlider()
|
||||||
{
|
{
|
||||||
KeyboardStep = 0.01f;
|
|
||||||
|
|
||||||
Current.ValueChanged += newValue =>
|
Current.ValueChanged += newValue =>
|
||||||
{
|
{
|
||||||
if (!isDragging && Sensitivity != null)
|
if (!isDragging && Sensitivity != null)
|
||||||
@ -133,4 +133,4 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
public override string TooltipText => Current.Disabled ? "Enable raw input to adjust sensitivity" : Current.Value.ToString(@"0.##x");
|
public override string TooltipText => Current.Disabled ? "Enable raw input to adjust sensitivity" : Current.Value.ToString(@"0.##x");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user