From 02e34399139c756b16ac8ab0bc7f5066b270d6b3 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 9 Dec 2007 15:52:22 +0000 Subject: fixed so that you can bind mouse buttons --- src/engine/client/inp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine') 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 @@ -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) -- cgit 1.4.1