mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
mouse wheel should generate down and immediate up messages, so it does not look like keyrepeat
This commit is contained in:
parent
b26fa4b410
commit
d8eab5dbcd
@ -1220,11 +1220,13 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
if (delta >= 0) {
|
||||
while (delta > 0) {
|
||||
handle_keypress(MouseButton::wheel_up(), point.x, point.y, time);
|
||||
handle_keyrelease(MouseButton::wheel_up(), time);
|
||||
delta -= WHEEL_DELTA;
|
||||
}
|
||||
} else {
|
||||
while (delta < 0) {
|
||||
handle_keypress(MouseButton::wheel_down(), point.x, point.y, time);
|
||||
handle_keyrelease(MouseButton::wheel_down(), time);
|
||||
delta += WHEEL_DELTA;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user