From e8b68bcd33313241d4fa93e301b3dbc5453a2b4f Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 17 Dec 2007 00:16:04 +0000 Subject: [PATCH] fixed the bug with binding the mouse wheel --- src/engine/client/ec_inp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/client/ec_inp.c b/src/engine/client/ec_inp.c index 0366cff52..59b54a2f0 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); }