From 6c9b3b5d91744380d1123b71f6a7d4763f7bc3af Mon Sep 17 00:00:00 2001 From: Noah Ehrman Date: Sun, 16 Jun 2024 04:53:28 -0400 Subject: [PATCH] Pressing Mouse1 and Mouse2 no longer crashes on Linux. Fixes #1061 --- Source/Core/Actions/ActionManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Actions/ActionManager.cs b/Source/Core/Actions/ActionManager.cs index d5076351..4610cba4 100755 --- a/Source/Core/Actions/ActionManager.cs +++ b/Source/Core/Actions/ActionManager.cs @@ -506,6 +506,10 @@ namespace CodeImp.DoomBuilder.Actions // Update pressed keys if (!repeat) pressedkeys.Add(strippedkey); + if (key == 0) { + return false; + } + // Add action to active list Action[] acts = GetActionsByKey(key); bool absorbed = acts.Length > 0;