mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
fix the double mouse wheel events
This commit is contained in:
parent
39635d52a2
commit
eadf434f17
1 changed files with 2 additions and 4 deletions
|
@ -241,12 +241,10 @@ event_button (XEvent *event)
|
|||
Key_Event(K_MOUSE1 + but - 1, event->type == ButtonPress);
|
||||
break;
|
||||
case 4:
|
||||
Key_Event(K_MWHEELUP, 1);
|
||||
Key_Event(K_MWHEELUP, 0);
|
||||
Key_Event(K_MWHEELUP, event->type == ButtonPress);
|
||||
break;
|
||||
case 5:
|
||||
Key_Event(K_MWHEELDOWN, 1);
|
||||
Key_Event(K_MWHEELDOWN, 0);
|
||||
Key_Event(K_MWHEELDOWN, event->type == ButtonPress);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue