Windows keys
PATCH 1/1 Windows keys
Hello,
the attached patch makes the Windows keys and the menu key available via keymaps. It is based on a patch that was submitted on Feb. 4. which added theses keys to the list of hardcoded keys. With this patch, the keys now work when using the -k option.
The patch also makes Escape available when using keymaps. It was tested on Linux host with Win98se, Win2k and GamesKnoppix (=^Debian) and applies cleanly to qemu-snapshot-2005-02-25_23.tar.bz2
BTW. is it just me or do the CVS snapshots from dad-answers.com now lack KQemu?
Oliver
Signature · 2 lines
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
keymaps/modifiers +3 -2
@@ -8,9 +8,10 @@ Control_R 0x9d Control_L 0x1d -# Translate Meta, Super and Hyper to Windows keys. +# Translate Super to Windows keys. # This is hardcoded. See documentation for details. +Super_R 0xdb +Super_L 0xdc # Translate Menu to the Windows Application key. -# This one does not work either. Menu 0xdd
sdl_keysym.h +3 -0
@@ -213,6 +213,8 @@ {"Meta_R", SDLK_RMETA}, {"Shift_L", SDLK_LSHIFT}, {"Shift_R", SDLK_RSHIFT}, +{"Super_L", SDLK_LSUPER}, +{"Super_R", SDLK_RSUPER},/* special keys */ {"BackSpace", SDLK_BACKSPACE},
@@ -270,6 +272,7 @@ {"Multi_Key", SDLK_COMPOSE}, {"Num_Lock", SDLK_NUMLOCK}, {"Pause", SDLK_PAUSE}, +{"Escape", SDLK_ESCAPE}, {0,0}, };