From: "Hervé Poussineau" <hpoussin@reactos.org>
To: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>, qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes
Date: Fri, 23 Dec 2016 21:58:35 +0100 [thread overview]
Message-ID: <feca54b3-9c38-4ce7-4edc-b1f9f88fb7a1@reactos.org> (raw)
In-Reply-To: <87inqavlzj.fsf@mail.parknet.co.jp>
Le 23/12/2016 à 14:00, OGAWA Hirofumi a écrit :
>
> With "ps2: use QEMU qcodes instead of scancodes", key handling was
> changed to qcode base. But all scancodes are not converted to new one.
>
> This adds some missing qcodes what I found in using.
>
> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> ---
>
> hw/input/ps2.c | 3 +++
> qapi-schema.json | 3 ++-
> ui/input-keymap.c | 3 +++
> 3 files changed, 8 insertions(+), 1 deletion(-)
>
> diff -puN hw/input/ps2.c~fix-ps2-scancode hw/input/ps2.c
> --- qemu/hw/input/ps2.c~fix-ps2-scancode 2016-12-23 21:14:59.837729450 +0900
> +++ qemu-hirofumi/hw/input/ps2.c 2016-12-23 21:14:59.840729469 +0900
> @@ -394,6 +394,9 @@ static const uint16_t qcode_to_keycode_s
> [Q_KEY_CODE_LESS] = 0x61,
> [Q_KEY_CODE_SYSRQ] = 0x7f,
> [Q_KEY_CODE_RO] = 0x51,
> + [Q_KEY_CODE_HIRAGANA] = 0x13,
> + [Q_KEY_CODE_HENKAN] = 0x64,
> + [Q_KEY_CODE_YEN] = 0x6a,
> [Q_KEY_CODE_KP_COMMA] = 0x6d,
> };
>
> diff -puN qapi-schema.json~fix-ps2-scancode qapi-schema.json
> --- qemu/qapi-schema.json~fix-ps2-scancode 2016-12-23 21:14:59.838729456 +0900
> +++ qemu-hirofumi/qapi-schema.json 2016-12-23 21:14:59.840729469 +0900
> @@ -3642,7 +3642,8 @@
> 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
> 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
> 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
> - 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro',
> + 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause',
> + 'ro', 'hiragana', 'henkan', 'yen',
> 'kp_comma', 'kp_equals', 'power' ] }
>
> ##
> diff -puN ui/input-keymap.c~fix-ps2-scancode ui/input-keymap.c
> --- qemu/ui/input-keymap.c~fix-ps2-scancode 2016-12-23 21:14:59.839729463 +0900
> +++ qemu-hirofumi/ui/input-keymap.c 2016-12-23 21:14:59.840729469 +0900
> @@ -131,6 +131,9 @@ static const int qcode_to_number[] = {
> [Q_KEY_CODE_DELETE] = 0xd3,
>
> [Q_KEY_CODE_RO] = 0x73,
> + [Q_KEY_CODE_HIRAGANA] = 0x70,
> + [Q_KEY_CODE_HENKAN] = 0x79,
> + [Q_KEY_CODE_YEN] = 0x7d,
> [Q_KEY_CODE_KP_COMMA] = 0x7e,
>
> [Q_KEY_CODE__MAX] = 0,
Can you also add the keycodes for scancode set 1:
+ [Q_KEY_CODE_HIRAGANA] = 0x70,
+ [Q_KEY_CODE_HENKAN] = 0x79,
+ [Q_KEY_CODE_YEN] = 0x7d,
and scancode set 3:
+ [Q_KEY_CODE_HIRAGANA] = 0x87,
+ [Q_KEY_CODE_HENKAN] = 0x86,
+ [Q_KEY_CODE_YEN] = 0x51,
Hervé
next prev parent reply other threads:[~2016-12-23 20:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-23 13:00 [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes OGAWA Hirofumi
2016-12-23 20:58 ` Hervé Poussineau [this message]
2016-12-23 22:49 ` OGAWA Hirofumi
2016-12-27 14:27 ` Hervé Poussineau
2016-12-27 19:49 ` OGAWA Hirofumi
2016-12-27 19:55 ` [Qemu-devel] [PATCH v3] " OGAWA Hirofumi
2016-12-27 20:11 ` Hervé Poussineau
2017-01-04 8:50 ` Gerd Hoffmann
2017-01-04 17:59 ` Hervé Poussineau
2017-01-04 21:11 ` OGAWA Hirofumi
2017-01-05 8:12 ` Gerd Hoffmann
2017-01-05 8:45 ` OGAWA Hirofumi
2016-12-23 21:58 ` [Qemu-devel] [PATCH] " Eric Blake
2016-12-23 23:33 ` OGAWA Hirofumi
2016-12-23 23:36 ` [Qemu-devel] [PATCH v2] " OGAWA Hirofumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=feca54b3-9c38-4ce7-4edc-b1f9f88fb7a1@reactos.org \
--to=hpoussin@reactos.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).