File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44using System ;
55using System . Collections . Generic ;
6+ using System . Linq ;
67using osu . Framework . Allocation ;
78using osu . Framework . Bindables ;
89using osu . Framework . Configuration ;
910using osu . Framework . Graphics ;
11+ using osu . Framework . Input . Handlers . Tablet ;
1012using osu . Framework . Platform ;
1113using osu . Game ;
1214using 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 ( )
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments