oss: Unbreak mmaping the ability to mmap oss fd on Linux
[qemu] / sdl_keysym.h
index a1485ee..ee90480 100644 (file)
@@ -1,8 +1,7 @@
-typedef struct {
-       const char* name;
-       int keysym;
-} name2keysym_t;
-static name2keysym_t name2keysym[]={
+
+#include "keymaps.h"
+
+static const name2keysym_t name2keysym[]={
 /* ascii */
     { "space",                0x020},
     { "exclam",               0x021},
@@ -213,6 +212,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},
@@ -272,5 +273,5 @@ static name2keysym_t name2keysym[]={
 {"Pause", SDLK_PAUSE},
 {"Escape", SDLK_ESCAPE},
 
-{0,0},
+{NULL, 0},
 };