diff --git a/src/engine/client/inp.c b/src/engine/client/inp.c index 2a82196c3..7ffb7f3fb 100644 --- a/src/engine/client/inp.c +++ b/src/engine/client/inp.c @@ -71,6 +71,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)