qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/input/hid: Add support for keys of jp106 keyboard.
@ 2021-04-27  2:02 Katsuhiro Ueno
  2021-05-13  6:11 ` Katsuhiro Ueno
  0 siblings, 1 reply; 4+ messages in thread
From: Katsuhiro Ueno @ 2021-04-27  2:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Add support for the following keys: KATAKANAHIRAGANA, HENKAN, MUHENKAN,
RO, and YEN.  Before this commit, these keys did not work as expected
when a jp106 keyboard was connected to the guest as a usb-kbd device.

Signed-off-by: Katsuhiro Ueno <uenobk@gmail.com>
---
 hw/input/hid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/input/hid.c b/hw/input/hid.c
index e1d2e46083..8aab0521f4 100644
--- a/hw/input/hid.c
+++ b/hw/input/hid.c
@@ -51,8 +51,8 @@ static const uint8_t hid_usage_keys[0x100] = {
     0x45, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e,
     0xe8, 0xe9, 0x71, 0x72, 0x73, 0x00, 0x00, 0x00,
     0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0xe7, 0x65,
+    0x88, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00,
+    0x00, 0x8a, 0x00, 0x8b, 0x00, 0x89, 0xe7, 0x65,

     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-- 
2.24.3 (Apple Git-128)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/input/hid: Add support for keys of jp106 keyboard.
  2021-04-27  2:02 [PATCH] hw/input/hid: Add support for keys of jp106 keyboard Katsuhiro Ueno
@ 2021-05-13  6:11 ` Katsuhiro Ueno
  2021-05-13  7:53   ` Laurent Vivier
  0 siblings, 1 reply; 4+ messages in thread
From: Katsuhiro Ueno @ 2021-05-13  6:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Ping.

2021-04-27 11:02 Katsuhiro Ueno <uenobk@gmail.com>:
>
> Add support for the following keys: KATAKANAHIRAGANA, HENKAN, MUHENKAN,
> RO, and YEN.  Before this commit, these keys did not work as expected
> when a jp106 keyboard was connected to the guest as a usb-kbd device.
>
> Signed-off-by: Katsuhiro Ueno <uenobk@gmail.com>
> ---
>  hw/input/hid.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/input/hid.c b/hw/input/hid.c
> index e1d2e46083..8aab0521f4 100644
> --- a/hw/input/hid.c
> +++ b/hw/input/hid.c
> @@ -51,8 +51,8 @@ static const uint8_t hid_usage_keys[0x100] = {
>      0x45, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e,
>      0xe8, 0xe9, 0x71, 0x72, 0x73, 0x00, 0x00, 0x00,
>      0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, 0x00,
> -    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> -    0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0xe7, 0x65,
> +    0x88, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00,
> +    0x00, 0x8a, 0x00, 0x8b, 0x00, 0x89, 0xe7, 0x65,
>
>      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> --
> 2.24.3 (Apple Git-128)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/input/hid: Add support for keys of jp106 keyboard.
  2021-05-13  6:11 ` Katsuhiro Ueno
@ 2021-05-13  7:53   ` Laurent Vivier
  2021-05-18 10:18     ` Gerd Hoffmann
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Vivier @ 2021-05-13  7:53 UTC (permalink / raw)
  To: Katsuhiro Ueno, qemu-devel; +Cc: qemu-trivial, Gerd Hoffmann

Le 13/05/2021 à 08:11, Katsuhiro Ueno a écrit :
> Ping.

cc Gerd

> 2021-04-27 11:02 Katsuhiro Ueno <uenobk@gmail.com>:
>>
>> Add support for the following keys: KATAKANAHIRAGANA, HENKAN, MUHENKAN,
>> RO, and YEN.  Before this commit, these keys did not work as expected
>> when a jp106 keyboard was connected to the guest as a usb-kbd device.
>>
>> Signed-off-by: Katsuhiro Ueno <uenobk@gmail.com>
>> ---
>>  hw/input/hid.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/hw/input/hid.c b/hw/input/hid.c
>> index e1d2e46083..8aab0521f4 100644
>> --- a/hw/input/hid.c
>> +++ b/hw/input/hid.c
>> @@ -51,8 +51,8 @@ static const uint8_t hid_usage_keys[0x100] = {
>>      0x45, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e,
>>      0xe8, 0xe9, 0x71, 0x72, 0x73, 0x00, 0x00, 0x00,
>>      0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, 0x00,
>> -    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>> -    0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0xe7, 0x65,
>> +    0x88, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00,
>> +    0x00, 0x8a, 0x00, 0x8b, 0x00, 0x89, 0xe7, 0x65,
>>
>>      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>>      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>> --
>> 2.24.3 (Apple Git-128)
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/input/hid: Add support for keys of jp106 keyboard.
  2021-05-13  7:53   ` Laurent Vivier
@ 2021-05-18 10:18     ` Gerd Hoffmann
  0 siblings, 0 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2021-05-18 10:18 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: qemu-trivial, Katsuhiro Ueno, qemu-devel

On Thu, May 13, 2021 at 09:53:34AM +0200, Laurent Vivier wrote:
> Le 13/05/2021 à 08:11, Katsuhiro Ueno a écrit :
> > Ping.
> 
> cc Gerd

Added to usb queue.

thanks,
  Gerd



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-18 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27  2:02 [PATCH] hw/input/hid: Add support for keys of jp106 keyboard Katsuhiro Ueno
2021-05-13  6:11 ` Katsuhiro Ueno
2021-05-13  7:53   ` Laurent Vivier
2021-05-18 10:18     ` Gerd Hoffmann

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).