mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-12 23:54:33 +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);
|
Key_Event(K_MOUSE1 + but - 1, event->type == ButtonPress);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Key_Event(K_MWHEELUP, 1);
|
Key_Event(K_MWHEELUP, event->type == ButtonPress);
|
||||||
Key_Event(K_MWHEELUP, 0);
|
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
Key_Event(K_MWHEELDOWN, 1);
|
Key_Event(K_MWHEELDOWN, event->type == ButtonPress);
|
||||||
Key_Event(K_MWHEELDOWN, 0);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue