wsksymdef.h revision 1.64 1 1.64 drochner /* $NetBSD: wsksymdef.h,v 1.64 2010/01/28 22:36:19 drochner Exp $ */
2 1.2 hannken
3 1.2 hannken /*-
4 1.2 hannken * Copyright (c) 1997 The NetBSD Foundation, Inc.
5 1.2 hannken * All rights reserved.
6 1.2 hannken *
7 1.2 hannken * This code is derived from software contributed to The NetBSD Foundation
8 1.2 hannken * by Juergen Hannken-Illjes.
9 1.2 hannken *
10 1.2 hannken * Redistribution and use in source and binary forms, with or without
11 1.2 hannken * modification, are permitted provided that the following conditions
12 1.2 hannken * are met:
13 1.2 hannken * 1. Redistributions of source code must retain the above copyright
14 1.2 hannken * notice, this list of conditions and the following disclaimer.
15 1.2 hannken * 2. Redistributions in binary form must reproduce the above copyright
16 1.2 hannken * notice, this list of conditions and the following disclaimer in the
17 1.2 hannken * documentation and/or other materials provided with the distribution.
18 1.2 hannken *
19 1.2 hannken * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.2 hannken * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.2 hannken * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.2 hannken * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.2 hannken * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.2 hannken * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.2 hannken * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.2 hannken * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.2 hannken * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.2 hannken * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.2 hannken * POSSIBILITY OF SUCH DAMAGE.
30 1.2 hannken */
31 1.2 hannken
32 1.1 hannken #ifndef _DEV_WSCONS_WSKSYMDEF_H_
33 1.1 hannken #define _DEV_WSCONS_WSKSYMDEF_H_
34 1.1 hannken
35 1.1 hannken /*
36 1.1 hannken * Keysymbols encoded as 16-bit Unicode. Special symbols
37 1.1 hannken * are encoded in the private area (0xe000 - 0xf8ff).
38 1.1 hannken * Currently only ISO Latin-1 subset is supported.
39 1.13 hannken *
40 1.13 hannken * This file is parsed from userland. Encode keysyms as:
41 1.13 hannken *
42 1.13 hannken * #define KS_[^ \t]* 0x[0-9a-f]*
43 1.13 hannken *
44 1.13 hannken * and don't modify the border comments.
45 1.1 hannken */
46 1.1 hannken
47 1.13 hannken
48 1.13 hannken /*BEGINKEYSYMDECL*/
49 1.13 hannken
50 1.1 hannken /*
51 1.1 hannken * Group Ascii (ISO Latin1) character in low byte
52 1.1 hannken */
53 1.1 hannken
54 1.1 hannken #define KS_BackSpace 0x08
55 1.1 hannken #define KS_Tab 0x09
56 1.1 hannken #define KS_Linefeed 0x0a
57 1.1 hannken #define KS_Clear 0x0b
58 1.1 hannken #define KS_Return 0x0d
59 1.1 hannken #define KS_Escape 0x1b
60 1.1 hannken #define KS_space 0x20
61 1.1 hannken #define KS_exclam 0x21
62 1.1 hannken #define KS_quotedbl 0x22
63 1.1 hannken #define KS_numbersign 0x23
64 1.1 hannken #define KS_dollar 0x24
65 1.1 hannken #define KS_percent 0x25
66 1.1 hannken #define KS_ampersand 0x26
67 1.1 hannken #define KS_apostrophe 0x27
68 1.1 hannken #define KS_parenleft 0x28
69 1.1 hannken #define KS_parenright 0x29
70 1.1 hannken #define KS_asterisk 0x2a
71 1.1 hannken #define KS_plus 0x2b
72 1.1 hannken #define KS_comma 0x2c
73 1.1 hannken #define KS_minus 0x2d
74 1.1 hannken #define KS_period 0x2e
75 1.1 hannken #define KS_slash 0x2f
76 1.1 hannken #define KS_0 0x30
77 1.1 hannken #define KS_1 0x31
78 1.1 hannken #define KS_2 0x32
79 1.1 hannken #define KS_3 0x33
80 1.1 hannken #define KS_4 0x34
81 1.1 hannken #define KS_5 0x35
82 1.1 hannken #define KS_6 0x36
83 1.1 hannken #define KS_7 0x37
84 1.1 hannken #define KS_8 0x38
85 1.1 hannken #define KS_9 0x39
86 1.1 hannken #define KS_colon 0x3a
87 1.1 hannken #define KS_semicolon 0x3b
88 1.1 hannken #define KS_less 0x3c
89 1.1 hannken #define KS_equal 0x3d
90 1.1 hannken #define KS_greater 0x3e
91 1.1 hannken #define KS_question 0x3f
92 1.1 hannken #define KS_at 0x40
93 1.1 hannken #define KS_A 0x41
94 1.1 hannken #define KS_B 0x42
95 1.1 hannken #define KS_C 0x43
96 1.1 hannken #define KS_D 0x44
97 1.1 hannken #define KS_E 0x45
98 1.1 hannken #define KS_F 0x46
99 1.1 hannken #define KS_G 0x47
100 1.1 hannken #define KS_H 0x48
101 1.1 hannken #define KS_I 0x49
102 1.1 hannken #define KS_J 0x4a
103 1.1 hannken #define KS_K 0x4b
104 1.1 hannken #define KS_L 0x4c
105 1.1 hannken #define KS_M 0x4d
106 1.1 hannken #define KS_N 0x4e
107 1.1 hannken #define KS_O 0x4f
108 1.1 hannken #define KS_P 0x50
109 1.1 hannken #define KS_Q 0x51
110 1.1 hannken #define KS_R 0x52
111 1.1 hannken #define KS_S 0x53
112 1.1 hannken #define KS_T 0x54
113 1.1 hannken #define KS_U 0x55
114 1.1 hannken #define KS_V 0x56
115 1.1 hannken #define KS_W 0x57
116 1.1 hannken #define KS_X 0x58
117 1.1 hannken #define KS_Y 0x59
118 1.1 hannken #define KS_Z 0x5a
119 1.1 hannken #define KS_bracketleft 0x5b
120 1.1 hannken #define KS_backslash 0x5c
121 1.1 hannken #define KS_bracketright 0x5d
122 1.1 hannken #define KS_asciicircum 0x5e
123 1.1 hannken #define KS_underscore 0x5f
124 1.1 hannken #define KS_grave 0x60
125 1.1 hannken #define KS_a 0x61
126 1.1 hannken #define KS_b 0x62
127 1.1 hannken #define KS_c 0x63
128 1.1 hannken #define KS_d 0x64
129 1.1 hannken #define KS_e 0x65
130 1.1 hannken #define KS_f 0x66
131 1.1 hannken #define KS_g 0x67
132 1.1 hannken #define KS_h 0x68
133 1.1 hannken #define KS_i 0x69
134 1.1 hannken #define KS_j 0x6a
135 1.1 hannken #define KS_k 0x6b
136 1.1 hannken #define KS_l 0x6c
137 1.1 hannken #define KS_m 0x6d
138 1.1 hannken #define KS_n 0x6e
139 1.1 hannken #define KS_o 0x6f
140 1.1 hannken #define KS_p 0x70
141 1.1 hannken #define KS_q 0x71
142 1.1 hannken #define KS_r 0x72
143 1.1 hannken #define KS_s 0x73
144 1.1 hannken #define KS_t 0x74
145 1.1 hannken #define KS_u 0x75
146 1.1 hannken #define KS_v 0x76
147 1.1 hannken #define KS_w 0x77
148 1.1 hannken #define KS_x 0x78
149 1.1 hannken #define KS_y 0x79
150 1.1 hannken #define KS_z 0x7a
151 1.1 hannken #define KS_braceleft 0x7b
152 1.1 hannken #define KS_bar 0x7c
153 1.1 hannken #define KS_braceright 0x7d
154 1.1 hannken #define KS_asciitilde 0x7e
155 1.1 hannken #define KS_Delete 0x7f
156 1.1 hannken #define KS_nobreakspace 0xa0
157 1.1 hannken #define KS_exclamdown 0xa1
158 1.1 hannken #define KS_cent 0xa2
159 1.1 hannken #define KS_sterling 0xa3
160 1.1 hannken #define KS_currency 0xa4
161 1.1 hannken #define KS_yen 0xa5
162 1.1 hannken #define KS_brokenbar 0xa6
163 1.1 hannken #define KS_section 0xa7
164 1.1 hannken #define KS_diaeresis 0xa8
165 1.1 hannken #define KS_copyright 0xa9
166 1.1 hannken #define KS_ordfeminine 0xaa
167 1.1 hannken #define KS_guillemotleft 0xab
168 1.1 hannken #define KS_notsign 0xac
169 1.1 hannken #define KS_hyphen 0xad
170 1.1 hannken #define KS_registered 0xae
171 1.1 hannken #define KS_macron 0xaf
172 1.1 hannken #define KS_degree 0xb0
173 1.1 hannken #define KS_plusminus 0xb1
174 1.1 hannken #define KS_twosuperior 0xb2
175 1.1 hannken #define KS_threesuperior 0xb3
176 1.1 hannken #define KS_acute 0xb4
177 1.1 hannken #define KS_mu 0xb5
178 1.1 hannken #define KS_paragraph 0xb6
179 1.1 hannken #define KS_periodcentered 0xb7
180 1.1 hannken #define KS_cedilla 0xb8
181 1.1 hannken #define KS_onesuperior 0xb9
182 1.1 hannken #define KS_masculine 0xba
183 1.1 hannken #define KS_guillemotright 0xbb
184 1.1 hannken #define KS_onequarter 0xbc
185 1.1 hannken #define KS_onehalf 0xbd
186 1.1 hannken #define KS_threequarters 0xbe
187 1.1 hannken #define KS_questiondown 0xbf
188 1.1 hannken #define KS_Agrave 0xc0
189 1.1 hannken #define KS_Aacute 0xc1
190 1.1 hannken #define KS_Acircumflex 0xc2
191 1.1 hannken #define KS_Atilde 0xc3
192 1.1 hannken #define KS_Adiaeresis 0xc4
193 1.1 hannken #define KS_Aring 0xc5
194 1.1 hannken #define KS_AE 0xc6
195 1.1 hannken #define KS_Ccedilla 0xc7
196 1.1 hannken #define KS_Egrave 0xc8
197 1.1 hannken #define KS_Eacute 0xc9
198 1.1 hannken #define KS_Ecircumflex 0xca
199 1.1 hannken #define KS_Ediaeresis 0xcb
200 1.1 hannken #define KS_Igrave 0xcc
201 1.1 hannken #define KS_Iacute 0xcd
202 1.1 hannken #define KS_Icircumflex 0xce
203 1.1 hannken #define KS_Idiaeresis 0xcf
204 1.1 hannken #define KS_ETH 0xd0
205 1.1 hannken #define KS_Ntilde 0xd1
206 1.1 hannken #define KS_Ograve 0xd2
207 1.1 hannken #define KS_Oacute 0xd3
208 1.1 hannken #define KS_Ocircumflex 0xd4
209 1.1 hannken #define KS_Otilde 0xd5
210 1.1 hannken #define KS_Odiaeresis 0xd6
211 1.1 hannken #define KS_multiply 0xd7
212 1.1 hannken #define KS_Ooblique 0xd8
213 1.1 hannken #define KS_Ugrave 0xd9
214 1.1 hannken #define KS_Uacute 0xda
215 1.1 hannken #define KS_Ucircumflex 0xdb
216 1.1 hannken #define KS_Udiaeresis 0xdc
217 1.1 hannken #define KS_Yacute 0xdd
218 1.1 hannken #define KS_THORN 0xde
219 1.1 hannken #define KS_ssharp 0xdf
220 1.1 hannken #define KS_agrave 0xe0
221 1.1 hannken #define KS_aacute 0xe1
222 1.1 hannken #define KS_acircumflex 0xe2
223 1.1 hannken #define KS_atilde 0xe3
224 1.1 hannken #define KS_adiaeresis 0xe4
225 1.1 hannken #define KS_aring 0xe5
226 1.1 hannken #define KS_ae 0xe6
227 1.1 hannken #define KS_ccedilla 0xe7
228 1.1 hannken #define KS_egrave 0xe8
229 1.1 hannken #define KS_eacute 0xe9
230 1.1 hannken #define KS_ecircumflex 0xea
231 1.1 hannken #define KS_ediaeresis 0xeb
232 1.1 hannken #define KS_igrave 0xec
233 1.1 hannken #define KS_iacute 0xed
234 1.1 hannken #define KS_icircumflex 0xee
235 1.1 hannken #define KS_idiaeresis 0xef
236 1.1 hannken #define KS_eth 0xf0
237 1.1 hannken #define KS_ntilde 0xf1
238 1.1 hannken #define KS_ograve 0xf2
239 1.1 hannken #define KS_oacute 0xf3
240 1.1 hannken #define KS_ocircumflex 0xf4
241 1.1 hannken #define KS_otilde 0xf5
242 1.1 hannken #define KS_odiaeresis 0xf6
243 1.1 hannken #define KS_division 0xf7
244 1.1 hannken #define KS_oslash 0xf8
245 1.1 hannken #define KS_ugrave 0xf9
246 1.1 hannken #define KS_uacute 0xfa
247 1.1 hannken #define KS_ucircumflex 0xfb
248 1.1 hannken #define KS_udiaeresis 0xfc
249 1.1 hannken #define KS_yacute 0xfd
250 1.63 mkirby #define KS_thorn 0xfe
251 1.1 hannken #define KS_ydiaeresis 0xff
252 1.63 mkirby #define KS_Abreve 0x0102
253 1.63 mkirby #define KS_abreve 0x0103
254 1.63 mkirby #define KS_Aogonek 0x0104
255 1.63 mkirby #define KS_aogonek 0x0105
256 1.63 mkirby #define KS_Cacute 0x0106
257 1.63 mkirby #define KS_cacute 0x0107
258 1.63 mkirby #define KS_Ccaron 0x010c
259 1.63 mkirby #define KS_ccaron 0x010d
260 1.63 mkirby #define KS_Dcaron 0x010e
261 1.63 mkirby #define KS_dcaron 0x010f
262 1.63 mkirby #define KS_Dstroke 0x0110
263 1.63 mkirby #define KS_dstroke 0x0111
264 1.63 mkirby #define KS_Eogonek 0x0118
265 1.63 mkirby #define KS_eogonek 0x0119
266 1.63 mkirby #define KS_Ecaron 0x011a
267 1.63 mkirby #define KS_ecaron 0x011b
268 1.63 mkirby #define KS_Lacute 0x0139
269 1.63 mkirby #define KS_lacute 0x013a
270 1.63 mkirby #define KS_Lcaron 0x013d
271 1.63 mkirby #define KS_lcaron 0x013e
272 1.63 mkirby #define KS_Lstroke 0x0141
273 1.63 mkirby #define KS_lstroke 0x0142
274 1.63 mkirby #define KS_Nacute 0x0143
275 1.63 mkirby #define KS_nacute 0x0144
276 1.63 mkirby #define KS_Ncaron 0x0147
277 1.63 mkirby #define KS_ncaron 0x0148
278 1.63 mkirby #define KS_Odoubleacute 0x0150
279 1.63 mkirby #define KS_odoubleacute 0x0151
280 1.63 mkirby #define KS_Racute 0x0154
281 1.63 mkirby #define KS_racute 0x0155
282 1.63 mkirby #define KS_Rcaron 0x0158
283 1.63 mkirby #define KS_rcaron 0x0159
284 1.63 mkirby #define KS_Sacute 0x015a
285 1.63 mkirby #define KS_sacute 0x015b
286 1.63 mkirby #define KS_Scedilla 0x015e
287 1.63 mkirby #define KS_scedilla 0x015f
288 1.63 mkirby #define KS_Scaron 0x0160
289 1.63 mkirby #define KS_scaron 0x0161
290 1.63 mkirby #define KS_Tcedilla 0x0162
291 1.63 mkirby #define KS_tcedilla 0x0163
292 1.63 mkirby #define KS_Tcaron 0x0164
293 1.63 mkirby #define KS_tcaron 0x0165
294 1.63 mkirby #define KS_Uabovering 0x016e
295 1.63 mkirby #define KS_uabovering 0x016f
296 1.63 mkirby #define KS_Udoubleacute 0x0170
297 1.63 mkirby #define KS_udoubleacute 0x0171
298 1.63 mkirby #define KS_Zacute 0x0179
299 1.63 mkirby #define KS_zacute 0x017a
300 1.63 mkirby #define KS_Zabovedot 0x017b
301 1.63 mkirby #define KS_zabovedot 0x017c
302 1.63 mkirby #define KS_Zcaron 0x017d
303 1.63 mkirby #define KS_zcaron 0x017e
304 1.63 mkirby
305 1.63 mkirby #define KS_caron 0x02c7
306 1.63 mkirby #define KS_breve 0x02d8
307 1.63 mkirby #define KS_abovedot 0x02d9
308 1.63 mkirby #define KS_ogonek 0x02db
309 1.63 mkirby #define KS_doubleacute 0x02dd
310 1.39 drochner
311 1.1 hannken /*
312 1.1 hannken * Group Dead (dead accents)
313 1.63 mkirby * http://www.unicode.org/charts/PDF/U0300.pdf
314 1.63 mkirby * dotaccent = "dot above"
315 1.63 mkirby * hungarumlaut = "double acute"
316 1.63 mkirby * slash = "short solidus"
317 1.1 hannken */
318 1.1 hannken
319 1.1 hannken #define KS_dead_grave 0x0300
320 1.1 hannken #define KS_dead_acute 0x0301
321 1.1 hannken #define KS_dead_circumflex 0x0302
322 1.1 hannken #define KS_dead_tilde 0x0303
323 1.63 mkirby #define KS_dead_breve 0x0306
324 1.1 hannken #define KS_dead_diaeresis 0x0308
325 1.1 hannken #define KS_dead_abovering 0x030a
326 1.63 mkirby #define KS_dead_caron 0x030c
327 1.63 mkirby #define KS_dead_dotaccent 0x0307
328 1.63 mkirby #define KS_dead_hungarumlaut 0x030b
329 1.63 mkirby #define KS_dead_ogonek 0x0328
330 1.63 mkirby #define KS_dead_slash 0x0337
331 1.1 hannken #define KS_dead_cedilla 0x0327
332 1.63 mkirby #define KS_dead_semi 0x0328
333 1.63 mkirby #define KS_dead_colon 0x0329
334 1.56 christos
335 1.56 christos /*
336 1.56 christos * Group Greek
337 1.56 christos */
338 1.56 christos
339 1.56 christos #define KS_gr_At 0xb6
340 1.56 christos #define KS_gr_Et 0xb8
341 1.56 christos #define KS_gr_Ht 0xb9
342 1.56 christos #define KS_gr_It 0xba
343 1.56 christos #define KS_gr_Ot 0xbc
344 1.56 christos #define KS_gr_Yt 0xbe
345 1.56 christos #define KS_gr_Vt 0xbf
346 1.56 christos #define KS_gr_itd 0xc0
347 1.56 christos #define KS_gr_A 0xc1
348 1.56 christos #define KS_gr_B 0xc2
349 1.56 christos #define KS_gr_G 0xc3
350 1.56 christos #define KS_gr_D 0xc4
351 1.56 christos #define KS_gr_E 0xc5
352 1.56 christos #define KS_gr_Z 0xc6
353 1.56 christos #define KS_gr_H 0xc7
354 1.56 christos #define KS_gr_U 0xc8
355 1.56 christos #define KS_gr_I 0xc9
356 1.56 christos #define KS_gr_K 0xca
357 1.56 christos #define KS_gr_L 0xcb
358 1.56 christos #define KS_gr_M 0xcc
359 1.56 christos #define KS_gr_N 0xcd
360 1.56 christos #define KS_gr_J 0xce
361 1.56 christos #define KS_gr_O 0xcf
362 1.56 christos #define KS_gr_P 0xd0
363 1.56 christos #define KS_gr_R 0xd1
364 1.56 christos #define KS_gr_S 0xd3
365 1.56 christos #define KS_gr_T 0xd4
366 1.56 christos #define KS_gr_Y 0xd5
367 1.56 christos #define KS_gr_F 0xd6
368 1.56 christos #define KS_gr_X 0xd7
369 1.56 christos #define KS_gr_C 0xd8
370 1.56 christos #define KS_gr_V 0xd9
371 1.56 christos #define KS_gr_Id 0xda
372 1.56 christos #define KS_gr_Yd 0xdb
373 1.56 christos #define KS_gr_at 0xdc
374 1.56 christos #define KS_gr_et 0xdd
375 1.56 christos #define KS_gr_ht 0xde
376 1.56 christos #define KS_gr_it 0xdf
377 1.56 christos #define KS_gr_ytd 0xe0
378 1.56 christos #define KS_gr_a 0xe1
379 1.56 christos #define KS_gr_b 0xe2
380 1.56 christos #define KS_gr_g 0xe3
381 1.56 christos #define KS_gr_d 0xe4
382 1.56 christos #define KS_gr_e 0xe5
383 1.56 christos #define KS_gr_z 0xe6
384 1.56 christos #define KS_gr_h 0xe7
385 1.56 christos #define KS_gr_u 0xe8
386 1.56 christos #define KS_gr_i 0xe9
387 1.56 christos #define KS_gr_k 0xea
388 1.56 christos #define KS_gr_l 0xeb
389 1.56 christos #define KS_gr_m 0xec
390 1.56 christos #define KS_gr_n 0xed
391 1.56 christos #define KS_gr_j 0xee
392 1.56 christos #define KS_gr_o 0xef
393 1.56 christos #define KS_gr_p 0xf0
394 1.56 christos #define KS_gr_r 0xf1
395 1.56 christos #define KS_gr_teliko_s 0xf2
396 1.56 christos #define KS_gr_s 0xf3
397 1.56 christos #define KS_gr_t 0xf4
398 1.56 christos #define KS_gr_y 0xf5
399 1.56 christos #define KS_gr_f 0xf6
400 1.56 christos #define KS_gr_x 0xf7
401 1.56 christos #define KS_gr_c 0xf8
402 1.56 christos #define KS_gr_v 0xf9
403 1.56 christos #define KS_gr_id 0xfa
404 1.56 christos #define KS_gr_yd 0xfb
405 1.56 christos #define KS_gr_ot 0xfc
406 1.56 christos #define KS_gr_yt 0xfd
407 1.56 christos #define KS_gr_vt 0xfe
408 1.1 hannken
409 1.1 hannken /*
410 1.1 hannken * Group 1 (modifiers)
411 1.1 hannken */
412 1.1 hannken
413 1.1 hannken #define KS_Shift_L 0xf101
414 1.1 hannken #define KS_Shift_R 0xf102
415 1.1 hannken #define KS_Control_L 0xf103
416 1.1 hannken #define KS_Control_R 0xf104
417 1.1 hannken #define KS_Caps_Lock 0xf105
418 1.1 hannken #define KS_Shift_Lock 0xf106
419 1.1 hannken #define KS_Alt_L 0xf107
420 1.1 hannken #define KS_Alt_R 0xf108
421 1.1 hannken #define KS_Multi_key 0xf109
422 1.1 hannken #define KS_Mode_switch 0xf10a
423 1.1 hannken #define KS_Num_Lock 0xf10b
424 1.1 hannken #define KS_Hold_Screen 0xf10c
425 1.1 hannken #define KS_Cmd 0xf10d
426 1.1 hannken #define KS_Cmd1 0xf10e
427 1.1 hannken #define KS_Cmd2 0xf10f
428 1.18 augustss #define KS_Meta_L 0xf110
429 1.18 augustss #define KS_Meta_R 0xf111
430 1.22 drochner #define KS_Zenkaku_Hankaku 0xf112 /* Zenkaku/Hankaku toggle */
431 1.22 drochner #define KS_Hiragana_Katakana 0xf113 /* Hiragana/Katakana toggle */
432 1.22 drochner #define KS_Henkan_Mode 0xf114 /* Start/Stop Conversion */
433 1.22 drochner #define KS_Henkan 0xf115 /* Alias for Henkan_Mode */
434 1.22 drochner #define KS_Muhenkan 0xf116 /* Cancel Conversion */
435 1.1 hannken
436 1.1 hannken /*
437 1.1 hannken * Group 2 (keypad) character in low byte
438 1.1 hannken */
439 1.1 hannken
440 1.1 hannken #define KS_KP_F1 0xf291
441 1.1 hannken #define KS_KP_F2 0xf292
442 1.1 hannken #define KS_KP_F3 0xf293
443 1.1 hannken #define KS_KP_F4 0xf294
444 1.1 hannken #define KS_KP_Home 0xf295
445 1.1 hannken #define KS_KP_Left 0xf296
446 1.1 hannken #define KS_KP_Up 0xf297
447 1.1 hannken #define KS_KP_Right 0xf298
448 1.1 hannken #define KS_KP_Down 0xf299
449 1.1 hannken #define KS_KP_Prior 0xf29a
450 1.1 hannken #define KS_KP_Next 0xf29b
451 1.1 hannken #define KS_KP_End 0xf29c
452 1.1 hannken #define KS_KP_Begin 0xf29d
453 1.1 hannken #define KS_KP_Insert 0xf29e
454 1.1 hannken #define KS_KP_Delete 0xf29f
455 1.1 hannken
456 1.1 hannken #define KS_KP_Space 0xf220
457 1.1 hannken #define KS_KP_Tab 0xf209
458 1.1 hannken #define KS_KP_Enter 0xf20d
459 1.1 hannken #define KS_KP_Equal 0xf23d
460 1.32 bjh21 #define KS_KP_Numbersign 0xf223
461 1.1 hannken #define KS_KP_Multiply 0xf22a
462 1.1 hannken #define KS_KP_Add 0xf22b
463 1.1 hannken #define KS_KP_Separator 0xf22c
464 1.1 hannken #define KS_KP_Subtract 0xf22d
465 1.1 hannken #define KS_KP_Decimal 0xf22e
466 1.1 hannken #define KS_KP_Divide 0xf22f
467 1.1 hannken #define KS_KP_0 0xf230
468 1.1 hannken #define KS_KP_1 0xf231
469 1.1 hannken #define KS_KP_2 0xf232
470 1.1 hannken #define KS_KP_3 0xf233
471 1.1 hannken #define KS_KP_4 0xf234
472 1.1 hannken #define KS_KP_5 0xf235
473 1.1 hannken #define KS_KP_6 0xf236
474 1.1 hannken #define KS_KP_7 0xf237
475 1.1 hannken #define KS_KP_8 0xf238
476 1.1 hannken #define KS_KP_9 0xf239
477 1.1 hannken
478 1.1 hannken /*
479 1.1 hannken * Group 3 (function)
480 1.1 hannken */
481 1.1 hannken
482 1.1 hannken #define KS_f1 0xf300
483 1.1 hannken #define KS_f2 0xf301
484 1.1 hannken #define KS_f3 0xf302
485 1.1 hannken #define KS_f4 0xf303
486 1.1 hannken #define KS_f5 0xf304
487 1.1 hannken #define KS_f6 0xf305
488 1.1 hannken #define KS_f7 0xf306
489 1.1 hannken #define KS_f8 0xf307
490 1.1 hannken #define KS_f9 0xf308
491 1.1 hannken #define KS_f10 0xf309
492 1.1 hannken #define KS_f11 0xf30a
493 1.1 hannken #define KS_f12 0xf30b
494 1.1 hannken #define KS_f13 0xf30c
495 1.1 hannken #define KS_f14 0xf30d
496 1.1 hannken #define KS_f15 0xf30e
497 1.1 hannken #define KS_f16 0xf30f
498 1.1 hannken #define KS_f17 0xf310
499 1.1 hannken #define KS_f18 0xf311
500 1.1 hannken #define KS_f19 0xf312
501 1.1 hannken #define KS_f20 0xf313
502 1.1 hannken
503 1.1 hannken #define KS_F1 0xf340
504 1.1 hannken #define KS_F2 0xf341
505 1.1 hannken #define KS_F3 0xf342
506 1.1 hannken #define KS_F4 0xf343
507 1.1 hannken #define KS_F5 0xf344
508 1.1 hannken #define KS_F6 0xf345
509 1.1 hannken #define KS_F7 0xf346
510 1.1 hannken #define KS_F8 0xf347
511 1.1 hannken #define KS_F9 0xf348
512 1.1 hannken #define KS_F10 0xf349
513 1.1 hannken #define KS_F11 0xf34a
514 1.1 hannken #define KS_F12 0xf34b
515 1.1 hannken #define KS_F13 0xf34c
516 1.1 hannken #define KS_F14 0xf34d
517 1.1 hannken #define KS_F15 0xf34e
518 1.1 hannken #define KS_F16 0xf34f
519 1.1 hannken #define KS_F17 0xf350
520 1.1 hannken #define KS_F18 0xf351
521 1.1 hannken #define KS_F19 0xf352
522 1.1 hannken #define KS_F20 0xf353
523 1.1 hannken
524 1.54 martin #define KS_Power 0xf36d
525 1.54 martin
526 1.1 hannken #define KS_Home 0xf381
527 1.1 hannken #define KS_Prior 0xf382
528 1.1 hannken #define KS_Next 0xf383
529 1.1 hannken #define KS_Up 0xf384
530 1.1 hannken #define KS_Down 0xf385
531 1.1 hannken #define KS_Left 0xf386
532 1.1 hannken #define KS_Right 0xf387
533 1.1 hannken #define KS_End 0xf388
534 1.1 hannken #define KS_Insert 0xf389
535 1.7 drochner #define KS_Help 0xf38a
536 1.7 drochner #define KS_Execute 0xf38b
537 1.7 drochner #define KS_Find 0xf38c
538 1.7 drochner #define KS_Select 0xf38d
539 1.46 martin #define KS_Again 0xf38e
540 1.46 martin #define KS_Props 0xf38f
541 1.46 martin #define KS_Undo 0xf390
542 1.46 martin #define KS_Front 0xf391
543 1.46 martin #define KS_Copy 0xf392
544 1.46 martin #define KS_Open 0xf393
545 1.46 martin #define KS_Paste 0xf394
546 1.46 martin #define KS_Cut 0xf395
547 1.16 augustss
548 1.16 augustss #define KS_Menu 0xf3c0
549 1.17 augustss #define KS_Pause 0xf3c1
550 1.17 augustss #define KS_Print_Screen 0xf3c2
551 1.1 hannken
552 1.1 hannken /*
553 1.1 hannken * Group 4 (command)
554 1.1 hannken */
555 1.1 hannken
556 1.1 hannken #define KS_Cmd_Screen0 0xf400
557 1.1 hannken #define KS_Cmd_Screen1 0xf401
558 1.1 hannken #define KS_Cmd_Screen2 0xf402
559 1.1 hannken #define KS_Cmd_Screen3 0xf403
560 1.1 hannken #define KS_Cmd_Screen4 0xf404
561 1.1 hannken #define KS_Cmd_Screen5 0xf405
562 1.1 hannken #define KS_Cmd_Screen6 0xf406
563 1.1 hannken #define KS_Cmd_Screen7 0xf407
564 1.1 hannken #define KS_Cmd_Screen8 0xf408
565 1.1 hannken #define KS_Cmd_Screen9 0xf409
566 1.1 hannken #define KS_Cmd_Debugger 0xf420
567 1.19 drochner #define KS_Cmd_ResetEmul 0xf421
568 1.21 drochner #define KS_Cmd_ResetClose 0xf422
569 1.36 takemura #define KS_Cmd_BacklightOn 0xf423
570 1.36 takemura #define KS_Cmd_BacklightOff 0xf424
571 1.36 takemura #define KS_Cmd_BacklightToggle 0xf425
572 1.36 takemura #define KS_Cmd_BrightnessUp 0xf426
573 1.36 takemura #define KS_Cmd_BrightnessDown 0xf427
574 1.36 takemura #define KS_Cmd_BrightnessRotate 0xf428
575 1.36 takemura #define KS_Cmd_ContrastUp 0xf429
576 1.36 takemura #define KS_Cmd_ContrastDown 0xf42a
577 1.36 takemura #define KS_Cmd_ContrastRotate 0xf42b
578 1.49 christos #define KS_Cmd_ScrollFastUp 0xf42c
579 1.49 christos #define KS_Cmd_ScrollFastDown 0xf42d
580 1.49 christos #define KS_Cmd_ScrollSlowUp 0xf42e
581 1.49 christos #define KS_Cmd_ScrollSlowDown 0xf42f
582 1.59 jmcneill #define KS_Cmd_VolumeUp 0xf430
583 1.59 jmcneill #define KS_Cmd_VolumeDown 0xf431
584 1.59 jmcneill #define KS_Cmd_VolumeToggle 0xf432
585 1.1 hannken
586 1.1 hannken /*
587 1.1 hannken * Group 5 (internal)
588 1.1 hannken */
589 1.1 hannken
590 1.1 hannken #define KS_voidSymbol 0xf500
591 1.1 hannken
592 1.13 hannken /*ENDKEYSYMDECL*/
593 1.13 hannken
594 1.1 hannken /*
595 1.1 hannken * keysym groups
596 1.1 hannken */
597 1.1 hannken
598 1.47 fvdl #define KS_GROUP_Mod 0xf100U
599 1.47 fvdl #define KS_GROUP_Keypad 0xf200U
600 1.47 fvdl #define KS_GROUP_Function 0xf300U
601 1.47 fvdl #define KS_GROUP_Command 0xf400U
602 1.47 fvdl #define KS_GROUP_Internal 0xf500U
603 1.47 fvdl #define KS_GROUP_Dead 0xf801U /* not encoded in keysym */
604 1.64 drochner #define KS_GROUP_Plain 0xf802U /* not encoded in keysym */
605 1.47 fvdl #define KS_GROUP_Keycode 0xf803U /* not encoded in keysym */
606 1.6 hannken
607 1.13 hannken #define KS_NUMKEYCODES 0x1000
608 1.13 hannken #define KS_KEYCODE(v) ((v) | 0xe000)
609 1.13 hannken
610 1.6 hannken #define KS_GROUP(k) ((k) >= 0x0300 && (k) < 0x0370 ? KS_GROUP_Dead : \
611 1.6 hannken (((k) & 0xf000) == 0xe000 ? KS_GROUP_Keycode : \
612 1.6 hannken (((k) & 0xf800) == 0xf000 ? ((k) & 0xff00) : \
613 1.64 drochner KS_GROUP_Plain)))
614 1.1 hannken
615 1.1 hannken #define KS_VALUE(k) (((k) & 0xf000) == 0xe000 ? ((k) & 0x0fff) : \
616 1.6 hannken (((k) & 0xf800) == 0xf000 ? ((k) & 0x00ff) : (k)))
617 1.1 hannken
618 1.1 hannken /*
619 1.35 hannken * Keyboard types: 8bit encoding, 24bit variant
620 1.1 hannken */
621 1.1 hannken
622 1.35 hannken #define KB_ENCODING(e) ((e) & 0x0000ff00)
623 1.35 hannken #define KB_VARIANT(e) ((e) & 0xffff00ff)
624 1.1 hannken
625 1.1 hannken #define KB_NODEAD 0x0001
626 1.9 drochner #define KB_DECLK 0x0002 /* DEC LKnnn layout */
627 1.11 drochner #define KB_LK401 0x0004 /* DEC LK401 instead LK201 */
628 1.30 tsarna #define KB_SWAPCTRLCAPS 0x0008 /* Swap Left-Control and Caps-Lock */
629 1.25 drochner #define KB_DVORAK 0x0010 /* Dvorak layout */
630 1.27 drochner #define KB_METAESC 0x0020 /* generate ESC prefix on ALT-key */
631 1.31 tsarna #define KB_IOPENER 0x0040 /* f1-f12 -> ESC,f1-f11 */
632 1.36 takemura #define KB_MACHDEP 0x0080 /* machine dependent */
633 1.61 ghen #define KB_COLEMAK 0x00010000 /* Colemak layout */
634 1.1 hannken
635 1.51 dsl /*
636 1.51 dsl * Define keyboard type and texts all in one table.
637 1.51 dsl * Include default variants (and their text form) for sysinst.
638 1.51 dsl * Sort (loosely) by country name.
639 1.51 dsl */
640 1.51 dsl #define KB_ENC_FUN(action) \
641 1.51 dsl action(KB_USER, 0, 0x0100, "user", , "User-defined") \
642 1.51 dsl action(KB_US, 0, 0x0200, "us", , "US-English") \
643 1.51 dsl action(KB_UK, 0, 0x0700, "uk", , "UK-English") \
644 1.51 dsl action(KB_BE, 0, 0x1300, "be", , "Belgian") \
645 1.63 mkirby action(KB_CZ, 0, 0x1500, "cz", , "Czech") \
646 1.51 dsl action(KB_DK, 0, 0x0400, "dk", , "Danish") \
647 1.52 martti action(KB_FI, 0, 0x0900, "fi", , "Finnish") \
648 1.51 dsl action(KB_FR, 0, 0x0600, "fr", , "French") \
649 1.51 dsl action(KB_DE, KB_NODEAD,0x0300, "de",".nodead", "German") \
650 1.56 christos action(KB_GR, 0, 0x1400, "gr", , "Greek") \
651 1.51 dsl action(KB_HU, 0, 0x0c00, "hu", , "Hungarian") \
652 1.51 dsl action(KB_IT, 0, 0x0500, "it", , "Italian") \
653 1.51 dsl action(KB_JP, 0, 0x0800, "jp", , "Japanese") \
654 1.51 dsl action(KB_NO, 0, 0x0a00, "no", , "Norwegian") \
655 1.51 dsl action(KB_PL, 0, 0x0d00, "pl", , "Polish") \
656 1.62 snj action(KB_PT, 0, 0x1100, "pt", , "Portuguese") \
657 1.51 dsl action(KB_RU, 0, 0x0e00, "ru", , "Russian") \
658 1.51 dsl action(KB_ES, 0, 0x0b00, "es", , "Spanish") \
659 1.51 dsl action(KB_SV, 0, 0x0900, "sv", , "Swedish") \
660 1.51 dsl action(KB_SF, 0, 0x1000, "sf", , "Swiss French") \
661 1.51 dsl action(KB_SG, 0, 0x0f00, "sg", , "Swiss German") \
662 1.63 mkirby action(KB_UA, 0, 0x1200, "ua", , "Ukrainian")
663 1.53 augustss #define KB_NONE 0x0000
664 1.51 dsl
665 1.51 dsl /* Define all the KB_xx numeric values using above table */
666 1.51 dsl #define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value,
667 1.63 mkirby enum { KB_ENC_FUN(KBF_ENUM) KB_NEXT=0x1600 };
668 1.51 dsl
669 1.51 dsl /* Define list of KB_xxx and country codes for array initialisation */
670 1.51 dsl #define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc },
671 1.51 dsl #define KB_ENCTAB KB_ENC_FUN(KBF_ENCTAB)
672 1.26 drochner
673 1.26 drochner #define KB_VARTAB \
674 1.8 drochner { KB_NODEAD, "nodead" }, \
675 1.11 drochner { KB_DECLK, "declk" }, \
676 1.15 drochner { KB_LK401, "lk401" }, \
677 1.25 drochner { KB_SWAPCTRLCAPS, "swapctrlcaps" }, \
678 1.27 drochner { KB_DVORAK, "dvorak" }, \
679 1.31 tsarna { KB_METAESC, "metaesc" }, \
680 1.36 takemura { KB_IOPENER, "iopener" }, \
681 1.61 ghen { KB_MACHDEP, "machdep" }, \
682 1.61 ghen { KB_COLEMAK, "colemak" }
683 1.1 hannken
684 1.1 hannken #endif /* !_DEV_WSCONS_WSKSYMDEF_H_ */
685