src/video/x11/SDL_x11keyboard.c
changeset 3162 dc1eb82ffdaa
parent 3001 7b031c55aebc
child 3667 cc7eca3a4e13
equal deleted inserted replaced
3161:494559cc723b 3162:dc1eb82ffdaa
    30 #include <X11/keysym.h>
    30 #include <X11/keysym.h>
    31 
    31 
    32 #include "imKStoUCS.h"
    32 #include "imKStoUCS.h"
    33 
    33 
    34 /* *INDENT-OFF* */
    34 /* *INDENT-OFF* */
    35 static struct {
    35 static const struct {
    36     KeySym keysym;
    36     KeySym keysym;
    37     SDLKey sdlkey;
    37     SDLKey sdlkey;
    38 } KeySymToSDLKey[] = {
    38 } KeySymToSDLKey[] = {
    39     { XK_Return, SDLK_RETURN },
    39     { XK_Return, SDLK_RETURN },
    40     { XK_Escape, SDLK_ESCAPE },
    40     { XK_Escape, SDLK_ESCAPE },
   130     { XK_Meta_R, SDLK_RGUI },
   130     { XK_Meta_R, SDLK_RGUI },
   131     { XK_Super_R, SDLK_RGUI },
   131     { XK_Super_R, SDLK_RGUI },
   132     { XK_Mode_switch, SDLK_MODE },
   132     { XK_Mode_switch, SDLK_MODE },
   133 };
   133 };
   134 
   134 
   135 static struct
   135 static const struct
   136 {
   136 {
   137     SDL_scancode *table;
   137     const SDL_scancode const *table;
   138     int table_size;
   138     int table_size;
   139 } scancode_set[] = {
   139 } scancode_set[] = {
   140     { darwin_scancode_table, SDL_arraysize(darwin_scancode_table) },
   140     { darwin_scancode_table, SDL_arraysize(darwin_scancode_table) },
   141     { xfree86_scancode_table, SDL_arraysize(xfree86_scancode_table) },
   141     { xfree86_scancode_table, SDL_arraysize(xfree86_scancode_table) },
   142     { xfree86_scancode_table2, SDL_arraysize(xfree86_scancode_table2) },
   142     { xfree86_scancode_table2, SDL_arraysize(xfree86_scancode_table2) },