mirror of
https://github.com/ppy/osu.git
synced 2026-06-06 21:24:15 +08:00
Merge branch 'tip-pressure-threshold-option' into update-framework
This commit is contained in:
@@ -45,6 +45,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
|
||||
private readonly BindableNumber<float> rotation = new BindableNumber<float> { MinValue = 0, MaxValue = 360 };
|
||||
|
||||
private readonly BindableNumber<float> pressureThreshold = new BindableNumber<float> { MinValue = 0.0f, MaxValue = 1.0f, Precision = 0.005f };
|
||||
|
||||
[Resolved]
|
||||
private GameHost host { get; set; }
|
||||
|
||||
@@ -213,6 +215,13 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
Current = sizeY,
|
||||
CanBeShown = { BindTarget = enabled }
|
||||
},
|
||||
new SettingsSlider<float>
|
||||
{
|
||||
TransferValueOnCommit = true,
|
||||
LabelText = "Tip Threshold",
|
||||
Current = pressureThreshold,
|
||||
CanBeShown = { BindTarget = enabled }
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -267,6 +276,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
aspectRatioApplication = Schedule(() => forceAspectRatio(aspect.NewValue));
|
||||
});
|
||||
|
||||
pressureThreshold.BindTo(tabletHandler.PressureThreshold);
|
||||
|
||||
tablet.BindTo(tabletHandler.Tablet);
|
||||
tablet.BindValueChanged(val => Schedule(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user