Add checkbox to optionally disable tablet handling

This commit is contained in:
Dean Herbert
2021-03-19 20:13:51 +09:00
parent 4da9089b00
commit 6f32c302eb

View File

@ -62,11 +62,18 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
new SettingsCheckbox
{
LabelText = "Enabled",
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Current = tabletHandler.Enabled
},
noTabletMessage = new OsuSpriteText noTabletMessage = new OsuSpriteText
{ {
Text = "No tablet detected!", Text = "No tablet detected!",
Anchor = Anchor.Centre, Anchor = Anchor.TopCentre,
Origin = Anchor.Centre, Origin = Anchor.TopCentre,
Padding = new MarginPadding { Horizontal = SettingsPanel.CONTENT_MARGINS } Padding = new MarginPadding { Horizontal = SettingsPanel.CONTENT_MARGINS }
}, },
mainSettings = new FillFlowContainer mainSettings = new FillFlowContainer