mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ui: add support for mice with extra/side buttons
Adds input event generation for BTN_SIDE and BTN_EXTRA events to gtk and input-linux methods. Signed-off-by: Fabian Lesniak <fabian@lesniak-it.de> Message-id: 20161206190007.7539-4-fabian@lesniak-it.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
8b0caab07b
commit
1266b68c6e
2 changed files with 10 additions and 0 deletions
4
ui/gtk.c
4
ui/gtk.c
|
@ -1007,6 +1007,10 @@ static gboolean gd_button_event(GtkWidget *widget, GdkEventButton *button,
|
|||
btn = INPUT_BUTTON_MIDDLE;
|
||||
} else if (button->button == 3) {
|
||||
btn = INPUT_BUTTON_RIGHT;
|
||||
} else if (button->button == 8) {
|
||||
btn = INPUT_BUTTON_SIDE;
|
||||
} else if (button->button == 9) {
|
||||
btn = INPUT_BUTTON_EXTRA;
|
||||
} else {
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue