src/events/scancodes_xfree86.h
changeset 10494 c54de4000f9f
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
     1.1 --- a/src/events/scancodes_xfree86.h	Sat Aug 15 00:25:52 2015 -0500
     1.2 +++ b/src/events/scancodes_xfree86.h	Mon Oct 03 11:35:34 2016 +0100
     1.3 @@ -418,4 +418,89 @@
     1.4      /* 238 */   SDL_SCANCODE_UNKNOWN,   /* XF86WLAN */
     1.5  };
     1.6  
     1.7 +/* Xvnc / Xtightvnc scancodes from xmodmap -pk */
     1.8 +static const SDL_Scancode xvnc_scancode_table[] = {
     1.9 +    /*  0 */    SDL_SCANCODE_LCTRL,
    1.10 +    /*  1 */    SDL_SCANCODE_RCTRL,
    1.11 +    /*  2 */    SDL_SCANCODE_LSHIFT,
    1.12 +    /*  3 */    SDL_SCANCODE_RSHIFT,
    1.13 +    /*  4 */    SDL_SCANCODE_UNKNOWN, /* Meta_L */
    1.14 +    /*  5 */    SDL_SCANCODE_UNKNOWN, /* Meta_R */
    1.15 +    /*  6 */    SDL_SCANCODE_LALT,
    1.16 +    /*  7 */    SDL_SCANCODE_RALT,
    1.17 +    /*  8 */    SDL_SCANCODE_SPACE,
    1.18 +    /*  9 */    SDL_SCANCODE_0,
    1.19 +    /*  10 */   SDL_SCANCODE_1,
    1.20 +    /*  11 */   SDL_SCANCODE_2,
    1.21 +    /*  12 */   SDL_SCANCODE_3,
    1.22 +    /*  13 */   SDL_SCANCODE_4,
    1.23 +    /*  14 */   SDL_SCANCODE_5,
    1.24 +    /*  15 */   SDL_SCANCODE_6,
    1.25 +    /*  16 */   SDL_SCANCODE_7,
    1.26 +    /*  17 */   SDL_SCANCODE_8,
    1.27 +    /*  18 */   SDL_SCANCODE_9,
    1.28 +    /*  19 */   SDL_SCANCODE_MINUS,
    1.29 +    /*  20 */   SDL_SCANCODE_EQUALS,
    1.30 +    /*  21 */   SDL_SCANCODE_LEFTBRACKET,
    1.31 +    /*  22 */   SDL_SCANCODE_RIGHTBRACKET,
    1.32 +    /*  23 */   SDL_SCANCODE_SEMICOLON,
    1.33 +    /*  24 */   SDL_SCANCODE_APOSTROPHE,
    1.34 +    /*  25 */   SDL_SCANCODE_GRAVE,
    1.35 +    /*  26 */   SDL_SCANCODE_COMMA,
    1.36 +    /*  27 */   SDL_SCANCODE_PERIOD,
    1.37 +    /*  28 */   SDL_SCANCODE_SLASH,
    1.38 +    /*  29 */   SDL_SCANCODE_BACKSLASH,
    1.39 +    /*  30 */   SDL_SCANCODE_A,
    1.40 +    /*  31 */   SDL_SCANCODE_B,
    1.41 +    /*  32 */   SDL_SCANCODE_C,
    1.42 +    /*  33 */   SDL_SCANCODE_D,
    1.43 +    /*  34 */   SDL_SCANCODE_E,
    1.44 +    /*  35 */   SDL_SCANCODE_F,
    1.45 +    /*  36 */   SDL_SCANCODE_G,
    1.46 +    /*  37 */   SDL_SCANCODE_H,
    1.47 +    /*  38 */   SDL_SCANCODE_I,
    1.48 +    /*  39 */   SDL_SCANCODE_J,
    1.49 +    /*  40 */   SDL_SCANCODE_K,
    1.50 +    /*  41 */   SDL_SCANCODE_L,
    1.51 +    /*  42 */   SDL_SCANCODE_M,
    1.52 +    /*  43 */   SDL_SCANCODE_N,
    1.53 +    /*  44 */   SDL_SCANCODE_O,
    1.54 +    /*  45 */   SDL_SCANCODE_P,
    1.55 +    /*  46 */   SDL_SCANCODE_Q,
    1.56 +    /*  47 */   SDL_SCANCODE_R,
    1.57 +    /*  48 */   SDL_SCANCODE_S,
    1.58 +    /*  49 */   SDL_SCANCODE_T,
    1.59 +    /*  50 */   SDL_SCANCODE_U,
    1.60 +    /*  51 */   SDL_SCANCODE_V,
    1.61 +    /*  52 */   SDL_SCANCODE_W,
    1.62 +    /*  53 */   SDL_SCANCODE_X,
    1.63 +    /*  54 */   SDL_SCANCODE_Y,
    1.64 +    /*  55 */   SDL_SCANCODE_Z,
    1.65 +    /*  56 */   SDL_SCANCODE_BACKSPACE,
    1.66 +    /*  57 */   SDL_SCANCODE_RETURN,
    1.67 +    /*  58 */   SDL_SCANCODE_TAB,
    1.68 +    /*  59 */   SDL_SCANCODE_ESCAPE,
    1.69 +    /*  60 */   SDL_SCANCODE_DELETE,
    1.70 +    /*  61 */   SDL_SCANCODE_HOME,
    1.71 +    /*  62 */   SDL_SCANCODE_END,
    1.72 +    /*  63 */   SDL_SCANCODE_PAGEUP,
    1.73 +    /*  64 */   SDL_SCANCODE_PAGEDOWN,
    1.74 +    /*  65 */   SDL_SCANCODE_UP,
    1.75 +    /*  66 */   SDL_SCANCODE_DOWN,
    1.76 +    /*  67 */   SDL_SCANCODE_LEFT,
    1.77 +    /*  68 */   SDL_SCANCODE_RIGHT,
    1.78 +    /*  69 */   SDL_SCANCODE_F1,
    1.79 +    /*  70 */   SDL_SCANCODE_F2,
    1.80 +    /*  71 */   SDL_SCANCODE_F3,
    1.81 +    /*  72 */   SDL_SCANCODE_F4,
    1.82 +    /*  73 */   SDL_SCANCODE_F5,
    1.83 +    /*  74 */   SDL_SCANCODE_F6,
    1.84 +    /*  75 */   SDL_SCANCODE_F7,
    1.85 +    /*  76 */   SDL_SCANCODE_F8,
    1.86 +    /*  77 */   SDL_SCANCODE_F9,
    1.87 +    /*  78 */   SDL_SCANCODE_F10,
    1.88 +    /*  79 */   SDL_SCANCODE_F11,
    1.89 +    /*  80 */   SDL_SCANCODE_F12,
    1.90 +};
    1.91 +
    1.92  /* *INDENT-ON* */