mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed the bug with binding the mouse wheel
This commit is contained in:
parent
5dcbfe0c2b
commit
e8b68bcd33
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue