Skip to content

Commit 8f7b0c9

Browse files
committed
Merge branch 'tip-pressure-threshold-option' into update-framework
2 parents e2e2383 + 12e7691 commit 8f7b0c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs

+11
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public partial class TabletSettings : SettingsSubsection
4545

4646
private readonly BindableNumber<float> rotation = new BindableNumber<float> { MinValue = 0, MaxValue = 360 };
4747

48+
private readonly BindableNumber<float> pressureThreshold = new BindableNumber<float> { MinValue = 0.0f, MaxValue = 1.0f, Precision = 0.005f };
49+
4850
[Resolved]
4951
private GameHost host { get; set; }
5052

@@ -213,6 +215,13 @@ private void load(OsuColour colours, LocalisationManager localisation)
213215
Current = sizeY,
214216
CanBeShown = { BindTarget = enabled }
215217
},
218+
new SettingsSlider<float>
219+
{
220+
TransferValueOnCommit = true,
221+
LabelText = "Tip Threshold",
222+
Current = pressureThreshold,
223+
CanBeShown = { BindTarget = enabled }
224+
},
216225
}
217226
},
218227
};
@@ -267,6 +276,8 @@ protected override void LoadComplete()
267276
aspectRatioApplication = Schedule(() => forceAspectRatio(aspect.NewValue));
268277
});
269278

279+
pressureThreshold.BindTo(tabletHandler.PressureThreshold);
280+
270281
tablet.BindTo(tabletHandler.Tablet);
271282
tablet.BindValueChanged(val => Schedule(() =>
272283
{

0 commit comments

Comments
 (0)