mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- do not send mouse wheel "up" events right after "down".
The input system needs to be able to detect them in a "pressed" state, even though that doesn't physically exist.
This commit is contained in:
parent
e8d7777f4a
commit
bfb3a797ff
1 changed files with 3 additions and 2 deletions
|
@ -389,8 +389,9 @@ void FMouse::WheelMoved(int axis, int wheelmove)
|
|||
{
|
||||
ev.type = EV_KeyDown;
|
||||
D_PostEvent(&ev);
|
||||
ev.type = EV_KeyUp;
|
||||
D_PostEvent(&ev);
|
||||
// The Up events must be delayed so that the wheel can remain in a "pressed" state for the next tic's duration.
|
||||
//ev.type = EV_KeyUp;
|
||||
//D_PostEvent(&ev);
|
||||
WheelMove[axis] += dir;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue