From: "Carlos A. M. dos Santos" <unixmania@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] keyboard patch for Brazilian ABNT-2 keyboard
Date: Mon, 18 Sep 2006 22:01:17 -0300 [thread overview]
Message-ID: <e71790db0609181801y5e0e4422jc43a1830dd282b9@mail.gmail.com> (raw)
[-- 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;
}
reply other threads:[~2006-09-19 1:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=e71790db0609181801y5e0e4422jc43a1830dd282b9@mail.gmail.com \
--to=unixmania@gmail.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).