about summary refs log tree commit diff
path: root/src/engine/client/ec_inp.c
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2008-01-18 15:55:03 +0000
committerJakob Fries <jakob.fries@gmail.com>2008-01-18 15:55:03 +0000
commit7b73f1505212f7235db0987fb4e52549fdd73fb5 (patch)
tree4a7552c382e707cb463ab5bf7f5808e5d2124d9b /src/engine/client/ec_inp.c
parent57c47659930c5e01ae5d3e8cef51c06d28d20508 (diff)
downloadzcatch-7b73f1505212f7235db0987fb4e52549fdd73fb5.tar.gz
zcatch-7b73f1505212f7235db0987fb4e52549fdd73fb5.zip
Console is now accessable in-game and has more commands: connect, disconnect, quit.
Diffstat (limited to 'src/engine/client/ec_inp.c')
-rw-r--r--src/engine/client/ec_inp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/client/ec_inp.c b/src/engine/client/ec_inp.c
index cac69669..57216ac4 100644
--- a/src/engine/client/ec_inp.c
+++ b/src/engine/client/ec_inp.c
@@ -177,6 +177,12 @@ int inp_mouse_doubleclick()
 	return release_delta < (time_freq() >> 2);
 }
 
+void inp_clear_key_states()
+{
+	mem_zero(keyboard_state, sizeof(keyboard_state));
+	mem_zero(input_count, sizeof(input_count));
+}
+
 int inp_key_presses(int key)
 {
 	return input_count[input_current][key].presses;