about summary refs log tree commit diff
path: root/src/engine/client/ec_inp.c
diff options
context:
space:
mode:
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;