diff options
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) { |