src/events/scancodes_xfree86.h
changeset 3162 dc1eb82ffdaa
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
equal deleted inserted replaced
3161:494559cc723b 3162:dc1eb82ffdaa
    24 /* XFree86 key code to SDL scancode mapping table
    24 /* XFree86 key code to SDL scancode mapping table
    25    Sources:
    25    Sources:
    26    - atKeyNames.h from XFree86 source code
    26    - atKeyNames.h from XFree86 source code
    27 */
    27 */
    28 /* *INDENT-OFF* */
    28 /* *INDENT-OFF* */
    29 static SDL_scancode xfree86_scancode_table[] = {
    29 static const SDL_scancode xfree86_scancode_table[] = {
    30     /*  0 */    SDL_SCANCODE_UNKNOWN,
    30     /*  0 */    SDL_SCANCODE_UNKNOWN,
    31     /*  1 */    SDL_SCANCODE_ESCAPE,
    31     /*  1 */    SDL_SCANCODE_ESCAPE,
    32     /*  2 */    SDL_SCANCODE_1,
    32     /*  2 */    SDL_SCANCODE_1,
    33     /*  3 */    SDL_SCANCODE_2,
    33     /*  3 */    SDL_SCANCODE_2,
    34     /*  4 */    SDL_SCANCODE_3,
    34     /*  4 */    SDL_SCANCODE_3,
   175     /*  145 */  SDL_SCANCODE_FIND,
   175     /*  145 */  SDL_SCANCODE_FIND,
   176     /*  146 */  SDL_SCANCODE_CUT,
   176     /*  146 */  SDL_SCANCODE_CUT,
   177 };
   177 };
   178 
   178 
   179 /* for wireless usb keyboard (manufacturer TRUST) without numpad. */
   179 /* for wireless usb keyboard (manufacturer TRUST) without numpad. */
   180 static SDL_scancode xfree86_scancode_table2[] = {
   180 static const SDL_scancode xfree86_scancode_table2[] = {
   181     /*  0 */    SDL_SCANCODE_UNKNOWN,
   181     /*  0 */    SDL_SCANCODE_UNKNOWN,
   182     /*  1 */    SDL_SCANCODE_ESCAPE,
   182     /*  1 */    SDL_SCANCODE_ESCAPE,
   183     /*  2 */    SDL_SCANCODE_1,
   183     /*  2 */    SDL_SCANCODE_1,
   184     /*  3 */    SDL_SCANCODE_2,
   184     /*  3 */    SDL_SCANCODE_2,
   185     /*  4 */    SDL_SCANCODE_3,
   185     /*  4 */    SDL_SCANCODE_3,