diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 15:52:22 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 15:52:22 +0000 |
| commit | 02e34399139c756b16ac8ab0bc7f5066b270d6b3 (patch) | |
| tree | 4fcf5420d9f78eddcd8592d0ca64466397d0f4b6 /src/engine/client | |
| parent | fd1435a10da6f65463affaf61d6f687f65a07e5b (diff) | |
| download | zcatch-02e34399139c756b16ac8ab0bc7f5066b270d6b3.tar.gz zcatch-02e34399139c756b16ac8ab0bc7f5066b270d6b3.zip | |
fixed so that you can bind mouse buttons
Diffstat (limited to 'src/engine/client')
| -rw-r--r-- | src/engine/client/inp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/client/inp.c b/src/engine/client/inp.c index 2a82196c..7ffb7f3f 100644 --- a/src/engine/client/inp.c +++ b/src/engine/client/inp.c @@ -72,6 +72,9 @@ static void key_callback(int key, int action) static void mousebutton_callback(int button, int action) { if(action == GLFW_PRESS) + last_k = KEY_MOUSE_FIRST+button; + + if(action == GLFW_PRESS) input_count[input_current^1][KEY_MOUSE_FIRST+button].presses++; if(action == GLFW_RELEASE) { |