about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-17 00:16:04 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-17 00:16:04 +0000
commite8b68bcd33313241d4fa93e301b3dbc5453a2b4f (patch)
tree38a0cbeb4c0c6c0dc05c5505f2a24ac7870925d1
parent5dcbfe0c2b573c98921a69fcb083f79d1d7a4897 (diff)
downloadzcatch-e8b68bcd33313241d4fa93e301b3dbc5453a2b4f.tar.gz
zcatch-e8b68bcd33313241d4fa93e301b3dbc5453a2b4f.zip
fixed the bug with binding the mouse wheel
-rw-r--r--src/engine/client/ec_inp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/client/ec_inp.c b/src/engine/client/ec_inp.c
index 0366cff5..59b54a2f 100644
--- a/src/engine/client/ec_inp.c
+++ b/src/engine/client/ec_inp.c
@@ -98,6 +98,8 @@ static void mousewheel_callback(int pos)
 			input_count[input_current^1][KEY_MOUSE_WHEEL_UP].presses++;
 			input_count[input_current^1][KEY_MOUSE_WHEEL_UP].releases++;
 		}
+		
+		last_k = KEY_MOUSE_WHEEL_UP;
 	}
 	else if(pos < 0)
 	{
@@ -106,6 +108,8 @@ static void mousewheel_callback(int pos)
 			input_count[input_current^1][KEY_MOUSE_WHEEL_DOWN].presses++;
 			input_count[input_current^1][KEY_MOUSE_WHEEL_DOWN].releases++;
 		}	
+
+		last_k = KEY_MOUSE_WHEEL_DOWN;
 	}
 	glfwSetMouseWheel(0);
 }