]> git.proxmox.com Git - mirror_qemu.git/commit
ps2: allow keycode translation for all scancode sets
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 15 Sep 2016 20:06:25 +0000 (22:06 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 28 Sep 2016 12:03:18 +0000 (14:03 +0200)
commit57d5c005d35dc6d6d7e15a6b8c4d9ea16a7c738d
treee14b21b9d85b7572ff41c84eb782b83e81ce0398
parent4df23b64c51cc830d19eb29801070d31aa1e81cd
ps2: allow keycode translation for all scancode sets

Change ps2_put_keycode to get an untranslated scancode, which is translated if needed.

As qemu_input_key_value_to_scancode() gives translated scancodes, untranslate them
in ps2_keyboard_event first before giving them to ps2_put_keycode.

Results are not changed, except for some keys in translated set 3.

Translation table is available at
https://www.win.tue.nl/~aeb/linux/kbd/scancodes-10.html

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Message-id: 1473969987-5890-4-git-send-email-hpoussin@reactos.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/ps2.c