- 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:
Christoph Oelckers 2019-12-24 14:02:09 +01:00
parent e8d7777f4a
commit bfb3a797ff

View file

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