From 4a7f2356ab715b6f3a2a8c90e5f1bca256d0aba0 Mon Sep 17 00:00:00 2001 From: myT Date: Sun, 21 Jan 2018 17:27:59 +0100 Subject: [PATCH] mouse motion is no longer forwarded to the mod when the console is down --- changelog.txt | 2 ++ code/client/cl_input.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/changelog.txt b/changelog.txt index f0afd00..535876a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,8 @@ DD Mmm 18 - 1.50 +chg: mouse motion is no longer forwarded to the mod when the console is down + chg: with 2+ monitors, having the console down will always disable input grabbing chg: on Windows, a fatal error will move the early console window to the foreground diff --git a/code/client/cl_input.cpp b/code/client/cl_input.cpp index 9c7250d..ead768a 100644 --- a/code/client/cl_input.cpp +++ b/code/client/cl_input.cpp @@ -292,6 +292,9 @@ static void CL_KeyMove( usercmd_t *cmd ) void CL_MouseEvent( int dx, int dy, int time ) { + if ( cls.keyCatchers & KEYCATCH_CONSOLE ) + return; + if ( cls.keyCatchers & KEYCATCH_UI ) { VM_Call( uivm, UI_MOUSE_EVENT, dx, dy ); } else if (cls.keyCatchers & KEYCATCH_CGAME) {