mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-16 16:51:16 +00:00
Buttons 4 and 5 may now be bound in -x11 and -glx targets. They generate
the K_MWHEELUP and K_MWHEELDOWN events.
This commit is contained in:
parent
5e15698777
commit
43e95bac41
1 changed files with 9 additions and 0 deletions
|
@ -238,6 +238,15 @@ static void event_button(XEvent *event)
|
|||
case 2:
|
||||
case 3:
|
||||
Key_Event(K_MOUSE1 + but - 1, event->type == ButtonPress);
|
||||
break;
|
||||
case 4:
|
||||
Key_Event(K_MWHEELUP, 1);
|
||||
Key_Event(K_MWHEELUP, 0);
|
||||
break;
|
||||
case 5:
|
||||
Key_Event(K_MWHEELDOWN, 1);
|
||||
Key_Event(K_MWHEELDOWN, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue