qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] ABNT2 keys again


From: Joao Luis Meloni Assirati
Subject: Re: [Qemu-devel] ABNT2 keys again
Date: Fri, 22 May 2015 12:03:44 -0300
User-agent: SquirrelMail/1.4.23 [SVN]

> 22.05.2015 13:01, Gerd Hoffmann wrote:

[...]

>>>> The solution appears to be trivial (see also some background
>>>> at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ),
>>>> but the problem is definitely still here.

This is the patch that works:

--- ui/x_keymap.c~
+++ ui/x_keymap.c
@@ -94,7 +94,7 @@
  */

 static const uint8_t evdev_keycode_to_pc_keycode[61] = {
-    0,         /*  97 EVDEV - RO   ("Internet" Keyboards) */
+    0x73,      /*  97 EVDEV - /?° (ABNT2 Keyboards) */
     0,         /*  98 EVDEV - KATA (Katakana) */
     0,         /*  99 EVDEV - HIRA (Hiragana) */
     0x79,      /* 100 EVDEV - HENK (Henkan) */
@@ -126,7 +126,7 @@
     0,         /* 126 EVDEV - I126 ("Internet" Keyboards) */
     0,         /* 127 EVDEV - PAUS */
     0,         /* 128 EVDEV - ???? */
-    0,         /* 129 EVDEV - I129 ("Internet" Keyboards) */
+    0x34,      /* 129 abnt2 KP-period */
     0xf1,      /* 130 EVDEV - HNGL (Korean Hangul Latin toggle) */
     0xf2,      /* 131 EVDEV - HJCV (Korean Hangul Hanja toggle) */
     0x7d,      /* 132 AE13 (Yen)*/


[...]

>> Anyone having such a keyboard and willing to run some tests?

I have this keyboard and I can run tests.

Joao Luis.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]