diff options
| author | scosu <scosu@gmx.de> | 2008-10-22 14:21:15 +0000 |
|---|---|---|
| committer | scosu <scosu@gmx.de> | 2008-10-22 14:21:15 +0000 |
| commit | 2e3b6f5c7aa8c55a6380fb9b0440f6476fda88ec (patch) | |
| tree | 7f310b4fdb1136380f4cb105bc2a634d82bfc498 | |
| parent | 58601cda36f30dc8e9274e753b9146be711bc79d (diff) | |
| download | zcatch-2e3b6f5c7aa8c55a6380fb9b0440f6476fda88ec.tar.gz zcatch-2e3b6f5c7aa8c55a6380fb9b0440f6476fda88ec.zip | |
Some small fixes for changeset:1643 in no_sdl parts
| -rw-r--r-- | src/engine/client/ec_inp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/client/ec_inp.c b/src/engine/client/ec_inp.c index c3ab63b7..74c79c90 100644 --- a/src/engine/client/ec_inp.c +++ b/src/engine/client/ec_inp.c @@ -20,6 +20,7 @@ static unsigned char input_state[2][1024] = {{0}, {0}}; static int input_current = 0; #ifdef CONFIG_NO_SDL +static int keyboard_first = 1; #else static int input_grabbed = 0; static int input_use_grab = 0; @@ -273,14 +274,14 @@ void inp_update() inp_update(); } - keyboard_current = keyboard_current^1; + /*keyboard_current = keyboard_current^1;*/ for(i = 0; i < KEY_LAST; i++) { if (i >= KEY_MOUSE_FIRST) v = glfwGetMouseButton(i-KEY_MOUSE_FIRST) == GLFW_PRESS ? 1 : 0; else v = glfwGetKey(i) == GLFW_PRESS ? 1 : 0; - keyboard_state[keyboard_current][i] = v; + input_state[input_current][i] = v; } #else int i; |