diff options
author | Noah Bergbauer <noah@statshelix.com> | 2021-11-26 15:04:37 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-02-22 17:15:36 +0100 |
commit | 1e2d555846226a9e5fb1052fe8ba6f30480f33a9 (patch) | |
tree | 29e49887ef36ac8cdad001fda84e5eeef2ef8016 /hw/input/hid.c | |
parent | eb3cb751c9fbba3ba3dc640ff7f7cb4fe6a55829 (diff) |
hid: Implement support for side and extra buttons
Simply set the respective bits and update the descriptor accordingly.
Signed-off-by: Noah Bergbauer <noah@statshelix.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20211126140437.79745-1-noah@statshelix.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/input/hid.c')
-rw-r--r-- | hw/input/hid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/hid.c b/hw/input/hid.c index 8aab0521f4..e7ecebdf8f 100644 --- a/hw/input/hid.c +++ b/hw/input/hid.c @@ -114,6 +114,8 @@ static void hid_pointer_event(DeviceState *dev, QemuConsole *src, [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_RIGHT] = 0x02, [INPUT_BUTTON_MIDDLE] = 0x04, + [INPUT_BUTTON_SIDE] = 0x08, + [INPUT_BUTTON_EXTRA] = 0x10, }; HIDState *hs = (HIDState *)dev; HIDPointerEvent *e; |