]> git.proxmox.com Git - mirror_qemu.git/blobdiff - sdl_keysym.h
Include <strings.h> for ffs().
[mirror_qemu.git] / sdl_keysym.h
index 07969bcb43d85a991a0f7a56da6f84937a1ee16f..c9087d75a7d64ee1a3011605e1eee995140e397a 100644 (file)
@@ -2,7 +2,7 @@ typedef struct {
        const char* name;
        int keysym;
 } name2keysym_t;
-static name2keysym_t name2keysym[]={
+static const name2keysym_t name2keysym[]={
 /* ascii */
     { "space",                0x020},
     { "exclam",               0x021},
@@ -213,6 +213,8 @@ static name2keysym_t name2keysym[]={
 {"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 @@ static name2keysym_t name2keysym[]={
 {"Multi_Key", SDLK_COMPOSE},
 {"Num_Lock", SDLK_NUMLOCK},
 {"Pause", SDLK_PAUSE},
+{"Escape", SDLK_ESCAPE},
 
 {0,0},
 };