[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Mac keyboard not supported
From: |
Phil Krylov |
Subject: |
Re: [Qemu-devel] Mac keyboard not supported |
Date: |
Sun, 2 Jan 2005 20:47:07 +0300 |
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.
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/01
- Re: [Qemu-devel] Mac keyboard not supported, Phil Krylov, 2005/01/02
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/02
- Re: [Qemu-devel] Mac keyboard not supported,
Phil Krylov <=
- Re: [Qemu-devel] Mac keyboard not supported, Johannes Schindelin, 2005/01/02
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/02
- Re: [Qemu-devel] Mac keyboard not supported, Johannes Schindelin, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Johannes Schindelin, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Fabrice Bellard, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, David Still, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Johannes Schindelin, 2005/01/17
- Re: [Qemu-devel] Mac keyboard not supported, Laurent Amon, 2005/01/17