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
|
@ -2064,10 +2064,20 @@ int32_t handleevents_pollsdl(void)
|
||||||
int32_t handleevents(void)
|
int32_t handleevents(void)
|
||||||
{
|
{
|
||||||
int32_t rv;
|
int32_t rv;
|
||||||
|
|
||||||
if (inputchecked && g_mouseEnabled)
|
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();
|
rv = handleevents_pollsdl();
|
||||||
|
|
Loading…
Reference in a new issue