mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- added handling for cleariung mouse wheel events
This commit is contained in:
parent
29b7e1cf79
commit
4bf6c306ab
1 changed files with 14 additions and 4 deletions
|
@ -2067,7 +2067,17 @@ int32_t handleevents(void)
|
|||
|
||||
if (inputchecked && g_mouseEnabled)
|
||||
{
|
||||
g_mouseBits &= ~(16 | 32);
|
||||
// This is a horrible crutch
|
||||
if (inputState.mouseReadButtons() & WHEELUP_MOUSE)
|
||||
{
|
||||
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELUP };
|
||||
D_PostEvent(&ev);
|
||||
}
|
||||
if (inputState.mouseReadButtons() & WHEELDOWN_MOUSE)
|
||||
{
|
||||
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELDOWN };
|
||||
D_PostEvent(&ev);
|
||||
}
|
||||
}
|
||||
|
||||
rv = handleevents_pollsdl();
|
||||
|
|
Loading…
Reference in a new issue