src/events/scancodes_xfree86.h
changeset 2825 620a91b6d263
parent 2305 fbe8ff44c519
child 2859 99210400e8b9
     1.1 --- a/src/events/scancodes_xfree86.h	Tue Dec 02 17:14:04 2008 +0000
     1.2 +++ b/src/events/scancodes_xfree86.h	Wed Dec 03 04:32:24 2008 +0000
     1.3 @@ -175,4 +175,156 @@
     1.4      /*  145 */  SDL_SCANCODE_FIND,
     1.5      /*  146 */  SDL_SCANCODE_CUT,
     1.6  };
     1.7 +
     1.8 +/* for wireless usb keyboard (manufacturer TRUST) without numpad. */
     1.9 +static SDL_scancode xfree86_scancode_table2[] = {
    1.10 +    /*  0 */    SDL_SCANCODE_UNKNOWN,
    1.11 +    /*  1 */    SDL_SCANCODE_ESCAPE,
    1.12 +    /*  2 */    SDL_SCANCODE_1,
    1.13 +    /*  3 */    SDL_SCANCODE_2,
    1.14 +    /*  4 */    SDL_SCANCODE_3,
    1.15 +    /*  5 */    SDL_SCANCODE_4,
    1.16 +    /*  6 */    SDL_SCANCODE_5,
    1.17 +    /*  7 */    SDL_SCANCODE_6,
    1.18 +    /*  8 */    SDL_SCANCODE_7,
    1.19 +    /*  9 */    SDL_SCANCODE_8,
    1.20 +    /*  10 */   SDL_SCANCODE_9,
    1.21 +    /*  11 */   SDL_SCANCODE_0,
    1.22 +    /*  12 */   SDL_SCANCODE_MINUS,
    1.23 +    /*  13 */   SDL_SCANCODE_EQUALS,
    1.24 +    /*  14 */   SDL_SCANCODE_BACKSPACE,
    1.25 +    /*  15 */   SDL_SCANCODE_TAB,
    1.26 +    /*  16 */   SDL_SCANCODE_Q,
    1.27 +    /*  17 */   SDL_SCANCODE_W,
    1.28 +    /*  18 */   SDL_SCANCODE_E,
    1.29 +    /*  19 */   SDL_SCANCODE_R,
    1.30 +    /*  20 */   SDL_SCANCODE_T,
    1.31 +    /*  21 */   SDL_SCANCODE_Y,
    1.32 +    /*  22 */   SDL_SCANCODE_U,
    1.33 +    /*  23 */   SDL_SCANCODE_I,
    1.34 +    /*  24 */   SDL_SCANCODE_O,
    1.35 +    /*  25 */   SDL_SCANCODE_P,
    1.36 +    /*  26 */   SDL_SCANCODE_LEFTBRACKET,
    1.37 +    /*  27 */   SDL_SCANCODE_RIGHTBRACKET,
    1.38 +    /*  28 */   SDL_SCANCODE_RETURN,
    1.39 +    /*  29 */   SDL_SCANCODE_LCTRL,
    1.40 +    /*  30 */   SDL_SCANCODE_A,
    1.41 +    /*  31 */   SDL_SCANCODE_S,
    1.42 +    /*  32 */   SDL_SCANCODE_D,
    1.43 +    /*  33 */   SDL_SCANCODE_F,
    1.44 +    /*  34 */   SDL_SCANCODE_G,
    1.45 +    /*  35 */   SDL_SCANCODE_H,
    1.46 +    /*  36 */   SDL_SCANCODE_J,
    1.47 +    /*  37 */   SDL_SCANCODE_K,
    1.48 +    /*  38 */   SDL_SCANCODE_L,
    1.49 +    /*  39 */   SDL_SCANCODE_SEMICOLON,
    1.50 +    /*  40 */   SDL_SCANCODE_APOSTROPHE,
    1.51 +    /*  41 */   SDL_SCANCODE_GRAVE,
    1.52 +    /*  42 */   SDL_SCANCODE_LSHIFT,
    1.53 +    /*  43 */   SDL_SCANCODE_BACKSLASH,
    1.54 +    /*  44 */   SDL_SCANCODE_Z,
    1.55 +    /*  45 */   SDL_SCANCODE_X,
    1.56 +    /*  46 */   SDL_SCANCODE_C,
    1.57 +    /*  47 */   SDL_SCANCODE_V,
    1.58 +    /*  48 */   SDL_SCANCODE_B,
    1.59 +    /*  49 */   SDL_SCANCODE_N,
    1.60 +    /*  50 */   SDL_SCANCODE_M,
    1.61 +    /*  51 */   SDL_SCANCODE_COMMA,
    1.62 +    /*  52 */   SDL_SCANCODE_PERIOD,
    1.63 +    /*  53 */   SDL_SCANCODE_SLASH,
    1.64 +    /*  54 */   SDL_SCANCODE_RSHIFT,
    1.65 +    /*  55 */   SDL_SCANCODE_KP_MULTIPLY,
    1.66 +    /*  56 */   SDL_SCANCODE_LALT,
    1.67 +    /*  57 */   SDL_SCANCODE_SPACE,
    1.68 +    /*  58 */   SDL_SCANCODE_CAPSLOCK,
    1.69 +    /*  59 */   SDL_SCANCODE_F1,
    1.70 +    /*  60 */   SDL_SCANCODE_F2,
    1.71 +    /*  61 */   SDL_SCANCODE_F3,
    1.72 +    /*  62 */   SDL_SCANCODE_F4,
    1.73 +    /*  63 */   SDL_SCANCODE_F5,
    1.74 +    /*  64 */   SDL_SCANCODE_F6,
    1.75 +    /*  65 */   SDL_SCANCODE_F7,
    1.76 +    /*  66 */   SDL_SCANCODE_F8,
    1.77 +    /*  67 */   SDL_SCANCODE_F9,
    1.78 +    /*  68 */   SDL_SCANCODE_F10,
    1.79 +    /*  69 */   SDL_SCANCODE_NUMLOCKCLEAR,
    1.80 +    /*  70 */   SDL_SCANCODE_SCROLLLOCK,
    1.81 +    /*  71 */   SDL_SCANCODE_KP_7,
    1.82 +    /*  72 */   SDL_SCANCODE_KP_8,
    1.83 +    /*  73 */   SDL_SCANCODE_KP_9,
    1.84 +    /*  74 */   SDL_SCANCODE_KP_MINUS,
    1.85 +    /*  75 */   SDL_SCANCODE_KP_4,
    1.86 +    /*  76 */   SDL_SCANCODE_KP_5,
    1.87 +    /*  77 */   SDL_SCANCODE_KP_6,
    1.88 +    /*  78 */   SDL_SCANCODE_KP_PLUS,
    1.89 +    /*  79 */   SDL_SCANCODE_KP_1,
    1.90 +    /*  80 */   SDL_SCANCODE_KP_2,
    1.91 +    /*  81 */   SDL_SCANCODE_KP_3,
    1.92 +    /*  82 */   SDL_SCANCODE_KP_0,
    1.93 +    /*  83 */   SDL_SCANCODE_KP_PERIOD,
    1.94 +    /*  84 */   SDL_SCANCODE_SYSREQ,		/* ???? */
    1.95 +    /*  85 */   SDL_SCANCODE_MODE,			/* ???? */
    1.96 +    /*  86 */   SDL_SCANCODE_NONUSBACKSLASH,
    1.97 +    /*  87 */   SDL_SCANCODE_F11,
    1.98 +    /*  88 */   SDL_SCANCODE_F12,
    1.99 +    /*  89 */   SDL_SCANCODE_UNKNOWN,
   1.100 +    /*  90 */   SDL_SCANCODE_UNKNOWN,
   1.101 +    /*  91 */   SDL_SCANCODE_UNKNOWN,
   1.102 +    /*  92 */   SDL_SCANCODE_UNKNOWN,
   1.103 +    /*  93 */   SDL_SCANCODE_UNKNOWN,
   1.104 +    /*  94 */   SDL_SCANCODE_UNKNOWN,
   1.105 +    /*  95 */   SDL_SCANCODE_UNKNOWN,
   1.106 +    /*  96 */   SDL_SCANCODE_UNKNOWN,
   1.107 +    /*  97 */   SDL_SCANCODE_RCTRL,
   1.108 +    /*  98 */   SDL_SCANCODE_KP_DIVIDE,
   1.109 +    /*  99 */   SDL_SCANCODE_UNKNOWN,
   1.110 +    /* 100 */   SDL_SCANCODE_RALT,	 /* ISO_Level3_Shift, ALTGR, RALT */
   1.111 +    /* 101 */   SDL_SCANCODE_UNKNOWN,
   1.112 +    /* 102 */   SDL_SCANCODE_HOME,
   1.113 +    /* 103 */   SDL_SCANCODE_UP,
   1.114 +    /* 104 */   SDL_SCANCODE_PAGEUP,
   1.115 +    /* 105 */   SDL_SCANCODE_LEFT,
   1.116 +    /* 106 */   SDL_SCANCODE_RIGHT,
   1.117 +    /* 107 */   SDL_SCANCODE_END,
   1.118 +    /* 108 */   SDL_SCANCODE_DOWN,
   1.119 +    /* 109 */   SDL_SCANCODE_PAGEDOWN,
   1.120 +    /* 110 */   SDL_SCANCODE_INSERT,
   1.121 +    /* 111 */   SDL_SCANCODE_DELETE,
   1.122 +    /* 112 */   SDL_SCANCODE_UNKNOWN,
   1.123 +    /* 113 */   SDL_SCANCODE_UNKNOWN,
   1.124 +    /* 114 */   SDL_SCANCODE_UNKNOWN,
   1.125 +    /* 115 */   SDL_SCANCODE_UNKNOWN,
   1.126 +    /* 116 */   SDL_SCANCODE_UNKNOWN,
   1.127 +    /* 117 */   SDL_SCANCODE_UNKNOWN,
   1.128 +    /* 118 */   SDL_SCANCODE_UNKNOWN,
   1.129 +    /* 119 */   SDL_SCANCODE_UNKNOWN,
   1.130 +    /* 120 */   SDL_SCANCODE_UNKNOWN,
   1.131 +    /* 121 */ 	SDL_SCANCODE_PAUSE,
   1.132 +    /* 122 */   SDL_SCANCODE_UNKNOWN,
   1.133 +    /* 123 */   SDL_SCANCODE_UNKNOWN,
   1.134 +    /* 124 */   SDL_SCANCODE_UNKNOWN,
   1.135 +    /* 125 */  SDL_SCANCODE_LGUI,
   1.136 +    /* 126 */  SDL_SCANCODE_RGUI,
   1.137 +    /* 127 */  SDL_SCANCODE_APPLICATION,
   1.138 +    /* 128 */  SDL_SCANCODE_UNKNOWN,
   1.139 +    /* 129 */  SDL_SCANCODE_UNKNOWN,
   1.140 +    /* 130 */  SDL_SCANCODE_UNKNOWN,
   1.141 +    /* 131 */  SDL_SCANCODE_UNKNOWN,
   1.142 +    /* 132 */  SDL_SCANCODE_UNKNOWN,
   1.143 +    /* 133 */  SDL_SCANCODE_UNKNOWN,
   1.144 +    /* 134 */  SDL_SCANCODE_UNKNOWN,
   1.145 +    /* 135 */  SDL_SCANCODE_UNKNOWN,
   1.146 +    /* 136 */  SDL_SCANCODE_UNKNOWN,
   1.147 +    /* 137 */  SDL_SCANCODE_UNKNOWN,
   1.148 +    /* 138 */  SDL_SCANCODE_UNKNOWN,
   1.149 +    /* 139 */  SDL_SCANCODE_UNKNOWN,
   1.150 +    /* 140 */  SDL_SCANCODE_UNKNOWN,
   1.151 +    /* 141 */  SDL_SCANCODE_UNKNOWN,
   1.152 +    /* 142 */  SDL_SCANCODE_UNKNOWN,
   1.153 +    /* 143 */  SDL_SCANCODE_UNKNOWN,
   1.154 +    /* 144 */  SDL_SCANCODE_UNKNOWN,
   1.155 +    /* 145 */  SDL_SCANCODE_UNKNOWN,
   1.156 +    /* 146 */  SDL_SCANCODE_UNKNOWN,
   1.157 +};
   1.158 +
   1.159  /* *INDENT-ON* */