Pressing Mouse1 and Mouse2 no longer crashes on Linux. Fixes #1061

This commit is contained in:
Noah Ehrman 2024-06-16 04:53:28 -04:00 committed by GitHub
parent b36c14ae70
commit 6c9b3b5d91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;