wsksymdef.h revision 1.56
1234285Sdim/* $NetBSD: wsksymdef.h,v 1.56 2006/04/01 23:02:32 christos Exp $ */ 2234285Sdim 3234285Sdim/*- 4234285Sdim * Copyright (c) 1997 The NetBSD Foundation, Inc. 5234285Sdim * All rights reserved. 6234285Sdim * 7234285Sdim * This code is derived from software contributed to The NetBSD Foundation 8234285Sdim * by Juergen Hannken-Illjes. 9234285Sdim * 10234285Sdim * Redistribution and use in source and binary forms, with or without 11234285Sdim * modification, are permitted provided that the following conditions 12234285Sdim * are met: 13234285Sdim * 1. Redistributions of source code must retain the above copyright 14234285Sdim * notice, this list of conditions and the following disclaimer. 15234285Sdim * 2. Redistributions in binary form must reproduce the above copyright 16234285Sdim * notice, this list of conditions and the following disclaimer in the 17234285Sdim * documentation and/or other materials provided with the distribution. 18234285Sdim * 3. All advertising materials mentioning features or use of this software 19234285Sdim * must display the following acknowledgement: 20234285Sdim * This product includes software developed by the NetBSD 21234285Sdim * Foundation, Inc. and its contributors. 22234285Sdim * 4. Neither the name of The NetBSD Foundation nor the names of its 23234285Sdim * contributors may be used to endorse or promote products derived 24234285Sdim * from this software without specific prior written permission. 25234285Sdim * 26234285Sdim * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27234285Sdim * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28234285Sdim * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29249423Sdim * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30249423Sdim * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31234285Sdim * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32234285Sdim * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33234285Sdim * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34296417Sdim * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35296417Sdim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36296417Sdim * POSSIBILITY OF SUCH DAMAGE. 37296417Sdim */ 38296417Sdim 39296417Sdim#ifndef _DEV_WSCONS_WSKSYMDEF_H_ 40296417Sdim#define _DEV_WSCONS_WSKSYMDEF_H_ 41296417Sdim 42296417Sdim/* 43296417Sdim * Keysymbols encoded as 16-bit Unicode. Special symbols 44296417Sdim * are encoded in the private area (0xe000 - 0xf8ff). 45296417Sdim * Currently only ISO Latin-1 subset is supported. 46296417Sdim * 47296417Sdim * This file is parsed from userland. Encode keysyms as: 48296417Sdim * 49296417Sdim * #define KS_[^ \t]* 0x[0-9a-f]* 50296417Sdim * 51296417Sdim * and don't modify the border comments. 52296417Sdim */ 53296417Sdim 54296417Sdim 55296417Sdim/*BEGINKEYSYMDECL*/ 56296417Sdim 57296417Sdim/* 58234285Sdim * Group Ascii (ISO Latin1) character in low byte 59234285Sdim */ 60296417Sdim 61296417Sdim#define KS_BackSpace 0x08 62296417Sdim#define KS_Tab 0x09 63296417Sdim#define KS_Linefeed 0x0a 64296417Sdim#define KS_Clear 0x0b 65296417Sdim#define KS_Return 0x0d 66296417Sdim#define KS_Escape 0x1b 67234285Sdim#define KS_space 0x20 68234285Sdim#define KS_exclam 0x21 69234285Sdim#define KS_quotedbl 0x22 70234285Sdim#define KS_numbersign 0x23 71234285Sdim#define KS_dollar 0x24 72234285Sdim#define KS_percent 0x25 73234285Sdim#define KS_ampersand 0x26 74234285Sdim#define KS_apostrophe 0x27 75234285Sdim#define KS_parenleft 0x28 76234285Sdim#define KS_parenright 0x29 77234285Sdim#define KS_asterisk 0x2a 78234285Sdim#define KS_plus 0x2b 79234285Sdim#define KS_comma 0x2c 80234285Sdim#define KS_minus 0x2d 81234285Sdim#define KS_period 0x2e 82234285Sdim#define KS_slash 0x2f 83234285Sdim#define KS_0 0x30 84234285Sdim#define KS_1 0x31 85234285Sdim#define KS_2 0x32 86234285Sdim#define KS_3 0x33 87234285Sdim#define KS_4 0x34 88234285Sdim#define KS_5 0x35 89234285Sdim#define KS_6 0x36 90234285Sdim#define KS_7 0x37 91234285Sdim#define KS_8 0x38 92296417Sdim#define KS_9 0x39 93296417Sdim#define KS_colon 0x3a 94296417Sdim#define KS_semicolon 0x3b 95296417Sdim#define KS_less 0x3c 96296417Sdim#define KS_equal 0x3d 97296417Sdim#define KS_greater 0x3e 98296417Sdim#define KS_question 0x3f 99296417Sdim#define KS_at 0x40 100296417Sdim#define KS_A 0x41 101296417Sdim#define KS_B 0x42 102296417Sdim#define KS_C 0x43 103296417Sdim#define KS_D 0x44 104296417Sdim#define KS_E 0x45 105296417Sdim#define KS_F 0x46 106234285Sdim#define KS_G 0x47 107296417Sdim#define KS_H 0x48 108296417Sdim#define KS_I 0x49 109296417Sdim#define KS_J 0x4a 110296417Sdim#define KS_K 0x4b 111296417Sdim#define KS_L 0x4c 112234285Sdim#define KS_M 0x4d 113234285Sdim#define KS_N 0x4e 114234285Sdim#define KS_O 0x4f 115234285Sdim#define KS_P 0x50 116296417Sdim#define KS_Q 0x51 117296417Sdim#define KS_R 0x52 118234285Sdim#define KS_S 0x53 119234285Sdim#define KS_T 0x54 120234285Sdim#define KS_U 0x55 121234285Sdim#define KS_V 0x56 122234285Sdim#define KS_W 0x57 123234285Sdim#define KS_X 0x58 124234285Sdim#define KS_Y 0x59 125234285Sdim#define KS_Z 0x5a 126296417Sdim#define KS_bracketleft 0x5b 127296417Sdim#define KS_backslash 0x5c 128234285Sdim#define KS_bracketright 0x5d 129234285Sdim#define KS_asciicircum 0x5e 130234285Sdim#define KS_underscore 0x5f 131234285Sdim#define KS_grave 0x60 132234285Sdim#define KS_a 0x61 133234285Sdim#define KS_b 0x62 134234285Sdim#define KS_c 0x63 135234285Sdim#define KS_d 0x64 136234285Sdim#define KS_e 0x65 137234285Sdim#define KS_f 0x66 138234285Sdim#define KS_g 0x67 139234285Sdim#define KS_h 0x68 140234285Sdim#define KS_i 0x69 141234285Sdim#define KS_j 0x6a 142234285Sdim#define KS_k 0x6b 143234285Sdim#define KS_l 0x6c 144234285Sdim#define KS_m 0x6d 145234285Sdim#define KS_n 0x6e 146234285Sdim#define KS_o 0x6f 147234285Sdim#define KS_p 0x70 148239462Sdim#define KS_q 0x71 149234285Sdim#define KS_r 0x72 150234285Sdim#define KS_s 0x73 151234285Sdim#define KS_t 0x74 152296417Sdim#define KS_u 0x75 153296417Sdim#define KS_v 0x76 154234285Sdim#define KS_w 0x77 155234285Sdim#define KS_x 0x78 156296417Sdim#define KS_y 0x79 157234285Sdim#define KS_z 0x7a 158276479Sdim#define KS_braceleft 0x7b 159234285Sdim#define KS_bar 0x7c 160239462Sdim#define KS_braceright 0x7d 161234285Sdim#define KS_asciitilde 0x7e 162280031Sdim#define KS_Delete 0x7f 163296417Sdim 164296417Sdim#define KS_nobreakspace 0xa0 165296417Sdim#define KS_exclamdown 0xa1 166239462Sdim#define KS_cent 0xa2 167234285Sdim#define KS_sterling 0xa3 168234285Sdim#define KS_currency 0xa4 169234285Sdim#define KS_yen 0xa5 170234285Sdim#define KS_brokenbar 0xa6 171296417Sdim#define KS_section 0xa7 172234285Sdim#define KS_diaeresis 0xa8 173234285Sdim#define KS_copyright 0xa9 174234285Sdim#define KS_ordfeminine 0xaa 175280031Sdim#define KS_guillemotleft 0xab 176296417Sdim#define KS_notsign 0xac 177296417Sdim#define KS_hyphen 0xad 178280031Sdim#define KS_registered 0xae 179280031Sdim#define KS_macron 0xaf 180296417Sdim#define KS_degree 0xb0 181234285Sdim#define KS_plusminus 0xb1 182234285Sdim#define KS_twosuperior 0xb2 183234285Sdim#define KS_threesuperior 0xb3 184234285Sdim#define KS_acute 0xb4 185239462Sdim#define KS_mu 0xb5 186239462Sdim#define KS_paragraph 0xb6 187234285Sdim#define KS_periodcentered 0xb7 188239462Sdim#define KS_cedilla 0xb8 189239462Sdim#define KS_onesuperior 0xb9 190234285Sdim#define KS_masculine 0xba 191234285Sdim#define KS_guillemotright 0xbb 192234285Sdim#define KS_onequarter 0xbc 193234285Sdim#define KS_onehalf 0xbd 194234285Sdim#define KS_threequarters 0xbe 195239462Sdim#define KS_questiondown 0xbf 196234285Sdim#define KS_Agrave 0xc0 197234285Sdim#define KS_Aacute 0xc1 198296417Sdim#define KS_Acircumflex 0xc2 199234285Sdim#define KS_Atilde 0xc3 200234285Sdim#define KS_Adiaeresis 0xc4 201234285Sdim#define KS_Aring 0xc5 202234285Sdim#define KS_AE 0xc6 203234285Sdim#define KS_Ccedilla 0xc7 204234285Sdim#define KS_Egrave 0xc8 205234285Sdim#define KS_Eacute 0xc9 206234285Sdim#define KS_Ecircumflex 0xca 207234285Sdim#define KS_Ediaeresis 0xcb 208239462Sdim#define KS_Igrave 0xcc 209239462Sdim#define KS_Iacute 0xcd 210261991Sdim#define KS_Icircumflex 0xce 211261991Sdim#define KS_Idiaeresis 0xcf 212239462Sdim#define KS_ETH 0xd0 213234285Sdim#define KS_Ntilde 0xd1 214239462Sdim#define KS_Ograve 0xd2 215239462Sdim#define KS_Oacute 0xd3 216239462Sdim#define KS_Ocircumflex 0xd4 217239462Sdim#define KS_Otilde 0xd5 218239462Sdim#define KS_Odiaeresis 0xd6 219239462Sdim#define KS_multiply 0xd7 220234285Sdim#define KS_Ooblique 0xd8 221234285Sdim#define KS_Ugrave 0xd9 222234285Sdim#define KS_Uacute 0xda 223234285Sdim#define KS_Ucircumflex 0xdb 224234285Sdim#define KS_Udiaeresis 0xdc 225239462Sdim#define KS_Yacute 0xdd 226234285Sdim#define KS_THORN 0xde 227234285Sdim#define KS_ssharp 0xdf 228239462Sdim#define KS_agrave 0xe0 229234285Sdim#define KS_aacute 0xe1 230234285Sdim#define KS_acircumflex 0xe2 231234285Sdim#define KS_atilde 0xe3 232234285Sdim#define KS_adiaeresis 0xe4 233239462Sdim#define KS_aring 0xe5 234239462Sdim#define KS_ae 0xe6 235239462Sdim#define KS_ccedilla 0xe7 236239462Sdim#define KS_egrave 0xe8 237239462Sdim#define KS_eacute 0xe9 238234285Sdim#define KS_ecircumflex 0xea 239234285Sdim#define KS_ediaeresis 0xeb 240234285Sdim#define KS_igrave 0xec 241234285Sdim#define KS_iacute 0xed 242296417Sdim#define KS_icircumflex 0xee 243234285Sdim#define KS_idiaeresis 0xef 244234285Sdim#define KS_eth 0xf0 245234285Sdim#define KS_ntilde 0xf1 246234285Sdim#define KS_ograve 0xf2 247239462Sdim#define KS_oacute 0xf3 248234285Sdim#define KS_ocircumflex 0xf4 249234285Sdim#define KS_otilde 0xf5 250234285Sdim#define KS_odiaeresis 0xf6 251239462Sdim#define KS_division 0xf7 252234285Sdim#define KS_oslash 0xf8 253239462Sdim#define KS_ugrave 0xf9 254234285Sdim#define KS_uacute 0xfa 255234285Sdim#define KS_ucircumflex 0xfb 256234285Sdim#define KS_udiaeresis 0xfc 257234285Sdim#define KS_yacute 0xfd 258234285Sdim#define KS_thorn 0xfe 259234285Sdim#define KS_ydiaeresis 0xff 260234285Sdim 261296417Sdim#define KS_Odoubleacute 0x150 262296417Sdim#define KS_odoubleacute 0x151 263234285Sdim#define KS_Udoubleacute 0x170 264234285Sdim#define KS_udoubleacute 0x171 265234285Sdim 266234285Sdim/* 267239462Sdim * Group Dead (dead accents) 268234285Sdim */ 269234285Sdim 270234285Sdim#define KS_dead_grave 0x0300 271234285Sdim#define KS_dead_acute 0x0301 272239462Sdim#define KS_dead_circumflex 0x0302 273239462Sdim#define KS_dead_tilde 0x0303 274234285Sdim#define KS_dead_diaeresis 0x0308 275#define KS_dead_abovering 0x030a 276#define KS_dead_cedilla 0x0327 277#define KS_dead_semi 0x0328 278#define KS_dead_colon 0x0329 279 280/* 281 * Group Greek 282 */ 283 284#define KS_gr_At 0xb6 285#define KS_gr_Et 0xb8 286#define KS_gr_Ht 0xb9 287#define KS_gr_It 0xba 288#define KS_gr_Ot 0xbc 289#define KS_gr_Yt 0xbe 290#define KS_gr_Vt 0xbf 291#define KS_gr_itd 0xc0 292#define KS_gr_A 0xc1 293#define KS_gr_B 0xc2 294#define KS_gr_G 0xc3 295#define KS_gr_D 0xc4 296#define KS_gr_E 0xc5 297#define KS_gr_Z 0xc6 298#define KS_gr_H 0xc7 299#define KS_gr_U 0xc8 300#define KS_gr_I 0xc9 301#define KS_gr_K 0xca 302#define KS_gr_L 0xcb 303#define KS_gr_M 0xcc 304#define KS_gr_N 0xcd 305#define KS_gr_J 0xce 306#define KS_gr_O 0xcf 307#define KS_gr_P 0xd0 308#define KS_gr_R 0xd1 309#define KS_gr_S 0xd3 310#define KS_gr_T 0xd4 311#define KS_gr_Y 0xd5 312#define KS_gr_F 0xd6 313#define KS_gr_X 0xd7 314#define KS_gr_C 0xd8 315#define KS_gr_V 0xd9 316#define KS_gr_Id 0xda 317#define KS_gr_Yd 0xdb 318#define KS_gr_at 0xdc 319#define KS_gr_et 0xdd 320#define KS_gr_ht 0xde 321#define KS_gr_it 0xdf 322#define KS_gr_ytd 0xe0 323#define KS_gr_a 0xe1 324#define KS_gr_b 0xe2 325#define KS_gr_g 0xe3 326#define KS_gr_d 0xe4 327#define KS_gr_e 0xe5 328#define KS_gr_z 0xe6 329#define KS_gr_h 0xe7 330#define KS_gr_u 0xe8 331#define KS_gr_i 0xe9 332#define KS_gr_k 0xea 333#define KS_gr_l 0xeb 334#define KS_gr_m 0xec 335#define KS_gr_n 0xed 336#define KS_gr_j 0xee 337#define KS_gr_o 0xef 338#define KS_gr_p 0xf0 339#define KS_gr_r 0xf1 340#define KS_gr_teliko_s 0xf2 341#define KS_gr_s 0xf3 342#define KS_gr_t 0xf4 343#define KS_gr_y 0xf5 344#define KS_gr_f 0xf6 345#define KS_gr_x 0xf7 346#define KS_gr_c 0xf8 347#define KS_gr_v 0xf9 348#define KS_gr_id 0xfa 349#define KS_gr_yd 0xfb 350#define KS_gr_ot 0xfc 351#define KS_gr_yt 0xfd 352#define KS_gr_vt 0xfe 353 354/* 355 * Group 1 (modifiers) 356 */ 357 358#define KS_Shift_L 0xf101 359#define KS_Shift_R 0xf102 360#define KS_Control_L 0xf103 361#define KS_Control_R 0xf104 362#define KS_Caps_Lock 0xf105 363#define KS_Shift_Lock 0xf106 364#define KS_Alt_L 0xf107 365#define KS_Alt_R 0xf108 366#define KS_Multi_key 0xf109 367#define KS_Mode_switch 0xf10a 368#define KS_Num_Lock 0xf10b 369#define KS_Hold_Screen 0xf10c 370#define KS_Cmd 0xf10d 371#define KS_Cmd1 0xf10e 372#define KS_Cmd2 0xf10f 373#define KS_Meta_L 0xf110 374#define KS_Meta_R 0xf111 375#define KS_Zenkaku_Hankaku 0xf112 /* Zenkaku/Hankaku toggle */ 376#define KS_Hiragana_Katakana 0xf113 /* Hiragana/Katakana toggle */ 377#define KS_Henkan_Mode 0xf114 /* Start/Stop Conversion */ 378#define KS_Henkan 0xf115 /* Alias for Henkan_Mode */ 379#define KS_Muhenkan 0xf116 /* Cancel Conversion */ 380 381/* 382 * Group 2 (keypad) character in low byte 383 */ 384 385#define KS_KP_F1 0xf291 386#define KS_KP_F2 0xf292 387#define KS_KP_F3 0xf293 388#define KS_KP_F4 0xf294 389#define KS_KP_Home 0xf295 390#define KS_KP_Left 0xf296 391#define KS_KP_Up 0xf297 392#define KS_KP_Right 0xf298 393#define KS_KP_Down 0xf299 394#define KS_KP_Prior 0xf29a 395#define KS_KP_Next 0xf29b 396#define KS_KP_End 0xf29c 397#define KS_KP_Begin 0xf29d 398#define KS_KP_Insert 0xf29e 399#define KS_KP_Delete 0xf29f 400 401#define KS_KP_Space 0xf220 402#define KS_KP_Tab 0xf209 403#define KS_KP_Enter 0xf20d 404#define KS_KP_Equal 0xf23d 405#define KS_KP_Numbersign 0xf223 406#define KS_KP_Multiply 0xf22a 407#define KS_KP_Add 0xf22b 408#define KS_KP_Separator 0xf22c 409#define KS_KP_Subtract 0xf22d 410#define KS_KP_Decimal 0xf22e 411#define KS_KP_Divide 0xf22f 412#define KS_KP_0 0xf230 413#define KS_KP_1 0xf231 414#define KS_KP_2 0xf232 415#define KS_KP_3 0xf233 416#define KS_KP_4 0xf234 417#define KS_KP_5 0xf235 418#define KS_KP_6 0xf236 419#define KS_KP_7 0xf237 420#define KS_KP_8 0xf238 421#define KS_KP_9 0xf239 422 423/* 424 * Group 3 (function) 425 */ 426 427#define KS_f1 0xf300 428#define KS_f2 0xf301 429#define KS_f3 0xf302 430#define KS_f4 0xf303 431#define KS_f5 0xf304 432#define KS_f6 0xf305 433#define KS_f7 0xf306 434#define KS_f8 0xf307 435#define KS_f9 0xf308 436#define KS_f10 0xf309 437#define KS_f11 0xf30a 438#define KS_f12 0xf30b 439#define KS_f13 0xf30c 440#define KS_f14 0xf30d 441#define KS_f15 0xf30e 442#define KS_f16 0xf30f 443#define KS_f17 0xf310 444#define KS_f18 0xf311 445#define KS_f19 0xf312 446#define KS_f20 0xf313 447 448#define KS_F1 0xf340 449#define KS_F2 0xf341 450#define KS_F3 0xf342 451#define KS_F4 0xf343 452#define KS_F5 0xf344 453#define KS_F6 0xf345 454#define KS_F7 0xf346 455#define KS_F8 0xf347 456#define KS_F9 0xf348 457#define KS_F10 0xf349 458#define KS_F11 0xf34a 459#define KS_F12 0xf34b 460#define KS_F13 0xf34c 461#define KS_F14 0xf34d 462#define KS_F15 0xf34e 463#define KS_F16 0xf34f 464#define KS_F17 0xf350 465#define KS_F18 0xf351 466#define KS_F19 0xf352 467#define KS_F20 0xf353 468 469#define KS_Power 0xf36d 470 471#define KS_Home 0xf381 472#define KS_Prior 0xf382 473#define KS_Next 0xf383 474#define KS_Up 0xf384 475#define KS_Down 0xf385 476#define KS_Left 0xf386 477#define KS_Right 0xf387 478#define KS_End 0xf388 479#define KS_Insert 0xf389 480#define KS_Help 0xf38a 481#define KS_Execute 0xf38b 482#define KS_Find 0xf38c 483#define KS_Select 0xf38d 484#define KS_Again 0xf38e 485#define KS_Props 0xf38f 486#define KS_Undo 0xf390 487#define KS_Front 0xf391 488#define KS_Copy 0xf392 489#define KS_Open 0xf393 490#define KS_Paste 0xf394 491#define KS_Cut 0xf395 492 493#define KS_Menu 0xf3c0 494#define KS_Pause 0xf3c1 495#define KS_Print_Screen 0xf3c2 496 497/* 498 * Group 4 (command) 499 */ 500 501#define KS_Cmd_Screen0 0xf400 502#define KS_Cmd_Screen1 0xf401 503#define KS_Cmd_Screen2 0xf402 504#define KS_Cmd_Screen3 0xf403 505#define KS_Cmd_Screen4 0xf404 506#define KS_Cmd_Screen5 0xf405 507#define KS_Cmd_Screen6 0xf406 508#define KS_Cmd_Screen7 0xf407 509#define KS_Cmd_Screen8 0xf408 510#define KS_Cmd_Screen9 0xf409 511#define KS_Cmd_Debugger 0xf420 512#define KS_Cmd_ResetEmul 0xf421 513#define KS_Cmd_ResetClose 0xf422 514#define KS_Cmd_BacklightOn 0xf423 515#define KS_Cmd_BacklightOff 0xf424 516#define KS_Cmd_BacklightToggle 0xf425 517#define KS_Cmd_BrightnessUp 0xf426 518#define KS_Cmd_BrightnessDown 0xf427 519#define KS_Cmd_BrightnessRotate 0xf428 520#define KS_Cmd_ContrastUp 0xf429 521#define KS_Cmd_ContrastDown 0xf42a 522#define KS_Cmd_ContrastRotate 0xf42b 523#define KS_Cmd_ScrollFastUp 0xf42c 524#define KS_Cmd_ScrollFastDown 0xf42d 525#define KS_Cmd_ScrollSlowUp 0xf42e 526#define KS_Cmd_ScrollSlowDown 0xf42f 527 528/* 529 * Group 5 (internal) 530 */ 531 532#define KS_voidSymbol 0xf500 533 534/*ENDKEYSYMDECL*/ 535 536/* 537 * keysym groups 538 */ 539 540#define KS_GROUP_Mod 0xf100U 541#define KS_GROUP_Keypad 0xf200U 542#define KS_GROUP_Function 0xf300U 543#define KS_GROUP_Command 0xf400U 544#define KS_GROUP_Internal 0xf500U 545#define KS_GROUP_Dead 0xf801U /* not encoded in keysym */ 546#define KS_GROUP_Ascii 0xf802U /* not encoded in keysym */ 547#define KS_GROUP_Keycode 0xf803U /* not encoded in keysym */ 548 549#define KS_NUMKEYCODES 0x1000 550#define KS_KEYCODE(v) ((v) | 0xe000) 551 552#define KS_GROUP(k) ((k) >= 0x0300 && (k) < 0x0370 ? KS_GROUP_Dead : \ 553 (((k) & 0xf000) == 0xe000 ? KS_GROUP_Keycode : \ 554 (((k) & 0xf800) == 0xf000 ? ((k) & 0xff00) : \ 555 KS_GROUP_Ascii))) 556 557#define KS_VALUE(k) (((k) & 0xf000) == 0xe000 ? ((k) & 0x0fff) : \ 558 (((k) & 0xf800) == 0xf000 ? ((k) & 0x00ff) : (k))) 559 560/* 561 * Keyboard types: 8bit encoding, 24bit variant 562 */ 563 564#define KB_ENCODING(e) ((e) & 0x0000ff00) 565#define KB_VARIANT(e) ((e) & 0xffff00ff) 566 567#define KB_NODEAD 0x0001 568#define KB_DECLK 0x0002 /* DEC LKnnn layout */ 569#define KB_LK401 0x0004 /* DEC LK401 instead LK201 */ 570#define KB_SWAPCTRLCAPS 0x0008 /* Swap Left-Control and Caps-Lock */ 571#define KB_DVORAK 0x0010 /* Dvorak layout */ 572#define KB_METAESC 0x0020 /* generate ESC prefix on ALT-key */ 573#define KB_IOPENER 0x0040 /* f1-f12 -> ESC,f1-f11 */ 574#define KB_MACHDEP 0x0080 /* machine dependent */ 575 576/* 577 * Define keyboard type and texts all in one table. 578 * Include default variants (and their text form) for sysinst. 579 * Sort (loosely) by country name. 580 */ 581#define KB_ENC_FUN(action) \ 582action(KB_USER, 0, 0x0100, "user", , "User-defined") \ 583action(KB_US, 0, 0x0200, "us", , "US-English") \ 584action(KB_UK, 0, 0x0700, "uk", , "UK-English") \ 585action(KB_BE, 0, 0x1300, "be", , "Belgian") \ 586action(KB_DK, 0, 0x0400, "dk", , "Danish") \ 587action(KB_FI, 0, 0x0900, "fi", , "Finnish") \ 588action(KB_FR, 0, 0x0600, "fr", , "French") \ 589action(KB_DE, KB_NODEAD,0x0300, "de",".nodead", "German") \ 590action(KB_GR, 0, 0x1400, "gr", , "Greek") \ 591action(KB_HU, 0, 0x0c00, "hu", , "Hungarian") \ 592action(KB_IT, 0, 0x0500, "it", , "Italian") \ 593action(KB_JP, 0, 0x0800, "jp", , "Japanese") \ 594action(KB_NO, 0, 0x0a00, "no", , "Norwegian") \ 595action(KB_PL, 0, 0x0d00, "pl", , "Polish") \ 596action(KB_PT, 0, 0x1100, "pt", , "Portugese") \ 597action(KB_RU, 0, 0x0e00, "ru", , "Russian") \ 598action(KB_ES, 0, 0x0b00, "es", , "Spanish") \ 599action(KB_SV, 0, 0x0900, "sv", , "Swedish") \ 600action(KB_SF, 0, 0x1000, "sf", , "Swiss French") \ 601action(KB_SG, 0, 0x0f00, "sg", , "Swiss German") \ 602action(KB_UA, 0, 0x1200, "ua", , "Ukrainian") 603#define KB_NONE 0x0000 604 605/* Define all the KB_xx numeric values using above table */ 606#define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value, 607enum { KB_ENC_FUN(KBF_ENUM) KB_NEXT=0x1500 }; 608 609/* Define list of KB_xxx and country codes for array initialisation */ 610#define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc }, 611#define KB_ENCTAB KB_ENC_FUN(KBF_ENCTAB) 612 613#define KB_VARTAB \ 614 { KB_NODEAD, "nodead" }, \ 615 { KB_DECLK, "declk" }, \ 616 { KB_LK401, "lk401" }, \ 617 { KB_SWAPCTRLCAPS, "swapctrlcaps" }, \ 618 { KB_DVORAK, "dvorak" }, \ 619 { KB_METAESC, "metaesc" }, \ 620 { KB_IOPENER, "iopener" }, \ 621 { KB_MACHDEP, "machdep" } 622 623#endif /* !_DEV_WSCONS_WSKSYMDEF_H_ */ 624