00001 typedef struct {
00002 const char* name;
00003 int keysym;
00004 } name2keysym_t;
00005 static name2keysym_t name2keysym[]={
00006
00007 { "space", 0x020},
00008 { "exclam", 0x021},
00009 { "quotedbl", 0x022},
00010 { "numbersign", 0x023},
00011 { "dollar", 0x024},
00012 { "percent", 0x025},
00013 { "ampersand", 0x026},
00014 { "apostrophe", 0x027},
00015 { "parenleft", 0x028},
00016 { "parenright", 0x029},
00017 { "asterisk", 0x02a},
00018 { "plus", 0x02b},
00019 { "comma", 0x02c},
00020 { "minus", 0x02d},
00021 { "period", 0x02e},
00022 { "slash", 0x02f},
00023 { "0", 0x030},
00024 { "1", 0x031},
00025 { "2", 0x032},
00026 { "3", 0x033},
00027 { "4", 0x034},
00028 { "5", 0x035},
00029 { "6", 0x036},
00030 { "7", 0x037},
00031 { "8", 0x038},
00032 { "9", 0x039},
00033 { "colon", 0x03a},
00034 { "semicolon", 0x03b},
00035 { "less", 0x03c},
00036 { "equal", 0x03d},
00037 { "greater", 0x03e},
00038 { "question", 0x03f},
00039 { "at", 0x040},
00040 { "A", 0x041},
00041 { "B", 0x042},
00042 { "C", 0x043},
00043 { "D", 0x044},
00044 { "E", 0x045},
00045 { "F", 0x046},
00046 { "G", 0x047},
00047 { "H", 0x048},
00048 { "I", 0x049},
00049 { "J", 0x04a},
00050 { "K", 0x04b},
00051 { "L", 0x04c},
00052 { "M", 0x04d},
00053 { "N", 0x04e},
00054 { "O", 0x04f},
00055 { "P", 0x050},
00056 { "Q", 0x051},
00057 { "R", 0x052},
00058 { "S", 0x053},
00059 { "T", 0x054},
00060 { "U", 0x055},
00061 { "V", 0x056},
00062 { "W", 0x057},
00063 { "X", 0x058},
00064 { "Y", 0x059},
00065 { "Z", 0x05a},
00066 { "bracketleft", 0x05b},
00067 { "backslash", 0x05c},
00068 { "bracketright", 0x05d},
00069 { "asciicircum", 0x05e},
00070 { "underscore", 0x05f},
00071 { "grave", 0x060},
00072 { "a", 0x061},
00073 { "b", 0x062},
00074 { "c", 0x063},
00075 { "d", 0x064},
00076 { "e", 0x065},
00077 { "f", 0x066},
00078 { "g", 0x067},
00079 { "h", 0x068},
00080 { "i", 0x069},
00081 { "j", 0x06a},
00082 { "k", 0x06b},
00083 { "l", 0x06c},
00084 { "m", 0x06d},
00085 { "n", 0x06e},
00086 { "o", 0x06f},
00087 { "p", 0x070},
00088 { "q", 0x071},
00089 { "r", 0x072},
00090 { "s", 0x073},
00091 { "t", 0x074},
00092 { "u", 0x075},
00093 { "v", 0x076},
00094 { "w", 0x077},
00095 { "x", 0x078},
00096 { "y", 0x079},
00097 { "z", 0x07a},
00098 { "braceleft", 0x07b},
00099 { "bar", 0x07c},
00100 { "braceright", 0x07d},
00101 { "asciitilde", 0x07e},
00102
00103
00104 { "nobreakspace", 0x0a0},
00105 { "exclamdown", 0x0a1},
00106 { "cent", 0x0a2},
00107 { "sterling", 0x0a3},
00108 { "currency", 0x0a4},
00109 { "yen", 0x0a5},
00110 { "brokenbar", 0x0a6},
00111 { "section", 0x0a7},
00112 { "diaeresis", 0x0a8},
00113 { "copyright", 0x0a9},
00114 { "ordfeminine", 0x0aa},
00115 { "guillemotleft", 0x0ab},
00116 { "notsign", 0x0ac},
00117 { "hyphen", 0x0ad},
00118 { "registered", 0x0ae},
00119 { "macron", 0x0af},
00120 { "degree", 0x0b0},
00121 { "plusminus", 0x0b1},
00122 { "twosuperior", 0x0b2},
00123 { "threesuperior", 0x0b3},
00124 { "acute", 0x0b4},
00125 { "mu", 0x0b5},
00126 { "paragraph", 0x0b6},
00127 { "periodcentered", 0x0b7},
00128 { "cedilla", 0x0b8},
00129 { "onesuperior", 0x0b9},
00130 { "masculine", 0x0ba},
00131 { "guillemotright", 0x0bb},
00132 { "onequarter", 0x0bc},
00133 { "onehalf", 0x0bd},
00134 { "threequarters", 0x0be},
00135 { "questiondown", 0x0bf},
00136 { "Agrave", 0x0c0},
00137 { "Aacute", 0x0c1},
00138 { "Acircumflex", 0x0c2},
00139 { "Atilde", 0x0c3},
00140 { "Adiaeresis", 0x0c4},
00141 { "Aring", 0x0c5},
00142 { "AE", 0x0c6},
00143 { "Ccedilla", 0x0c7},
00144 { "Egrave", 0x0c8},
00145 { "Eacute", 0x0c9},
00146 { "Ecircumflex", 0x0ca},
00147 { "Ediaeresis", 0x0cb},
00148 { "Igrave", 0x0cc},
00149 { "Iacute", 0x0cd},
00150 { "Icircumflex", 0x0ce},
00151 { "Idiaeresis", 0x0cf},
00152 { "ETH", 0x0d0},
00153 { "Eth", 0x0d0},
00154 { "Ntilde", 0x0d1},
00155 { "Ograve", 0x0d2},
00156 { "Oacute", 0x0d3},
00157 { "Ocircumflex", 0x0d4},
00158 { "Otilde", 0x0d5},
00159 { "Odiaeresis", 0x0d6},
00160 { "multiply", 0x0d7},
00161 { "Ooblique", 0x0d8},
00162 { "Oslash", 0x0d8},
00163 { "Ugrave", 0x0d9},
00164 { "Uacute", 0x0da},
00165 { "Ucircumflex", 0x0db},
00166 { "Udiaeresis", 0x0dc},
00167 { "Yacute", 0x0dd},
00168 { "THORN", 0x0de},
00169 { "Thorn", 0x0de},
00170 { "ssharp", 0x0df},
00171 { "agrave", 0x0e0},
00172 { "aacute", 0x0e1},
00173 { "acircumflex", 0x0e2},
00174 { "atilde", 0x0e3},
00175 { "adiaeresis", 0x0e4},
00176 { "aring", 0x0e5},
00177 { "ae", 0x0e6},
00178 { "ccedilla", 0x0e7},
00179 { "egrave", 0x0e8},
00180 { "eacute", 0x0e9},
00181 { "ecircumflex", 0x0ea},
00182 { "ediaeresis", 0x0eb},
00183 { "igrave", 0x0ec},
00184 { "iacute", 0x0ed},
00185 { "icircumflex", 0x0ee},
00186 { "idiaeresis", 0x0ef},
00187 { "eth", 0x0f0},
00188 { "ntilde", 0x0f1},
00189 { "ograve", 0x0f2},
00190 { "oacute", 0x0f3},
00191 { "ocircumflex", 0x0f4},
00192 { "otilde", 0x0f5},
00193 { "odiaeresis", 0x0f6},
00194 { "division", 0x0f7},
00195 { "oslash", 0x0f8},
00196 { "ooblique", 0x0f8},
00197 { "ugrave", 0x0f9},
00198 { "uacute", 0x0fa},
00199 { "ucircumflex", 0x0fb},
00200 { "udiaeresis", 0x0fc},
00201 { "yacute", 0x0fd},
00202 { "thorn", 0x0fe},
00203 { "ydiaeresis", 0x0ff},
00204 {"EuroSign", 0x20ac},
00205
00206
00207 {"Control_L", 0xffe3},
00208 {"Control_R", 0xffe4},
00209 {"Alt_L", 0xffe9},
00210 {"Alt_R", 0xffea},
00211 {"Caps_Lock", 0xffe5},
00212 {"Meta_L", 0xffe7},
00213 {"Meta_R", 0xffe8},
00214 {"Shift_L", 0xffe1},
00215 {"Shift_R", 0xffe2},
00216 {"Super_L", 0xffeb},
00217 {"Super_R", 0xffec},
00218
00219
00220 {"BackSpace", 0xff08},
00221 {"Tab", 0xff09},
00222 {"Return", 0xff0d},
00223 {"Right", 0xff53},
00224 {"Left", 0xff51},
00225 {"Up", 0xff52},
00226 {"Down", 0xff54},
00227 {"Page_Down", 0xff56},
00228 {"Page_Up", 0xff55},
00229 {"Insert", 0xff63},
00230 {"Delete", 0xffff},
00231 {"Home", 0xff50},
00232 {"End", 0xff57},
00233 {"Scroll_Lock", 0xff14},
00234 {"F1", 0xffbe},
00235 {"F2", 0xffbf},
00236 {"F3", 0xffc0},
00237 {"F4", 0xffc1},
00238 {"F5", 0xffc2},
00239 {"F6", 0xffc3},
00240 {"F7", 0xffc4},
00241 {"F8", 0xffc5},
00242 {"F9", 0xffc6},
00243 {"F10", 0xffc7},
00244 {"F11", 0xffc8},
00245 {"F12", 0xffc9},
00246 {"F13", 0xffca},
00247 {"F14", 0xffcb},
00248 {"F15", 0xffcc},
00249 {"Sys_Req", 0xff15},
00250 {"KP_0", 0xffb0},
00251 {"KP_1", 0xffb1},
00252 {"KP_2", 0xffb2},
00253 {"KP_3", 0xffb3},
00254 {"KP_4", 0xffb4},
00255 {"KP_5", 0xffb5},
00256 {"KP_6", 0xffb6},
00257 {"KP_7", 0xffb7},
00258 {"KP_8", 0xffb8},
00259 {"KP_9", 0xffb9},
00260 {"KP_Add", 0xffab},
00261 {"KP_Decimal", 0xffae},
00262 {"KP_Divide", 0xffaf},
00263 {"KP_Enter", 0xff8d},
00264 {"KP_Equal", 0xffbd},
00265 {"KP_Multiply", 0xffaa},
00266 {"KP_Subtract", 0xffad},
00267 {"help", 0xff6a},
00268 {"Menu", 0xff67},
00269 {"Print", 0xff61},
00270 {"Mode_switch", 0xff7e},
00271 {"Num_Lock", 0xff7f},
00272 {"Pause", 0xff13},
00273 {"Escape", 0xff1b},
00274 {0,0},
00275 };