Commit 1289f43ab16f9a012fb3698bcc5c92e61c10cd34

Authored by bellard
1 parent 76472292

Windows keys support with keymaps


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1315 c046a42c-6fe2-441c-8c8c-71466251a162
keymaps/modifiers
@@ -8,9 +8,10 @@ Alt_L 0x38 @@ -8,9 +8,10 @@ Alt_L 0x38
8 Control_R 0x9d 8 Control_R 0x9d
9 Control_L 0x1d 9 Control_L 0x1d
10 10
11 -# Translate Meta, Super and Hyper to Windows keys. 11 +# Translate Super to Windows keys.
12 # This is hardcoded. See documentation for details. 12 # This is hardcoded. See documentation for details.
  13 +Super_R 0xdb
  14 +Super_L 0xdc
13 15
14 # Translate Menu to the Windows Application key. 16 # Translate Menu to the Windows Application key.
15 -# This one does not work either.  
16 Menu 0xdd 17 Menu 0xdd
sdl_keysym.h
@@ -213,6 +213,8 @@ static name2keysym_t name2keysym[]={ @@ -213,6 +213,8 @@ static name2keysym_t name2keysym[]={
213 {"Meta_R", SDLK_RMETA}, 213 {"Meta_R", SDLK_RMETA},
214 {"Shift_L", SDLK_LSHIFT}, 214 {"Shift_L", SDLK_LSHIFT},
215 {"Shift_R", SDLK_RSHIFT}, 215 {"Shift_R", SDLK_RSHIFT},
  216 +{"Super_L", SDLK_LSUPER},
  217 +{"Super_R", SDLK_RSUPER},
216 218
217 /* special keys */ 219 /* special keys */
218 {"BackSpace", SDLK_BACKSPACE}, 220 {"BackSpace", SDLK_BACKSPACE},