From 996a2cb09e285b05ff8da3fa5c6a5058951b3d66 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 26 Feb 2024 12:06:59 +0100 Subject: [PATCH] Fix editor inputs processing in Game window to interferer with game inputs --- Source/Editor/Windows/GameWindow.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 29c8c8318..09fe2e6b5 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -306,8 +306,6 @@ namespace FlaxEditor.Windows InputActions.Add(options => options.TakeScreenshot, () => Screenshot.Capture(string.Empty)); InputActions.Add(options => options.DebuggerUnlockMouse, UnlockMouseInPlay); InputActions.Add(options => options.ToggleFullscreen, () => { if (Editor.IsPlayMode) IsMaximized = !IsMaximized; }); - - FlaxEditor.Utilities.Utils.SetupCommonInputActions(this); } private void ChangeViewportRatio(ViewportScaleOptions v) @@ -320,7 +318,7 @@ namespace FlaxEditor.Windows return; } - if (string.Equals(v.Label, "Free Aspect") && v.Size == new Int2(1, 1)) + if (string.Equals(v.Label, "Free Aspect", StringComparison.Ordinal) && v.Size == new Int2(1, 1)) { _freeAspect = true; _useAspect = true;