summaryrefslogtreecommitdiffstats
path: root/hw/input/virtio-input-hid.c
diff options
context:
space:
mode:
authorMiika S2017-12-22 16:25:30 +0100
committerGerd Hoffmann2018-01-29 09:30:25 +0100
commit2416760fa6728813e1446736e9be55e07b5030b0 (patch)
tree6a7ff0f615c5701fac57c22c167d093a512f3b5b /hw/input/virtio-input-hid.c
parentMerge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2018-01-26... (diff)
downloadqemu-2416760fa6728813e1446736e9be55e07b5030b0.tar.gz
qemu-2416760fa6728813e1446736e9be55e07b5030b0.tar.xz
qemu-2416760fa6728813e1446736e9be55e07b5030b0.zip
input: add mouse side buttons to virtio input
Signed-off-by: Miika S <miika9764@gmail.com> Message-Id: <20171222152531.1849-3-miika9764@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input/virtio-input-hid.c')
-rw-r--r--hw/input/virtio-input-hid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c
index e78faec0b1..a5917c2754 100644
--- a/hw/input/virtio-input-hid.c
+++ b/hw/input/virtio-input-hid.c
@@ -147,6 +147,8 @@ static const unsigned int keymap_button[INPUT_BUTTON__MAX] = {
[INPUT_BUTTON_MIDDLE] = BTN_MIDDLE,
[INPUT_BUTTON_WHEEL_UP] = BTN_GEAR_UP,
[INPUT_BUTTON_WHEEL_DOWN] = BTN_GEAR_DOWN,
+ [INPUT_BUTTON_SIDE] = BTN_SIDE,
+ [INPUT_BUTTON_EXTRA] = BTN_EXTRA,
};
static const unsigned int axismap_rel[INPUT_AXIS__MAX] = {