Fixes missing key in usb keyboard emulation
PATCH 1/1 Fixes missing key in usb keyboard emulation
Hi,
This one-liner patch adds a translation entry for the key that is between left shift and 'Z' on international keyboards, enabling its use in the usb keyboard device emulation.
Daniel Serpell (1):
Adds keycode 86 to the hid_usage_keys translation table.
hw/input/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.0
PATCH 1/1 Adds keycode 86 to the hid_usage_keys translation table.
This key is present in international keyboards, between left shift and the 'Z' key, ant is described in the HID usage tables as "Keyboard Non-US \ and |": http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
This patch fixes the usb-kbd devices.
--- hw/input/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/input/hid.c +1 -1
@@ -45,7 +45,7 @@ static const uint8_t hid_usage_keys[0x100] = {0xe2 ,0x2c ,0x39 ,0x3a ,0x3b ,0x3c ,0x3d ,0x3e ,0x3f ,0x40 ,0x41 ,0x42 ,0x43 ,0x53 ,0x47 ,0x5f ,0x60 ,0x61 ,0x56 ,0x5c ,0x5d ,0x5e ,0x57 ,0x59 , -0x5a ,0x5b ,0x62 ,0x63 ,0x00 ,0x00 ,0x00 ,0x44 , +0x5a ,0x5b ,0x62 ,0x63 ,0x00 ,0x00 ,0x64 ,0x44 ,0x45 ,0x68 ,0x69 ,0x6a ,0x6b ,0x6c ,0x6d ,0x6e ,0xe8 ,0xe9 ,0x71 ,0x72 ,0x73 ,0x00 ,0x00 ,0x00 , 0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, 0x00,
Signature · 1 line
2.7.0
Re: [Qemu-devel] [PATCH] Adds keycode 86 to the hid_usage_keys translation table.
Quoted 7 lines · Daniel Serpell
This key is present in international keyboards, between left shift and the 'Z' key, ant is described in the HID usage tables as "Keyboard Non-US \ and |": http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
This patch fixes the usb-kbd devices.
Signed-off-by Daniel Serpell <[email protected]>
Michael Tokarev
AppliedRe: [Qemu-devel] [PATCH] Adds keycode 86 to the hid_usage_keys translation table.
In reply to Daniel SerpellQuoted 5 lines · Daniel Serpell
This key is present in international keyboards, between left shift and the 'Z' key, ant is described in the HID usage tables as "Keyboard Non-US \ and |": http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
This patch fixes the usb-kbd devices.
Applied to -trivial, thanks!
/mjt