fix the double mouse wheel events

This commit is contained in:
Bill Currie 2000-11-15 03:58:11 +00:00
parent 39635d52a2
commit eadf434f17

View file

@ -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;
}
}