root / vnc_keysym.h @ 3d575329
History | View | Annotate | Download (10.1 kB)
1 | 24236869 | bellard | typedef struct { |
---|---|---|---|
2 | 24236869 | bellard | const char* name; |
3 | 24236869 | bellard | int keysym;
|
4 | 24236869 | bellard | } name2keysym_t; |
5 | 24236869 | bellard | static name2keysym_t name2keysym[]={
|
6 | 24236869 | bellard | /* ascii */
|
7 | 24236869 | bellard | { "space", 0x020}, |
8 | 24236869 | bellard | { "exclam", 0x021}, |
9 | 24236869 | bellard | { "quotedbl", 0x022}, |
10 | 24236869 | bellard | { "numbersign", 0x023}, |
11 | 24236869 | bellard | { "dollar", 0x024}, |
12 | 24236869 | bellard | { "percent", 0x025}, |
13 | 24236869 | bellard | { "ampersand", 0x026}, |
14 | 24236869 | bellard | { "apostrophe", 0x027}, |
15 | 24236869 | bellard | { "parenleft", 0x028}, |
16 | 24236869 | bellard | { "parenright", 0x029}, |
17 | 24236869 | bellard | { "asterisk", 0x02a}, |
18 | 24236869 | bellard | { "plus", 0x02b}, |
19 | 24236869 | bellard | { "comma", 0x02c}, |
20 | 24236869 | bellard | { "minus", 0x02d}, |
21 | 24236869 | bellard | { "period", 0x02e}, |
22 | 24236869 | bellard | { "slash", 0x02f}, |
23 | 24236869 | bellard | { "0", 0x030}, |
24 | 24236869 | bellard | { "1", 0x031}, |
25 | 24236869 | bellard | { "2", 0x032}, |
26 | 24236869 | bellard | { "3", 0x033}, |
27 | 24236869 | bellard | { "4", 0x034}, |
28 | 24236869 | bellard | { "5", 0x035}, |
29 | 24236869 | bellard | { "6", 0x036}, |
30 | 24236869 | bellard | { "7", 0x037}, |
31 | 24236869 | bellard | { "8", 0x038}, |
32 | 24236869 | bellard | { "9", 0x039}, |
33 | 24236869 | bellard | { "colon", 0x03a}, |
34 | 24236869 | bellard | { "semicolon", 0x03b}, |
35 | 24236869 | bellard | { "less", 0x03c}, |
36 | 24236869 | bellard | { "equal", 0x03d}, |
37 | 24236869 | bellard | { "greater", 0x03e}, |
38 | 24236869 | bellard | { "question", 0x03f}, |
39 | 24236869 | bellard | { "at", 0x040}, |
40 | 24236869 | bellard | { "A", 0x041}, |
41 | 24236869 | bellard | { "B", 0x042}, |
42 | 24236869 | bellard | { "C", 0x043}, |
43 | 24236869 | bellard | { "D", 0x044}, |
44 | 24236869 | bellard | { "E", 0x045}, |
45 | 24236869 | bellard | { "F", 0x046}, |
46 | 24236869 | bellard | { "G", 0x047}, |
47 | 24236869 | bellard | { "H", 0x048}, |
48 | 24236869 | bellard | { "I", 0x049}, |
49 | 24236869 | bellard | { "J", 0x04a}, |
50 | 24236869 | bellard | { "K", 0x04b}, |
51 | 24236869 | bellard | { "L", 0x04c}, |
52 | 24236869 | bellard | { "M", 0x04d}, |
53 | 24236869 | bellard | { "N", 0x04e}, |
54 | 24236869 | bellard | { "O", 0x04f}, |
55 | 24236869 | bellard | { "P", 0x050}, |
56 | 24236869 | bellard | { "Q", 0x051}, |
57 | 24236869 | bellard | { "R", 0x052}, |
58 | 24236869 | bellard | { "S", 0x053}, |
59 | 24236869 | bellard | { "T", 0x054}, |
60 | 24236869 | bellard | { "U", 0x055}, |
61 | 24236869 | bellard | { "V", 0x056}, |
62 | 24236869 | bellard | { "W", 0x057}, |
63 | 24236869 | bellard | { "X", 0x058}, |
64 | 24236869 | bellard | { "Y", 0x059}, |
65 | 24236869 | bellard | { "Z", 0x05a}, |
66 | 24236869 | bellard | { "bracketleft", 0x05b}, |
67 | 24236869 | bellard | { "backslash", 0x05c}, |
68 | 24236869 | bellard | { "bracketright", 0x05d}, |
69 | 24236869 | bellard | { "asciicircum", 0x05e}, |
70 | 24236869 | bellard | { "underscore", 0x05f}, |
71 | 24236869 | bellard | { "grave", 0x060}, |
72 | 24236869 | bellard | { "a", 0x061}, |
73 | 24236869 | bellard | { "b", 0x062}, |
74 | 24236869 | bellard | { "c", 0x063}, |
75 | 24236869 | bellard | { "d", 0x064}, |
76 | 24236869 | bellard | { "e", 0x065}, |
77 | 24236869 | bellard | { "f", 0x066}, |
78 | 24236869 | bellard | { "g", 0x067}, |
79 | 24236869 | bellard | { "h", 0x068}, |
80 | 24236869 | bellard | { "i", 0x069}, |
81 | 24236869 | bellard | { "j", 0x06a}, |
82 | 24236869 | bellard | { "k", 0x06b}, |
83 | 24236869 | bellard | { "l", 0x06c}, |
84 | 24236869 | bellard | { "m", 0x06d}, |
85 | 24236869 | bellard | { "n", 0x06e}, |
86 | 24236869 | bellard | { "o", 0x06f}, |
87 | 24236869 | bellard | { "p", 0x070}, |
88 | 24236869 | bellard | { "q", 0x071}, |
89 | 24236869 | bellard | { "r", 0x072}, |
90 | 24236869 | bellard | { "s", 0x073}, |
91 | 24236869 | bellard | { "t", 0x074}, |
92 | 24236869 | bellard | { "u", 0x075}, |
93 | 24236869 | bellard | { "v", 0x076}, |
94 | 24236869 | bellard | { "w", 0x077}, |
95 | 24236869 | bellard | { "x", 0x078}, |
96 | 24236869 | bellard | { "y", 0x079}, |
97 | 24236869 | bellard | { "z", 0x07a}, |
98 | 24236869 | bellard | { "braceleft", 0x07b}, |
99 | 24236869 | bellard | { "bar", 0x07c}, |
100 | 24236869 | bellard | { "braceright", 0x07d}, |
101 | 24236869 | bellard | { "asciitilde", 0x07e}, |
102 | 24236869 | bellard | |
103 | 24236869 | bellard | /* latin 1 extensions */
|
104 | 24236869 | bellard | { "nobreakspace", 0x0a0}, |
105 | 24236869 | bellard | { "exclamdown", 0x0a1}, |
106 | 24236869 | bellard | { "cent", 0x0a2}, |
107 | 24236869 | bellard | { "sterling", 0x0a3}, |
108 | 24236869 | bellard | { "currency", 0x0a4}, |
109 | 24236869 | bellard | { "yen", 0x0a5}, |
110 | 24236869 | bellard | { "brokenbar", 0x0a6}, |
111 | 24236869 | bellard | { "section", 0x0a7}, |
112 | 24236869 | bellard | { "diaeresis", 0x0a8}, |
113 | 24236869 | bellard | { "copyright", 0x0a9}, |
114 | 24236869 | bellard | { "ordfeminine", 0x0aa}, |
115 | 24236869 | bellard | { "guillemotleft", 0x0ab}, |
116 | 24236869 | bellard | { "notsign", 0x0ac}, |
117 | 24236869 | bellard | { "hyphen", 0x0ad}, |
118 | 24236869 | bellard | { "registered", 0x0ae}, |
119 | 24236869 | bellard | { "macron", 0x0af}, |
120 | 24236869 | bellard | { "degree", 0x0b0}, |
121 | 24236869 | bellard | { "plusminus", 0x0b1}, |
122 | 24236869 | bellard | { "twosuperior", 0x0b2}, |
123 | 24236869 | bellard | { "threesuperior", 0x0b3}, |
124 | 24236869 | bellard | { "acute", 0x0b4}, |
125 | 24236869 | bellard | { "mu", 0x0b5}, |
126 | 24236869 | bellard | { "paragraph", 0x0b6}, |
127 | 24236869 | bellard | { "periodcentered", 0x0b7}, |
128 | 24236869 | bellard | { "cedilla", 0x0b8}, |
129 | 24236869 | bellard | { "onesuperior", 0x0b9}, |
130 | 24236869 | bellard | { "masculine", 0x0ba}, |
131 | 24236869 | bellard | { "guillemotright", 0x0bb}, |
132 | 24236869 | bellard | { "onequarter", 0x0bc}, |
133 | 24236869 | bellard | { "onehalf", 0x0bd}, |
134 | 24236869 | bellard | { "threequarters", 0x0be}, |
135 | 24236869 | bellard | { "questiondown", 0x0bf}, |
136 | 24236869 | bellard | { "Agrave", 0x0c0}, |
137 | 24236869 | bellard | { "Aacute", 0x0c1}, |
138 | 24236869 | bellard | { "Acircumflex", 0x0c2}, |
139 | 24236869 | bellard | { "Atilde", 0x0c3}, |
140 | 24236869 | bellard | { "Adiaeresis", 0x0c4}, |
141 | 24236869 | bellard | { "Aring", 0x0c5}, |
142 | 24236869 | bellard | { "AE", 0x0c6}, |
143 | 24236869 | bellard | { "Ccedilla", 0x0c7}, |
144 | 24236869 | bellard | { "Egrave", 0x0c8}, |
145 | 24236869 | bellard | { "Eacute", 0x0c9}, |
146 | 24236869 | bellard | { "Ecircumflex", 0x0ca}, |
147 | 24236869 | bellard | { "Ediaeresis", 0x0cb}, |
148 | 24236869 | bellard | { "Igrave", 0x0cc}, |
149 | 24236869 | bellard | { "Iacute", 0x0cd}, |
150 | 24236869 | bellard | { "Icircumflex", 0x0ce}, |
151 | 24236869 | bellard | { "Idiaeresis", 0x0cf}, |
152 | 24236869 | bellard | { "ETH", 0x0d0}, |
153 | 24236869 | bellard | { "Eth", 0x0d0}, |
154 | 24236869 | bellard | { "Ntilde", 0x0d1}, |
155 | 24236869 | bellard | { "Ograve", 0x0d2}, |
156 | 24236869 | bellard | { "Oacute", 0x0d3}, |
157 | 24236869 | bellard | { "Ocircumflex", 0x0d4}, |
158 | 24236869 | bellard | { "Otilde", 0x0d5}, |
159 | 24236869 | bellard | { "Odiaeresis", 0x0d6}, |
160 | 24236869 | bellard | { "multiply", 0x0d7}, |
161 | 24236869 | bellard | { "Ooblique", 0x0d8}, |
162 | 24236869 | bellard | { "Oslash", 0x0d8}, |
163 | 24236869 | bellard | { "Ugrave", 0x0d9}, |
164 | 24236869 | bellard | { "Uacute", 0x0da}, |
165 | 24236869 | bellard | { "Ucircumflex", 0x0db}, |
166 | 24236869 | bellard | { "Udiaeresis", 0x0dc}, |
167 | 24236869 | bellard | { "Yacute", 0x0dd}, |
168 | 24236869 | bellard | { "THORN", 0x0de}, |
169 | 24236869 | bellard | { "Thorn", 0x0de}, |
170 | 24236869 | bellard | { "ssharp", 0x0df}, |
171 | 24236869 | bellard | { "agrave", 0x0e0}, |
172 | 24236869 | bellard | { "aacute", 0x0e1}, |
173 | 24236869 | bellard | { "acircumflex", 0x0e2}, |
174 | 24236869 | bellard | { "atilde", 0x0e3}, |
175 | 24236869 | bellard | { "adiaeresis", 0x0e4}, |
176 | 24236869 | bellard | { "aring", 0x0e5}, |
177 | 24236869 | bellard | { "ae", 0x0e6}, |
178 | 24236869 | bellard | { "ccedilla", 0x0e7}, |
179 | 24236869 | bellard | { "egrave", 0x0e8}, |
180 | 24236869 | bellard | { "eacute", 0x0e9}, |
181 | 24236869 | bellard | { "ecircumflex", 0x0ea}, |
182 | 24236869 | bellard | { "ediaeresis", 0x0eb}, |
183 | 24236869 | bellard | { "igrave", 0x0ec}, |
184 | 24236869 | bellard | { "iacute", 0x0ed}, |
185 | 24236869 | bellard | { "icircumflex", 0x0ee}, |
186 | 24236869 | bellard | { "idiaeresis", 0x0ef}, |
187 | 24236869 | bellard | { "eth", 0x0f0}, |
188 | 24236869 | bellard | { "ntilde", 0x0f1}, |
189 | 24236869 | bellard | { "ograve", 0x0f2}, |
190 | 24236869 | bellard | { "oacute", 0x0f3}, |
191 | 24236869 | bellard | { "ocircumflex", 0x0f4}, |
192 | 24236869 | bellard | { "otilde", 0x0f5}, |
193 | 24236869 | bellard | { "odiaeresis", 0x0f6}, |
194 | 24236869 | bellard | { "division", 0x0f7}, |
195 | 24236869 | bellard | { "oslash", 0x0f8}, |
196 | 24236869 | bellard | { "ooblique", 0x0f8}, |
197 | 24236869 | bellard | { "ugrave", 0x0f9}, |
198 | 24236869 | bellard | { "uacute", 0x0fa}, |
199 | 24236869 | bellard | { "ucircumflex", 0x0fb}, |
200 | 24236869 | bellard | { "udiaeresis", 0x0fc}, |
201 | 24236869 | bellard | { "yacute", 0x0fd}, |
202 | 24236869 | bellard | { "thorn", 0x0fe}, |
203 | 24236869 | bellard | { "ydiaeresis", 0x0ff}, |
204 | 24236869 | bellard | {"EuroSign", 0x20ac}, /* XK_EuroSign */ |
205 | 24236869 | bellard | |
206 | 24236869 | bellard | /* modifiers */
|
207 | 24236869 | bellard | {"Control_L", 0xffe3}, /* XK_Control_L */ |
208 | 24236869 | bellard | {"Control_R", 0xffe4}, /* XK_Control_R */ |
209 | 24236869 | bellard | {"Alt_L", 0xffe9}, /* XK_Alt_L */ |
210 | 24236869 | bellard | {"Alt_R", 0xffea}, /* XK_Alt_R */ |
211 | 24236869 | bellard | {"Caps_Lock", 0xffe5}, /* XK_Caps_Lock */ |
212 | 24236869 | bellard | {"Meta_L", 0xffe7}, /* XK_Meta_L */ |
213 | 24236869 | bellard | {"Meta_R", 0xffe8}, /* XK_Meta_R */ |
214 | 24236869 | bellard | {"Shift_L", 0xffe1}, /* XK_Shift_L */ |
215 | 24236869 | bellard | {"Shift_R", 0xffe2}, /* XK_Shift_R */ |
216 | 24236869 | bellard | {"Super_L", 0xffeb}, /* XK_Super_L */ |
217 | 24236869 | bellard | {"Super_R", 0xffec}, /* XK_Super_R */ |
218 | 24236869 | bellard | |
219 | 24236869 | bellard | /* special keys */
|
220 | 24236869 | bellard | {"BackSpace", 0xff08}, /* XK_BackSpace */ |
221 | 24236869 | bellard | {"Tab", 0xff09}, /* XK_Tab */ |
222 | 24236869 | bellard | {"Return", 0xff0d}, /* XK_Return */ |
223 | 24236869 | bellard | {"Right", 0xff53}, /* XK_Right */ |
224 | 24236869 | bellard | {"Left", 0xff51}, /* XK_Left */ |
225 | 24236869 | bellard | {"Up", 0xff52}, /* XK_Up */ |
226 | 24236869 | bellard | {"Down", 0xff54}, /* XK_Down */ |
227 | 24236869 | bellard | {"Page_Down", 0xff56}, /* XK_Page_Down */ |
228 | 24236869 | bellard | {"Page_Up", 0xff55}, /* XK_Page_Up */ |
229 | 24236869 | bellard | {"Insert", 0xff63}, /* XK_Insert */ |
230 | 24236869 | bellard | {"Delete", 0xffff}, /* XK_Delete */ |
231 | 24236869 | bellard | {"Home", 0xff50}, /* XK_Home */ |
232 | 24236869 | bellard | {"End", 0xff57}, /* XK_End */ |
233 | 24236869 | bellard | {"Scroll_Lock", 0xff14}, /* XK_Scroll_Lock */ |
234 | a528b80c | balrog | {"KP_Home", 0xff95}, |
235 | a528b80c | balrog | {"KP_Left", 0xff96}, |
236 | a528b80c | balrog | {"KP_Up", 0xff97}, |
237 | a528b80c | balrog | {"KP_Right", 0xff98}, |
238 | a528b80c | balrog | {"KP_Down", 0xff99}, |
239 | a528b80c | balrog | {"KP_Prior", 0xff9a}, |
240 | a528b80c | balrog | {"KP_Page_Up", 0xff9a}, |
241 | a528b80c | balrog | {"KP_Next", 0xff9b}, |
242 | a528b80c | balrog | {"KP_Page_Down", 0xff9b}, |
243 | a528b80c | balrog | {"KP_End", 0xff9c}, |
244 | a528b80c | balrog | {"KP_Begin", 0xff9d}, |
245 | a528b80c | balrog | {"KP_Insert", 0xff9e}, |
246 | a528b80c | balrog | {"KP_Delete", 0xff9f}, |
247 | 24236869 | bellard | {"F1", 0xffbe}, /* XK_F1 */ |
248 | 24236869 | bellard | {"F2", 0xffbf}, /* XK_F2 */ |
249 | 24236869 | bellard | {"F3", 0xffc0}, /* XK_F3 */ |
250 | 24236869 | bellard | {"F4", 0xffc1}, /* XK_F4 */ |
251 | 24236869 | bellard | {"F5", 0xffc2}, /* XK_F5 */ |
252 | 24236869 | bellard | {"F6", 0xffc3}, /* XK_F6 */ |
253 | 24236869 | bellard | {"F7", 0xffc4}, /* XK_F7 */ |
254 | 24236869 | bellard | {"F8", 0xffc5}, /* XK_F8 */ |
255 | 24236869 | bellard | {"F9", 0xffc6}, /* XK_F9 */ |
256 | 24236869 | bellard | {"F10", 0xffc7}, /* XK_F10 */ |
257 | 24236869 | bellard | {"F11", 0xffc8}, /* XK_F11 */ |
258 | 24236869 | bellard | {"F12", 0xffc9}, /* XK_F12 */ |
259 | 24236869 | bellard | {"F13", 0xffca}, /* XK_F13 */ |
260 | 24236869 | bellard | {"F14", 0xffcb}, /* XK_F14 */ |
261 | 24236869 | bellard | {"F15", 0xffcc}, /* XK_F15 */ |
262 | 24236869 | bellard | {"Sys_Req", 0xff15}, /* XK_Sys_Req */ |
263 | 24236869 | bellard | {"KP_0", 0xffb0}, /* XK_KP_0 */ |
264 | 24236869 | bellard | {"KP_1", 0xffb1}, /* XK_KP_1 */ |
265 | 24236869 | bellard | {"KP_2", 0xffb2}, /* XK_KP_2 */ |
266 | 24236869 | bellard | {"KP_3", 0xffb3}, /* XK_KP_3 */ |
267 | 24236869 | bellard | {"KP_4", 0xffb4}, /* XK_KP_4 */ |
268 | 24236869 | bellard | {"KP_5", 0xffb5}, /* XK_KP_5 */ |
269 | 24236869 | bellard | {"KP_6", 0xffb6}, /* XK_KP_6 */ |
270 | 24236869 | bellard | {"KP_7", 0xffb7}, /* XK_KP_7 */ |
271 | 24236869 | bellard | {"KP_8", 0xffb8}, /* XK_KP_8 */ |
272 | 24236869 | bellard | {"KP_9", 0xffb9}, /* XK_KP_9 */ |
273 | 24236869 | bellard | {"KP_Add", 0xffab}, /* XK_KP_Add */ |
274 | a528b80c | balrog | {"KP_Separator", 0xffac},/* XK_KP_Separator */ |
275 | 24236869 | bellard | {"KP_Decimal", 0xffae}, /* XK_KP_Decimal */ |
276 | 24236869 | bellard | {"KP_Divide", 0xffaf}, /* XK_KP_Divide */ |
277 | 24236869 | bellard | {"KP_Enter", 0xff8d}, /* XK_KP_Enter */ |
278 | 24236869 | bellard | {"KP_Equal", 0xffbd}, /* XK_KP_Equal */ |
279 | 24236869 | bellard | {"KP_Multiply", 0xffaa}, /* XK_KP_Multiply */ |
280 | 24236869 | bellard | {"KP_Subtract", 0xffad}, /* XK_KP_Subtract */ |
281 | 24236869 | bellard | {"help", 0xff6a}, /* XK_Help */ |
282 | 24236869 | bellard | {"Menu", 0xff67}, /* XK_Menu */ |
283 | 24236869 | bellard | {"Print", 0xff61}, /* XK_Print */ |
284 | 24236869 | bellard | {"Mode_switch", 0xff7e}, /* XK_Mode_switch */ |
285 | 24236869 | bellard | {"Num_Lock", 0xff7f}, /* XK_Num_Lock */ |
286 | 24236869 | bellard | {"Pause", 0xff13}, /* XK_Pause */ |
287 | 24236869 | bellard | {"Escape", 0xff1b}, /* XK_Escape */ |
288 | f5e25d70 | bellard | |
289 | f5e25d70 | bellard | /* localized keys */
|
290 | f5e25d70 | bellard | {"BackApostrophe", 0xff21}, |
291 | f5e25d70 | bellard | {"Muhenkan", 0xff22}, |
292 | f5e25d70 | bellard | {"Katakana", 0xff25}, |
293 | f5e25d70 | bellard | {"Zenkaku_Hankaku", 0xff29}, |
294 | f5e25d70 | bellard | {"Henkan_Mode_Real", 0xff23}, |
295 | f5e25d70 | bellard | {"Henkan_Mode_Ultra", 0xff3e}, |
296 | f5e25d70 | bellard | {"backslash_ja", 0xffa5}, |
297 | f5e25d70 | bellard | |
298 | 24236869 | bellard | {0,0}, |
299 | 24236869 | bellard | }; |