mouse motion is no longer forwarded to the mod when the console is down

This commit is contained in:
myT 2018-01-21 17:27:59 +01:00
parent b7a76b6428
commit 4a7f2356ab
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,8 @@
DD Mmm 18 - 1.50 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: 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 chg: on Windows, a fatal error will move the early console window to the foreground

View file

@ -292,6 +292,9 @@ static void CL_KeyMove( usercmd_t *cmd )
void CL_MouseEvent( int dx, int dy, int time ) void CL_MouseEvent( int dx, int dy, int time )
{ {
if ( cls.keyCatchers & KEYCATCH_CONSOLE )
return;
if ( cls.keyCatchers & KEYCATCH_UI ) { if ( cls.keyCatchers & KEYCATCH_UI ) {
VM_Call( uivm, UI_MOUSE_EVENT, dx, dy ); VM_Call( uivm, UI_MOUSE_EVENT, dx, dy );
} else if (cls.keyCatchers & KEYCATCH_CGAME) { } else if (cls.keyCatchers & KEYCATCH_CGAME) {