From: Phil Krylov <phil.krylov@gmail.com>
To: Laurent Amon <amon@cs.stanford.edu>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mac keyboard not supported
Date: Sun, 2 Jan 2005 20:47:07 +0300 [thread overview]
Message-ID: <c10dbf4505010209472dfb2dd6@mail.gmail.com> (raw)
In-Reply-To: <D381E9B3-5CDA-11D9-B1E0-00039307264A@cs.stanford.edu>
Hello Laurent,
> What language is your keyboard in? You may want to uncomment the
> fprintf to see what you are missing.
I have U.S. layout on a TiBook. 'A' returns SDLK_WORLD_0 (160) here...
This patch (applied after yours) fixes Caps Lock, 'A', and Command
keys (there was a missing break after SDLK_META case). Can you please
check if it ruins things with a non-US keyboard (which can need
SDLK_WORLD_0 different from 'A')?
*** sdl.c Sun Jan 2 20:34:20 2005
--- sdl.new Sun Jan 2 20:02:39 2005
*************** static uint8_t sdl_keyevent_to_keycode(c
*** 258,264 ****
--- 258,269 ----
case SDLK_LMETA:
/* make Command into Windows key --lga--*/
keycode = 0x79;
+ break;
+ case SDLK_CAPSLOCK:
+ keycode = 0x3a;
+ break;
case SDLK_a: /* I just don't want to
know why this is needed */
+ case SDLK_WORLD_0:
case 0x71:
keycode = 0x1e;
break;
-- Ph.
next prev parent reply other threads:[~2005-01-02 18:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-27 16:40 [Qemu-devel] Mac keyboard not supported Laurent Amon
2004-12-27 18:36 ` Phil Krylov
2004-12-28 1:16 ` Johannes Schindelin
2004-12-28 7:29 ` Laurent Amon
2004-12-28 11:55 ` Johannes Schindelin
2004-12-28 12:26 ` Laurent Amon
2004-12-28 12:41 ` Johannes Schindelin
2004-12-29 5:13 ` Natalia Portillo
2005-01-01 18:20 ` Laurent Amon
2005-01-02 14:40 ` Phil Krylov
2005-01-02 16:24 ` Laurent Amon
2005-01-02 17:47 ` Phil Krylov [this message]
2005-01-02 19:22 ` Johannes Schindelin
2005-01-02 20:16 ` Laurent Amon
2005-01-17 15:01 ` Johannes Schindelin
2005-01-17 16:51 ` Laurent Amon
2005-01-17 17:58 ` Johannes Schindelin
2005-01-17 22:08 ` Fabrice Bellard
2005-01-17 23:17 ` Laurent Amon
2005-01-17 17:54 ` David Still
2005-01-17 18:42 ` Johannes Schindelin
2005-01-17 19:33 ` Laurent Amon
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=c10dbf4505010209472dfb2dd6@mail.gmail.com \
--to=phil.krylov@gmail.com \
--cc=amon@cs.stanford.edu \
--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).