mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +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
|
@ -2065,9 +2065,19 @@ int32_t handleevents(void)
|
|||
{
|
||||
int32_t rv;
|
||||
|
||||
if (inputchecked && g_mouseEnabled)
|
||||
{
|
||||
g_mouseBits &= ~(16 | 32);
|
||||
if (inputchecked && g_mouseEnabled)
|
||||
{
|
||||
// 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