Skip to content

input: add keys and mouse buttons to virtio input

Miika S qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3input: add missing JIS keys to virtio inputhw/input/virtio-input-hid.c qapi/ui.json ui/keycodemapdb+12 -21 reply
2/3input: add mouse side buttons to virtio inputhw/input/virtio-input-hid.c+2 -00 replies
3/3input: virtio: don't send mouse wheel event twicehw/input/virtio-input-hid.c+4 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDaniel P. Berrange
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] input: add keys and mouse buttons to virtio input

This patchset adds some missing keys and mouse buttons to hw/input/virtio-input-hid.c.

On a JIS keyboard such as this one (106/109 - JIS)
https://upload.wikimedia.org/wikipedia/commons/b/b2/Physical_keyboard_layouts_comparison_ANSI_ISO_KS_ABNT_JIS.png
the keys are located as follows:
muhenkan: left of spacebar
henkan: right of spacebar
katakanahiragana: right of henkan
compose: the same as menu but the existing one didn't work
ro: left of right shift
(this produces the same key code as the key right of left shift on 102/105 ISO keyboard in the linked picture and consequently this patch also adds support for those keyboards)
yen: left of backspace

The mouse buttons "side" and "extra" are the ones you use to go to the previous and next page in modern web browsers such as Firefox and Chrome.

The last patch fixes mouse wheel event sent for both button up and down by only forwarding the event when the button state is down.

Miika S (3):
input: add missing JIS keys to virtio input
input: add mouse side buttons to virtio input
input: virtio: don't send mouse wheel event twice

 hw/input/virtio-input-hid.c | 15 +++++++++++++--
 qapi/ui.json                |  5 ++++-
 ui/keycodemapdb             |  2 +-
 3 files changed, 18 insertions(+), 4 deletions(-)
Signature · 1 line
2.15.1