diff options
author | Fabian Lesniak <fabian@lesniak-it.de> | 2016-12-06 20:00:07 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-31 08:14:51 +0100 |
commit | 1266b68c6e3af7f7bd53edcba1ee12cec07cdefe (patch) | |
tree | 01baec7e37cfd4110222d1b8455107125b62d7fe /ui/gtk.c | |
parent | 8b0caab07bf0056f44b52eb335faa45f07b7e1a6 (diff) |
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>
Diffstat (limited to 'ui/gtk.c')
-rw-r--r-- | ui/gtk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |