Skip to content

Commit bc74985

Browse files
authored
Merge branch 'master' into fix-mods-masking
2 parents fa875e4 + 0a98cd6 commit bc74985

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

PerformanceCalculatorGUI/PerformanceCalculatorGame.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using System.Linq;
67
using osu.Framework.Allocation;
78
using osu.Framework.Bindables;
89
using osu.Framework.Configuration;
910
using osu.Framework.Graphics;
11+
using osu.Framework.Input.Handlers.Tablet;
1012
using osu.Framework.Platform;
1113
using osu.Game;
1214
using osu.Game.Graphics.Cursor;
@@ -71,6 +73,13 @@ public override void SetHost(GameHost host)
7173
base.SetHost(host);
7274

7375
host.Window.CursorState |= CursorState.Hidden;
76+
77+
var tabletInputHandler = host.AvailableInputHandlers.FirstOrDefault(x => x is OpenTabletDriverHandler && x.IsActive);
78+
79+
if (tabletInputHandler != null)
80+
{
81+
tabletInputHandler.Enabled.Value = false;
82+
}
7483
}
7584

7685
protected override void LoadComplete()

PerformanceCalculatorGUI/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public static void Main(string[] args)
1515
using DesktopGameHost host = Host.GetSuitableDesktopHost("PerformanceCalculatorGUI", new HostOptions
1616
{
1717
PortableInstallation = true,
18-
BypassCompositor = false
18+
BypassCompositor = false,
19+
FriendlyGameName = "Performance Calculator GUI"
1920
});
2021

2122
using var game = new PerformanceCalculatorGame();

0 commit comments

Comments
 (0)