about summary refs log tree commit diff
path: root/src/game/client/components/console.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 18:12:15 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 18:12:15 +0000
commitb4b2404303f84d1cca56980e75ec0e3d348147c8 (patch)
tree8bb0a11e8a79904130f5737f60a7e775426dc345 /src/game/client/components/console.cpp
parent8404143afe48c04e0c84a9bbde08ebf400b7f7fb (diff)
downloadzcatch-b4b2404303f84d1cca56980e75ec0e3d348147c8.tar.gz
zcatch-b4b2404303f84d1cca56980e75ec0e3d348147c8.zip
release input when console is showing
Diffstat (limited to 'src/game/client/components/console.cpp')
-rw-r--r--src/game/client/components/console.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp
index 71653fdf..ab0c9aae 100644
--- a/src/game/client/components/console.cpp
+++ b/src/game/client/components/console.cpp
@@ -327,9 +327,15 @@ void CONSOLE::toggle(int type)
 		}
 
 		if (console_state == CONSOLE_CLOSED || console_state == CONSOLE_CLOSING)
+		{
+			inp_mouse_mode_absolute();
 			console_state = CONSOLE_OPENING;
+		}
 		else
+		{
+			inp_mouse_mode_relative();
 			console_state = CONSOLE_CLOSING;
+		}
 	}
 
 	console_type = type;