mirror of https://github.com/ZDoom/raze-gles.git
- 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
|
@ -389,8 +389,9 @@ void FMouse::WheelMoved(int axis, int wheelmove)
|
||||||
{
|
{
|
||||||
ev.type = EV_KeyDown;
|
ev.type = EV_KeyDown;
|
||||||
D_PostEvent(&ev);
|
D_PostEvent(&ev);
|
||||||
ev.type = EV_KeyUp;
|
// The Up events must be delayed so that the wheel can remain in a "pressed" state for the next tic's duration.
|
||||||
D_PostEvent(&ev);
|
//ev.type = EV_KeyUp;
|
||||||
|
//D_PostEvent(&ev);
|
||||||
WheelMove[axis] += dir;
|
WheelMove[axis] += dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue