qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] keyboard patch for Brazilian ABNT-2 keyboard
@ 2006-09-19  1:01 Carlos A. M. dos Santos
  0 siblings, 0 replies; only message in thread
From: Carlos A. M. dos Santos @ 2006-09-19  1:01 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

Hi, QEMU developers

I'm using qemu 0.8.1 and 0.8.2 with keyboard wit Brazilian layout
(ABNT-2). I was unable to use some of the keys so I had to use the
attached patch. I hope it will be useful for everybody.

Best regards

-- 
Carlos A. M. dos Santos

[-- Attachment #2: patch-sdl.c --]
[-- Type: application/octet-stream, Size: 1055 bytes --]

--- sdl.c.orig	Mon Dec 19 20:51:53 2005
+++ sdl.c	Fri Jan 20 00:27:07 2006
@@ -125,9 +125,9 @@
    0xb5,      /* 112  Divide */
    0xb8,      /* 113  Alt-R  */
    0xc6,      /* 114  Break  */   
-   0x0,         /* 115 */
-   0x0,         /* 116 */
-   0x0,         /* 117 */
+   0xdb,      /* 115  Super_L */
+   0xdc,      /* 116  Super_R */
+   0xdd,      /* 117  Menu */
    0x0,         /* 118 */
    0x0,         /* 119 */
    0x70,         /* 120 Hiragana_Katakana */
@@ -144,7 +144,7 @@
    0x7b,         /* 131 Muhenkan */
    0x0,         /* 132 */
    0x7d,         /* 133 Yen */
-   0x0,         /* 134 */
+   0x7e,         /* KP_Decimal */
    0x0,         /* 135 */
    0x47,         /* 136 KP_7 */
    0x48,         /* 137 KP_8 */
@@ -183,6 +183,9 @@
     } else if (keycode < 158) {
         /* use conversion table */
         keycode = x_keycode_to_pc_keycode[keycode - 97];
+    } else if (keycode == 211 || keycode == 228) {
+	/* workaround for bug with pt-br keyboards */
+	keycode = 115;
     } else {
         keycode = 0;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-19  1:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19  1:01 [Qemu-devel] keyboard patch for Brazilian ABNT-2 keyboard Carlos A. M. dos Santos

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