We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec1304 commit bcf5189Copy full SHA for bcf5189
1 file changed
PerformanceCalculatorGUI/PerformanceCalculatorGame.cs
@@ -82,13 +82,16 @@ public override void SetHost(GameHost host)
82
83
foreach (var handler in host.AvailableInputHandlers)
84
{
85
- if (handler is MouseHandler mouseHandler)
+ if (handler is MouseHandler mouseHandler && mouseHandler.UseRelativeMode.Value)
86
87
mouseHandler.UseRelativeMode.Value = false;
88
}
89
- }
90
91
- var tabletInputHandler = host.AvailableInputHandlers.FirstOrDefault(x => x is OpenTabletDriverHandler && x.IsActive);
+ if (handler is OpenTabletDriverHandler tabletInputHandler && tabletInputHandler.IsActive)
+ {
92
+ tabletInputHandler.Enabled.Value = false;
93
+ }
94
95
96
if (tabletInputHandler != null)
97
0 commit comments