fixed the bug with binding the mouse wheel

This commit is contained in:
Magnus Auvinen 2007-12-17 00:16:04 +00:00
parent 5dcbfe0c2b
commit e8b68bcd33

View file

@ -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);
}