mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-26 05:51:36 +00:00
fix the double wheel events
This commit is contained in:
parent
eadf434f17
commit
f971ce91fe
1 changed files with 2 additions and 4 deletions
|
@ -188,12 +188,10 @@ IN_SendKeyEvents (void)
|
||||||
== SDL_MOUSEBUTTONDOWN);
|
== SDL_MOUSEBUTTONDOWN);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Key_Event(K_MWHEELUP, 1);
|
Key_Event(K_MWHEELUP, event.type == SDL_MOUSEBUTTONDOWN);
|
||||||
Key_Event(K_MWHEELUP, 0);
|
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
Key_Event(K_MWHEELDOWN, 1);
|
Key_Event(K_MWHEELDOWN, event.type == SDL_MOUSEBUTTONDOWN);
|
||||||
Key_Event(K_MWHEELDOWN, 0);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue