about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
 }