We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e10c800 commit 3458af6Copy full SHA for 3458af6
Source/Game/Core/MyPlayerController.cs
@@ -1,5 +1,6 @@
1
using System;
2
using ArizonaFramework;
3
+using ArizonaFramework.UI;
4
using FlaxEngine;
5
6
namespace Game
@@ -92,7 +93,9 @@ public override void OnUpdateInput()
92
93
var pawn = PlayerPawn as MyPlayerPawn;
94
if (pawn == null)
95
throw new Exception("Missing player pawn.");
- var useInput = Engine.HasGameViewportFocus && !UserManager.Instance.IsGamePaused;
96
+ var useInput = Engine.HasGameViewportFocus &&
97
+ !UserManager.Instance.IsGamePaused &&
98
+ UISystem.Instance.InputContext == InputContextType.Gameplay;
99
100
// Movement
101
if (useInput)
0 commit comments