1 /* $OpenBSD: wskbdmap_mfii.c,v 1.30 2005/05/09 05:08:57 miod Exp $ */ 2 /* $NetBSD: wskbdmap_mfii.c,v 1.15 2000/05/19 16:40:04 drochner Exp $ */ 3 4 /* 5 * PLEASE DO NOT FORGET TO REGEN 6 * sys/arch/hppa/gsc/gsckbdmap.c 7 * sys/dev/usb/ukbdmap.c 8 * AFTER ANY CHANGES TO THIS FILE! 9 */ 10 11 /*- 12 * Copyright (c) 1997 The NetBSD Foundation, Inc. 13 * All rights reserved. 14 * 15 * This code is derived from software contributed to The NetBSD Foundation 16 * by Juergen Hannken-Illjes. 17 * 18 * Redistribution and use in source and binary forms, with or without 19 * modification, are permitted provided that the following conditions 20 * are met: 21 * 1. Redistributions of source code must retain the above copyright 22 * notice, this list of conditions and the following disclaimer. 23 * 2. Redistributions in binary form must reproduce the above copyright 24 * notice, this list of conditions and the following disclaimer in the 25 * documentation and/or other materials provided with the distribution. 26 * 3. All advertising materials mentioning features or use of this software 27 * must display the following acknowledgement: 28 * This product includes software developed by the NetBSD 29 * Foundation, Inc. and its contributors. 30 * 4. Neither the name of The NetBSD Foundation nor the names of its 31 * contributors may be used to endorse or promote products derived 32 * from this software without specific prior written permission. 33 * 34 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 35 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 36 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 37 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 38 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 39 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 40 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 41 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 42 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 43 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 44 * POSSIBILITY OF SUCH DAMAGE. 45 */ 46 47 #include <sys/types.h> 48 #include <dev/wscons/wsksymdef.h> 49 #include <dev/wscons/wsksymvar.h> 50 #include <dev/pckbc/wskbdmap_mfii.h> 51 52 #define KC(n) KS_KEYCODE(n) 53 54 static const keysym_t pckbd_keydesc_us[] = { 55 /* pos command normal shifted */ 56 KC(1), KS_Cmd_Debugger, KS_Escape, 57 KC(2), KS_1, KS_exclam, 58 KC(3), KS_2, KS_at, 59 KC(4), KS_3, KS_numbersign, 60 KC(5), KS_4, KS_dollar, 61 KC(6), KS_5, KS_percent, 62 KC(7), KS_6, KS_asciicircum, 63 KC(8), KS_7, KS_ampersand, 64 KC(9), KS_8, KS_asterisk, 65 KC(10), KS_9, KS_parenleft, 66 KC(11), KS_0, KS_parenright, 67 KC(12), KS_minus, KS_underscore, 68 KC(13), KS_equal, KS_plus, 69 KC(14), KS_Cmd_ResetEmul, KS_Delete, 70 KC(15), KS_Tab, 71 KC(16), KS_q, 72 KC(17), KS_w, 73 KC(18), KS_e, 74 KC(19), KS_r, 75 KC(20), KS_t, 76 KC(21), KS_y, 77 KC(22), KS_u, 78 KC(23), KS_i, 79 KC(24), KS_o, 80 KC(25), KS_p, 81 KC(26), KS_bracketleft, KS_braceleft, 82 KC(27), KS_bracketright, KS_braceright, 83 KC(28), KS_Return, 84 KC(29), KS_Cmd1, KS_Control_L, 85 KC(30), KS_a, 86 KC(31), KS_s, 87 KC(32), KS_d, 88 KC(33), KS_f, 89 KC(34), KS_g, 90 KC(35), KS_h, 91 KC(36), KS_j, 92 KC(37), KS_k, 93 KC(38), KS_l, 94 KC(39), KS_semicolon, KS_colon, 95 KC(40), KS_apostrophe, KS_quotedbl, 96 KC(41), KS_grave, KS_asciitilde, 97 KC(42), KS_Shift_L, 98 KC(43), KS_backslash, KS_bar, 99 KC(44), KS_z, 100 KC(45), KS_x, 101 KC(46), KS_c, 102 KC(47), KS_v, 103 KC(48), KS_b, 104 KC(49), KS_n, 105 KC(50), KS_m, 106 KC(51), KS_comma, KS_less, 107 KC(52), KS_period, KS_greater, 108 KC(53), KS_slash, KS_question, 109 KC(54), KS_Shift_R, 110 KC(55), KS_KP_Multiply, 111 KC(56), KS_Cmd2, KS_Alt_L, 112 KC(57), KS_space, 113 KC(58), KS_Caps_Lock, 114 KC(59), KS_Cmd_Screen0, KS_f1, 115 KC(60), KS_Cmd_Screen1, KS_f2, 116 KC(61), KS_Cmd_Screen2, KS_f3, 117 KC(62), KS_Cmd_Screen3, KS_f4, 118 KC(63), KS_Cmd_Screen4, KS_f5, 119 KC(64), KS_Cmd_Screen5, KS_f6, 120 KC(65), KS_Cmd_Screen6, KS_f7, 121 KC(66), KS_Cmd_Screen7, KS_f8, 122 KC(67), KS_Cmd_Screen8, KS_f9, 123 KC(68), KS_Cmd_Screen9, KS_f10, 124 KC(69), KS_Num_Lock, 125 KC(70), KS_Hold_Screen, 126 KC(71), KS_KP_Home, KS_KP_7, 127 KC(72), KS_KP_Up, KS_KP_8, 128 KC(73), KS_KP_Prior, KS_KP_9, 129 KC(74), KS_KP_Subtract, 130 KC(75), KS_KP_Left, KS_KP_4, 131 KC(76), KS_KP_Begin, KS_KP_5, 132 KC(77), KS_KP_Right, KS_KP_6, 133 KC(78), KS_KP_Add, 134 KC(79), KS_KP_End, KS_KP_1, 135 KC(80), KS_KP_Down, KS_KP_2, 136 KC(81), KS_KP_Next, KS_KP_3, 137 KC(82), KS_KP_Insert, KS_KP_0, 138 KC(83), KS_KP_Delete, KS_KP_Decimal, 139 KC(87), KS_Cmd_Screen10, KS_f11, 140 KC(88), KS_Cmd_Screen11, KS_f12, 141 KC(127), KS_Pause, /* Break */ 142 KC(156), KS_KP_Enter, 143 KC(157), KS_Cmd1, KS_Control_R, 144 KC(170), KS_Print_Screen, 145 KC(181), KS_KP_Divide, 146 KC(183), KS_Print_Screen, 147 KC(184), KS_Cmd2, KS_Alt_R, KS_Multi_key, 148 #if 0 149 KC(198), KS_Cmd_ResetClose, /* CTL-Break */ 150 #endif 151 KC(199), KS_Home, 152 KC(200), KS_Up, 153 KC(201), KS_Cmd_ScrollBack, KS_Prior, 154 KC(203), KS_Left, 155 KC(205), KS_Right, 156 KC(207), KS_End, 157 KC(208), KS_Down, 158 KC(209), KS_Cmd_ScrollFwd, KS_Next, 159 KC(210), KS_Insert, 160 KC(211), KS_Cmd_KbdReset, KS_KP_Delete, 161 KC(219), KS_Meta_L, 162 KC(220), KS_Meta_R, 163 KC(221), KS_Menu, 164 }; 165 166 #if !defined(SMALL_KERNEL) || !defined(__alpha__) 167 168 static const keysym_t pckbd_keydesc_de[] = { 169 /* pos normal shifted altgr shift-altgr */ 170 KC(3), KS_2, KS_quotedbl, KS_twosuperior, 171 KC(4), KS_3, KS_section, KS_threesuperior, 172 KC(7), KS_6, KS_ampersand, 173 KC(8), KS_7, KS_slash, KS_braceleft, 174 KC(9), KS_8, KS_parenleft, KS_bracketleft, 175 KC(10), KS_9, KS_parenright, KS_bracketright, 176 KC(11), KS_0, KS_equal, KS_braceright, 177 KC(12), KS_ssharp, KS_question, KS_backslash, 178 KC(13), KS_dead_acute, KS_dead_grave, 179 KC(16), KS_q, KS_Q, KS_at, 180 KC(21), KS_z, 181 KC(26), KS_udiaeresis, 182 KC(27), KS_plus, KS_asterisk, KS_dead_tilde, 183 KC(39), KS_odiaeresis, 184 KC(40), KS_adiaeresis, 185 KC(41), KS_dead_circumflex,KS_dead_abovering, 186 KC(43), KS_numbersign, KS_apostrophe, 187 KC(44), KS_y, 188 KC(50), KS_m, KS_M, KS_mu, 189 KC(51), KS_comma, KS_semicolon, 190 KC(52), KS_period, KS_colon, 191 KC(53), KS_minus, KS_underscore, 192 KC(86), KS_less, KS_greater, KS_bar, KS_brokenbar, 193 KC(184), KS_Mode_switch, KS_Multi_key, 194 }; 195 196 static const keysym_t pckbd_keydesc_de_nodead[] = { 197 /* pos normal shifted altgr shift-altgr */ 198 KC(13), KS_apostrophe, KS_grave, 199 KC(27), KS_plus, KS_asterisk, KS_asciitilde, 200 KC(41), KS_asciicircum, KS_degree, 201 }; 202 203 static const keysym_t pckbd_keydesc_dk[] = { 204 /* pos normal shifted altgr shift-altgr */ 205 KC(3), KS_2, KS_quotedbl, KS_at, 206 KC(4), KS_3, KS_numbersign, KS_sterling, 207 KC(5), KS_4, KS_currency, KS_dollar, 208 KC(7), KS_6, KS_ampersand, 209 KC(8), KS_7, KS_slash, KS_braceleft, 210 KC(9), KS_8, KS_parenleft, KS_bracketleft, 211 KC(10), KS_9, KS_parenright, KS_bracketright, 212 KC(11), KS_0, KS_equal, KS_braceright, 213 KC(12), KS_plus, KS_question, 214 KC(13), KS_dead_acute, KS_dead_grave, KS_bar, 215 KC(26), KS_aring, 216 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde, 217 KC(39), KS_ae, 218 KC(40), KS_oslash, 219 KC(41), KS_onehalf, KS_paragraph, 220 KC(43), KS_apostrophe, KS_asterisk, 221 KC(51), KS_comma, KS_semicolon, 222 KC(52), KS_period, KS_colon, 223 KC(53), KS_minus, KS_underscore, 224 KC(86), KS_less, KS_greater, KS_backslash, 225 KC(184), KS_Mode_switch, KS_Multi_key, 226 }; 227 228 static const keysym_t pckbd_keydesc_dk_nodead[] = { 229 /* pos normal shifted altgr shift-altgr */ 230 KC(13), KS_apostrophe, KS_grave, KS_bar, 231 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde, 232 }; 233 234 static const keysym_t pckbd_keydesc_sv[] = { 235 /* pos normal shifted altgr shift-altgr */ 236 KC(12), KS_plus, KS_question, KS_backslash, 237 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde, 238 KC(39), KS_odiaeresis, 239 KC(40), KS_adiaeresis, 240 KC(41), KS_section, KS_onehalf, 241 KC(86), KS_less, KS_greater, KS_bar, 242 KC(184), KS_Mode_switch, KS_Multi_key, 243 }; 244 245 static const keysym_t pckbd_keydesc_sv_nodead[] = { 246 /* pos normal shifted altgr shift-altgr */ 247 KC(13), KS_apostrophe, KS_grave, KS_bar, 248 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde, 249 }; 250 251 static const keysym_t pckbd_keydesc_no[] = { 252 /* pos normal shifted altgr shift-altgr */ 253 KC(13), KS_backslash, KS_dead_grave, KS_dead_acute, 254 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde, 255 KC(39), KS_oslash, 256 KC(40), KS_ae, 257 KC(41), KS_bar, KS_paragraph, 258 KC(86), KS_less, KS_greater, 259 }; 260 261 static const keysym_t pckbd_keydesc_no_nodead[] = { 262 /* pos normal shifted altgr shift-altgr */ 263 KC(13), KS_backslash, KS_grave, KS_acute, 264 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde, 265 }; 266 267 static const keysym_t pckbd_keydesc_fr[] = { 268 /* pos normal shifted altgr shift-altgr */ 269 KC(2), KS_ampersand, KS_1, 270 KC(3), KS_eacute, KS_2, KS_asciitilde, 271 KC(4), KS_quotedbl, KS_3, KS_numbersign, 272 KC(5), KS_apostrophe, KS_4, KS_braceleft, 273 KC(6), KS_parenleft, KS_5, KS_bracketleft, 274 KC(7), KS_minus, KS_6, KS_bar, 275 KC(8), KS_egrave, KS_7, KS_grave, 276 KC(9), KS_underscore, KS_8, KS_backslash, 277 KC(10), KS_ccedilla, KS_9, KS_asciicircum, 278 KC(11), KS_agrave, KS_0, KS_at, 279 KC(12), KS_parenright, KS_degree, KS_bracketright, 280 KC(13), KS_equal, KS_plus, KS_braceright, 281 KC(16), KS_a, 282 KC(17), KS_z, 283 KC(26), KS_dead_circumflex, KS_dead_diaeresis, 284 KC(27), KS_dollar, KS_sterling, KS_currency, 285 KC(30), KS_q, 286 KC(39), KS_m, 287 KC(40), KS_ugrave, KS_percent, 288 KC(41), KS_twosuperior, 289 KC(43), KS_asterisk, KS_mu, 290 KC(44), KS_w, 291 KC(50), KS_comma, KS_question, 292 KC(51), KS_semicolon, KS_period, 293 KC(52), KS_colon, KS_slash, 294 KC(53), KS_exclam, KS_section, 295 KC(86), KS_less, KS_greater, 296 KC(184), KS_Mode_switch, KS_Multi_key, 297 }; 298 299 static const keysym_t pckbd_keydesc_it[] = { 300 /* pos normal shifted altgr shift-altgr */ 301 KC(3), KS_2, KS_quotedbl, KS_twosuperior, 302 KC(4), KS_3, KS_sterling, KS_threesuperior, 303 KC(6), KS_5, KS_percent, 304 KC(7), KS_6, KS_ampersand, 305 KC(8), KS_7, KS_slash, 306 KC(9), KS_8, KS_parenleft, 307 KC(10), KS_9, KS_parenright, 308 KC(11), KS_0, KS_equal, 309 KC(12), KS_apostrophe, KS_question, 310 KC(13), KS_igrave, KS_asciicircum, 311 KC(26), KS_egrave, KS_eacute, KS_braceleft, KS_bracketleft, 312 KC(27), KS_plus, KS_asterisk, KS_braceright, KS_bracketright, 313 KC(39), KS_ograve, KS_Ccedilla, KS_at, 314 KC(40), KS_agrave, KS_degree, KS_numbersign, 315 KC(41), KS_backslash, KS_bar, 316 KC(43), KS_ugrave, KS_section, 317 KC(51), KS_comma, KS_semicolon, 318 KC(52), KS_period, KS_colon, 319 KC(53), KS_minus, KS_underscore, 320 KC(86), KS_less, KS_greater, 321 KC(184), KS_Mode_switch, KS_Multi_key, 322 }; 323 324 static const keysym_t pckbd_keydesc_uk[] = { 325 /* pos normal shifted altgr shift-altgr */ 326 KC(2), KS_1, KS_exclam, KS_plusminus, KS_exclamdown, 327 KC(3), KS_2, KS_quotedbl, KS_twosuperior, KS_cent, 328 KC(4), KS_3, KS_sterling, KS_threesuperior, 329 KC(5), KS_4, KS_dollar, KS_acute, KS_currency, 330 KC(6), KS_5, KS_percent, KS_mu, KS_yen, 331 KC(7), KS_6, KS_asciicircum, KS_paragraph, 332 KC(8), KS_7, KS_ampersand, KS_periodcentered, KS_brokenbar, 333 KC(9), KS_8, KS_asterisk, KS_cedilla, KS_ordfeminine, 334 KC(10), KS_9, KS_parenleft, KS_onesuperior, KS_diaeresis, 335 KC(11), KS_0, KS_parenright, KS_masculine, KS_copyright, 336 KC(12), KS_minus, KS_underscore, KS_hyphen, KS_ssharp, 337 KC(13), KS_equal, KS_plus, KS_onehalf, KS_guillemotleft, 338 KC(40), KS_apostrophe, KS_at, KS_section, KS_Agrave, 339 KC(41), KS_grave, KS_grave, KS_agrave, KS_agrave, 340 KC(43), KS_numbersign, KS_asciitilde, KS_sterling, KS_thorn, 341 KC(86), KS_backslash, KS_bar, KS_Udiaeresis, 342 }; 343 344 static const keysym_t pckbd_keydesc_jp[] = { 345 /* pos normal shifted altgr shift-altgr */ 346 KC(3), KS_2, KS_quotedbl, 347 KC(7), KS_6, KS_ampersand, 348 KC(8), KS_7, KS_apostrophe, 349 KC(9), KS_8, KS_parenleft, 350 KC(10), KS_9, KS_parenright, 351 KC(11), KS_0, 352 KC(12), KS_minus, KS_equal, 353 KC(13), KS_asciicircum, KS_asciitilde, 354 KC(26), KS_at, KS_grave, 355 KC(27), KS_bracketleft, KS_braceleft, 356 KC(39), KS_semicolon, KS_plus, 357 KC(40), KS_colon, KS_asterisk, 358 KC(41), KS_Zenkaku_Hankaku, /* replace grave/tilde */ 359 KC(43), KS_bracketright, KS_braceright, 360 KC(112), KS_Hiragana_Katakana, 361 KC(115), KS_backslash, KS_underscore, 362 KC(121), KS_Henkan, 363 KC(123), KS_Muhenkan, 364 KC(125), KS_backslash, KS_bar, 365 }; 366 367 static const keysym_t pckbd_keydesc_es[] = { 368 /* pos normal shifted altgr shift-altgr */ 369 KC(2), KS_1, KS_exclam, KS_bar, 370 KC(3), KS_2, KS_quotedbl, KS_at, 371 KC(4), KS_3, KS_periodcentered, KS_numbersign, 372 KC(5), KS_4, KS_dollar, KS_asciitilde, 373 KC(7), KS_6, KS_ampersand, 374 KC(8), KS_7, KS_slash, 375 KC(9), KS_8, KS_parenleft, 376 KC(10), KS_9, KS_parenright, 377 KC(11), KS_0, KS_equal, 378 KC(12), KS_apostrophe, KS_question, 379 KC(13), KS_exclamdown, KS_questiondown, 380 KC(26), KS_dead_grave, KS_dead_circumflex, KS_bracketleft, 381 KC(27), KS_plus, KS_asterisk, KS_bracketright, 382 KC(39), KS_ntilde, 383 KC(40), KS_dead_acute, KS_dead_diaeresis, KS_braceleft, 384 KC(41), KS_degree, KS_ordfeminine, KS_backslash, 385 KC(43), KS_ccedilla, KS_Ccedilla, KS_braceright, 386 KC(51), KS_comma, KS_semicolon, 387 KC(52), KS_period, KS_colon, 388 KC(53), KS_minus, KS_underscore, 389 KC(86), KS_less, KS_greater, 390 KC(184), KS_Mode_switch, KS_Multi_key, 391 }; 392 393 static const keysym_t pckbd_keydesc_lt[] = { 394 /* pos normal shifted altgr shift-altgr */ 395 KC(2), KS_exclam, KS_1, KS_at, 396 KC(3), KS_minus, KS_2, KS_underscore, 397 KC(4), KS_slash, KS_3, KS_numbersign, 398 KC(5), KS_semicolon, KS_4, KS_dollar, 399 KC(6), KS_colon, KS_5, KS_paragraph, 400 KC(7), KS_comma, KS_6, KS_asciicircum, 401 KC(8), KS_period, KS_7, KS_ampersand, 402 KC(9), KS_equal, KS_8, KS_asterisk, 403 KC(10), KS_bracketleft, KS_9, KS_parenleft, 404 KC(11), KS_bracketright, KS_0, KS_parenright, 405 KC(12), KS_question, KS_plus, KS_apostrophe, 406 KC(13), KS_x, KS_X, KS_percent, 407 KC(16), KS_L7_aogonek, KS_L7_Aogonek, 408 KC(17), KS_L7_zcaron, KS_L7_Zcaron, 409 KC(18), KS_e, KS_E, KS_currency, 410 KC(26), KS_L7_iogonek, KS_L7_Iogonek, KS_braceleft, 411 KC(27), KS_w, KS_W, KS_braceright, 412 KC(33), KS_L7_scaron, KS_L7_Scaron, 413 KC(39), KS_L7_uogonek, KS_L7_Uogonek, 414 KC(40), KS_L7_edot, KS_L7_Edot, KS_quotedbl, 415 KC(41), KS_grave, KS_asciitilde, 416 KC(43), KS_q, KS_Q, KS_bar, 417 KC(45), KS_L7_umacron, KS_L7_Umacron, 418 KC(51), KS_L7_ccaron, KS_L7_Ccaron, KS_L7_dbllow9quot, 419 KC(52), KS_f, KS_F, KS_L7_leftdblquot, 420 KC(53), KS_L7_eogonek, KS_L7_Eogonek, KS_backslash, 421 KC(57), KS_space, KS_space, KS_nobreakspace, 422 KC(184), KS_Mode_switch, KS_Multi_key, 423 }; 424 425 static const keysym_t pckbd_keydesc_be[] = { 426 /* pos normal shifted altgr shift-altgr */ 427 KC(2), KS_ampersand, KS_1, KS_bar, 428 KC(3), KS_eacute, KS_2, KS_at, 429 KC(4), KS_quotedbl, KS_3, KS_numbersign, 430 KC(5), KS_apostrophe, KS_4, 431 KC(6), KS_parenleft, KS_5, 432 KC(7), KS_section, KS_6, KS_asciicircum, 433 KC(8), KS_egrave, KS_7, 434 KC(9), KS_exclam, KS_8, 435 KC(10), KS_ccedilla, KS_9, KS_braceleft, 436 KC(11), KS_agrave, KS_0, KS_braceright, 437 KC(12), KS_parenright, KS_degree, 438 KC(13), KS_minus, KS_underscore, 439 KC(16), KS_a, 440 KC(17), KS_z, 441 KC(26), KS_dead_circumflex, KS_dead_diaeresis, KS_bracketleft, 442 KC(27), KS_dollar, KS_asterisk, KS_bracketright, 443 KC(30), KS_q, 444 KC(39), KS_m, 445 KC(40), KS_ugrave, KS_percent, KS_acute, 446 KC(41), KS_twosuperior, KS_threesuperior, 447 KC(43), KS_mu, KS_sterling, KS_grave, 448 KC(44), KS_w, 449 KC(50), KS_comma, KS_question, 450 KC(51), KS_semicolon, KS_period, 451 KC(52), KS_colon, KS_slash, 452 KC(53), KS_equal, KS_plus, KS_asciitilde, 453 KC(86), KS_less, KS_greater, KS_backslash, 454 KC(184), KS_Mode_switch, KS_Multi_key, 455 }; 456 457 static const keysym_t pckbd_keydesc_us_declk[] = { 458 /* pos normal shifted altgr shift-altgr */ 459 KC(1), KS_grave, KS_asciitilde, /* replace escape */ 460 KC(41), KS_less, KS_greater, /* replace grave/tilde */ 461 KC(143), KS_Multi_key, /* left compose */ 462 KC(157), KS_Multi_key, /* right compose, replace right control */ 463 KC(87), KS_Cmd_Debugger, KS_Escape, /* replace F11 */ 464 KC(189), KS_f13, 465 KC(190), KS_f14, 466 KC(191), KS_Help, 467 KC(192), KS_Execute, 468 KC(193), KS_f17, 469 KC(183), KS_f18, 470 KC(70), KS_f19, /* replace scroll lock */ 471 KC(127), KS_f20, /* replace break */ 472 KC(69), KS_KP_F1, /* replace num lock */ 473 KC(181), KS_KP_F2, /* replace divide */ 474 KC(55), KS_KP_F3, /* replace multiply */ 475 KC(74), KS_KP_F4, /* replace subtract */ 476 477 /* keypad is numbers only - no num lock */ 478 KC(71), KS_KP_7, 479 KC(72), KS_KP_8, 480 KC(73), KS_KP_9, 481 KC(75), KS_KP_4, 482 KC(76), KS_KP_5, 483 KC(77), KS_KP_6, 484 KC(79), KS_KP_1, 485 KC(80), KS_KP_2, 486 KC(81), KS_KP_3, 487 KC(82), KS_KP_0, 488 KC(83), KS_KP_Decimal, 489 490 KC(206), KS_KP_Subtract, 491 KC(78), KS_KP_Separator, /* replace add */ 492 KC(199), KS_Find, /* replace home */ 493 KC(207), KS_Select, /* replace end */ 494 }; 495 496 static const keysym_t pckbd_keydesc_us_dvorak[] = { 497 /* pos command normal shifted */ 498 KC(12), KS_bracketleft, KS_braceleft, 499 KC(13), KS_bracketright, KS_braceright, 500 KC(16), KS_apostrophe, KS_quotedbl, 501 KC(17), KS_comma, KS_less, 502 KC(18), KS_period, KS_greater, 503 KC(19), KS_p, 504 KC(20), KS_y, 505 KC(21), KS_f, 506 KC(22), KS_g, 507 KC(23), KS_c, 508 KC(24), KS_r, 509 KC(25), KS_l, 510 KC(26), KS_slash, KS_question, 511 KC(27), KS_equal, KS_plus, 512 KC(31), KS_o, 513 KC(32), KS_e, 514 KC(33), KS_u, 515 KC(34), KS_i, 516 KC(35), KS_d, 517 KC(36), KS_h, 518 KC(37), KS_t, 519 KC(38), KS_n, 520 KC(39), KS_s, 521 KC(40), KS_minus, KS_underscore, 522 KC(44), KS_semicolon, KS_colon, 523 KC(45), KS_q, 524 KC(46), KS_j, 525 KC(47), KS_k, 526 KC(48), KS_x, 527 KC(49), KS_b, 528 KC(51), KS_w, 529 KC(52), KS_v, 530 KC(53), KS_z, 531 }; 532 533 static const keysym_t pckbd_keydesc_swapctrlcaps[] = { 534 /* pos command normal shifted */ 535 KC(29), KS_Caps_Lock, 536 KC(58), KS_Cmd1, KS_Control_L, 537 }; 538 539 static const keysym_t pckbd_keydesc_iopener[] = { 540 /* pos command normal shifted */ 541 KC(59), KS_Cmd_Debugger, KS_Escape, 542 KC(60), KS_Cmd_Screen0, KS_f1, 543 KC(61), KS_Cmd_Screen1, KS_f2, 544 KC(62), KS_Cmd_Screen2, KS_f3, 545 KC(63), KS_Cmd_Screen3, KS_f4, 546 KC(64), KS_Cmd_Screen4, KS_f5, 547 KC(65), KS_Cmd_Screen5, KS_f6, 548 KC(66), KS_Cmd_Screen6, KS_f7, 549 KC(67), KS_Cmd_Screen7, KS_f8, 550 KC(68), KS_Cmd_Screen8, KS_f9, 551 KC(87), KS_Cmd_Screen9, KS_f10, 552 KC(88), KS_f11, 553 }; 554 555 static const keysym_t pckbd_keydesc_ru[] = { 556 /* pos normal shifted altgr shift-altgr */ 557 KC(7), KS_6, KS_asciicircum, KS_6, KS_comma, 558 KC(8), KS_7, KS_ampersand, KS_7, KS_period, 559 KC(16), KS_q, KS_Q, KS_Cyrillic_ishort, KS_Cyrillic_ISHORT, 560 KC(17), KS_w, KS_W, KS_Cyrillic_tse, KS_Cyrillic_TSE, 561 KC(18), KS_e, KS_E, KS_Cyrillic_u, KS_Cyrillic_U, 562 KC(19), KS_r, KS_R, KS_Cyrillic_ka, KS_Cyrillic_KA, 563 KC(20), KS_t, KS_T, KS_Cyrillic_ie, KS_Cyrillic_IE, 564 KC(21), KS_y, KS_Y, KS_Cyrillic_en, KS_Cyrillic_EN, 565 KC(22), KS_u, KS_U, KS_Cyrillic_ge, KS_Cyrillic_GE, 566 KC(23), KS_i, KS_I, KS_Cyrillic_sha, KS_Cyrillic_SHA, 567 KC(24), KS_o, KS_O, KS_Cyrillic_scha, KS_Cyrillic_SCHA, 568 KC(25), KS_p, KS_P, KS_Cyrillic_ze, KS_Cyrillic_ZE, 569 KC(26), KS_bracketleft, KS_braceleft, KS_Cyrillic_ha, KS_Cyrillic_HA, 570 KC(27), KS_bracketright, KS_braceright, KS_Cyrillic_hsighn, KS_Cyrillic_HSIGHN, 571 KC(30), KS_a, KS_A, KS_Cyrillic_ef, KS_Cyrillic_EF, 572 KC(31), KS_s, KS_S, KS_Cyrillic_yeru, KS_Cyrillic_YERU, 573 KC(32), KS_d, KS_D, KS_Cyrillic_ve, KS_Cyrillic_VE, 574 KC(33), KS_f, KS_F, KS_Cyrillic_a, KS_Cyrillic_A, 575 KC(34), KS_g, KS_G, KS_Cyrillic_pe, KS_Cyrillic_PE, 576 KC(35), KS_h, KS_H, KS_Cyrillic_er, KS_Cyrillic_ER, 577 KC(36), KS_j, KS_J, KS_Cyrillic_o, KS_Cyrillic_O, 578 KC(37), KS_k, KS_K, KS_Cyrillic_el, KS_Cyrillic_EL, 579 KC(38), KS_l, KS_L, KS_Cyrillic_de, KS_Cyrillic_DE, 580 KC(39), KS_semicolon, KS_colon, KS_Cyrillic_zhe, KS_Cyrillic_ZHE, 581 KC(40), KS_apostrophe, KS_quotedbl, KS_Cyrillic_e, KS_Cyrillic_E, 582 KC(44), KS_z, KS_Z, KS_Cyrillic_ya, KS_Cyrillic_YA, 583 KC(45), KS_x, KS_X, KS_Cyrillic_che, KS_Cyrillic_CHE, 584 KC(46), KS_c, KS_C, KS_Cyrillic_es, KS_Cyrillic_ES, 585 KC(47), KS_v, KS_V, KS_Cyrillic_em, KS_Cyrillic_EM, 586 KC(48), KS_b, KS_B, KS_Cyrillic_i, KS_Cyrillic_I, 587 KC(49), KS_n, KS_N, KS_Cyrillic_te, KS_Cyrillic_TE, 588 KC(50), KS_m, KS_M, KS_Cyrillic_ssighn, KS_Cyrillic_SSIGHN, 589 KC(51), KS_comma, KS_less, KS_Cyrillic_be, KS_Cyrillic_BE, 590 KC(52), KS_period, KS_greater, KS_Cyrillic_yu, KS_Cyrillic_YU, 591 KC(53), KS_slash, KS_question, KS_Cyrillic_yo, KS_Cyrillic_YO, 592 KC(184), KS_Mode_switch, KS_Multi_key, 593 }; 594 595 static const keysym_t pckbd_keydesc_ua[] = { 596 /* pos normal shifted altgr shift-altgr */ 597 KC(7), KS_6, KS_asciicircum, KS_6, KS_comma, 598 KC(8), KS_7, KS_ampersand, KS_7, KS_period, 599 KC(12), KS_minus, KS_underscore, KS_Cyrillic_iukr, KS_Cyrillic_IUKR, 600 KC(13), KS_equal, KS_plus, KS_Cyrillic_yeukr, KS_Cyrillic_YEUKR, 601 KC(16), KS_q, KS_Q, KS_Cyrillic_ishort, KS_Cyrillic_ISHORT, 602 KC(17), KS_w, KS_W, KS_Cyrillic_tse, KS_Cyrillic_TSE, 603 KC(18), KS_e, KS_E, KS_Cyrillic_u, KS_Cyrillic_U, 604 KC(19), KS_r, KS_R, KS_Cyrillic_ka, KS_Cyrillic_KA, 605 KC(20), KS_t, KS_T, KS_Cyrillic_ie, KS_Cyrillic_IE, 606 KC(21), KS_y, KS_Y, KS_Cyrillic_en, KS_Cyrillic_EN, 607 KC(22), KS_u, KS_U, KS_Cyrillic_ge, KS_Cyrillic_GE, 608 KC(23), KS_i, KS_I, KS_Cyrillic_sha, KS_Cyrillic_SHA, 609 KC(24), KS_o, KS_O, KS_Cyrillic_scha, KS_Cyrillic_SCHA, 610 KC(25), KS_p, KS_P, KS_Cyrillic_ze, KS_Cyrillic_ZE, 611 KC(26), KS_bracketleft, KS_braceleft, KS_Cyrillic_ha, KS_Cyrillic_HA, 612 KC(27), KS_bracketright, KS_braceright, KS_Cyrillic_hsighn, KS_Cyrillic_HSIGHN, 613 KC(30), KS_a, KS_A, KS_Cyrillic_ef, KS_Cyrillic_EF, 614 KC(31), KS_s, KS_S, KS_Cyrillic_yeru, KS_Cyrillic_YERU, 615 KC(32), KS_d, KS_D, KS_Cyrillic_ve, KS_Cyrillic_VE, 616 KC(33), KS_f, KS_F, KS_Cyrillic_a, KS_Cyrillic_A, 617 KC(34), KS_g, KS_G, KS_Cyrillic_pe, KS_Cyrillic_PE, 618 KC(35), KS_h, KS_H, KS_Cyrillic_er, KS_Cyrillic_ER, 619 KC(36), KS_j, KS_J, KS_Cyrillic_o, KS_Cyrillic_O, 620 KC(37), KS_k, KS_K, KS_Cyrillic_el, KS_Cyrillic_EL, 621 KC(38), KS_l, KS_L, KS_Cyrillic_de, KS_Cyrillic_DE, 622 KC(39), KS_semicolon, KS_colon, KS_Cyrillic_zhe, KS_Cyrillic_ZHE, 623 KC(40), KS_apostrophe, KS_quotedbl, KS_Cyrillic_e, KS_Cyrillic_E, 624 KC(41), KS_grave, KS_asciitilde, KS_Cyrillic_gheukr, KS_Cyrillic_GHEUKR, 625 KC(43), KS_backslash, KS_bar, KS_Cyrillic_yi, KS_Cyrillic_YI, 626 KC(44), KS_z, KS_Z, KS_Cyrillic_ya, KS_Cyrillic_YA, 627 KC(45), KS_x, KS_X, KS_Cyrillic_che, KS_Cyrillic_CHE, 628 KC(46), KS_c, KS_C, KS_Cyrillic_es, KS_Cyrillic_ES, 629 KC(47), KS_v, KS_V, KS_Cyrillic_em, KS_Cyrillic_EM, 630 KC(48), KS_b, KS_B, KS_Cyrillic_i, KS_Cyrillic_I, 631 KC(49), KS_n, KS_N, KS_Cyrillic_te, KS_Cyrillic_TE, 632 KC(50), KS_m, KS_M, KS_Cyrillic_ssighn, KS_Cyrillic_SSIGHN, 633 KC(51), KS_comma, KS_less, KS_Cyrillic_be, KS_Cyrillic_BE, 634 KC(52), KS_period, KS_greater, KS_Cyrillic_yu, KS_Cyrillic_YU, 635 KC(53), KS_slash, KS_question, KS_Cyrillic_yo, KS_Cyrillic_YO, 636 KC(184), KS_Mode_switch, KS_Multi_key, 637 }; 638 639 static const keysym_t pckbd_keydesc_sg[] = { 640 /* pos normal shifted altgr shift-altgr */ 641 KC(2), KS_1, KS_plus, KS_bar, 642 KC(3), KS_2, KS_quotedbl, KS_at, 643 KC(4), KS_3, KS_asterisk, KS_numbersign, 644 KC(5), KS_4, KS_ccedilla, 645 KC(7), KS_6, KS_ampersand, KS_notsign, 646 KC(8), KS_7, KS_slash, KS_brokenbar, 647 KC(9), KS_8, KS_parenleft, KS_cent, 648 KC(10), KS_9, KS_parenright, 649 KC(11), KS_0, KS_equal, 650 KC(12), KS_apostrophe, KS_question, KS_dead_acute, 651 KC(13), KS_dead_circumflex,KS_dead_grave, KS_dead_tilde, 652 KC(18), KS_e, KS_E, KS_currency, 653 KC(21), KS_z, 654 KC(26), KS_udiaeresis, KS_egrave, KS_bracketleft, 655 KC(27), KS_dead_diaeresis, KS_exclam, KS_bracketright, 656 KC(39), KS_odiaeresis, KS_eacute, 657 KC(40), KS_adiaeresis, KS_agrave, KS_braceleft, 658 KC(41), KS_section, KS_degree, KS_dead_abovering, 659 KC(43), KS_dollar, KS_sterling, KS_braceright, 660 KC(44), KS_y, 661 KC(51), KS_comma, KS_semicolon, 662 KC(52), KS_period, KS_colon, 663 KC(53), KS_minus, KS_underscore, 664 KC(86), KS_less, KS_greater, KS_backslash, 665 KC(184), KS_Mode_switch, KS_Multi_key, 666 }; 667 668 static const keysym_t pckbd_keydesc_sg_nodead[] = { 669 /* pos normal shifted altgr shift-altgr */ 670 KC(12), KS_apostrophe, KS_question, KS_acute, 671 KC(13), KS_asciicircum, KS_grave, KS_asciitilde, 672 KC(27), KS_diaeresis, KS_exclam, KS_bracketright 673 }; 674 675 static const keysym_t pckbd_keydesc_sf[] = { 676 /* pos normal shifted altgr shift-altgr */ 677 KC(26), KS_egrave, KS_udiaeresis, KS_bracketleft, 678 KC(39), KS_eacute, KS_odiaeresis, 679 KC(40), KS_agrave, KS_adiaeresis, KS_braceleft 680 }; 681 682 static const keysym_t pckbd_keydesc_pt[] = { 683 /* pos normal shifted altgr shift-altgr */ 684 KC(3), KS_2, KS_quotedbl, KS_at, 685 KC(4), KS_3, KS_numbersign, KS_sterling, 686 KC(7), KS_6, KS_ampersand, 687 KC(8), KS_7, KS_slash, KS_braceleft, 688 KC(9), KS_8, KS_parenleft, KS_bracketleft, 689 KC(10), KS_9, KS_parenright, KS_bracketright, 690 KC(11), KS_0, KS_equal, KS_braceright, 691 KC(12), KS_apostrophe, KS_question, 692 KC(13), KS_less, KS_greater, 693 KC(26), KS_plus, KS_asterisk, 694 KC(27), KS_dead_acute, KS_dead_grave, 695 KC(39), KS_ccedilla, KS_Ccedilla, 696 KC(40), KS_masculine, KS_ordfeminine, 697 KC(41), KS_backslash, KS_bar, 698 KC(43), KS_dead_tilde, KS_dead_circumflex, 699 KC(51), KS_comma, KS_semicolon, 700 KC(52), KS_period, KS_colon, 701 KC(53), KS_minus, KS_underscore, 702 KC(86), KS_less, KS_greater, 703 KC(184), KS_Mode_switch, KS_Multi_key, 704 }; 705 706 static const keysym_t pckbd_keydesc_la[] = { 707 /* pos normal shifted altgr shift-altgr */ 708 KC(2), KS_1, KS_exclam, 709 KC(3), KS_2, KS_quotedbl, 710 KC(4), KS_3, KS_numbersign, 711 KC(7), KS_6, KS_ampersand, 712 KC(8), KS_7, KS_slash, 713 KC(9), KS_8, KS_parenleft, 714 KC(10), KS_9, KS_parenright, 715 KC(11), KS_0, KS_equal, 716 KC(12), KS_apostrophe, KS_question, KS_backslash, 717 KC(13), KS_questiondown, KS_exclamdown, 718 KC(16), KS_q, KS_Q, KS_at, 719 KC(26), KS_dead_acute, KS_dead_diaeresis, 720 KC(27), KS_plus, KS_asterisk, KS_asciitilde, 721 KC(39), KS_ntilde, 722 KC(40), KS_braceleft, KS_bracketleft, KS_dead_circumflex, 723 KC(41), KS_bar, KS_degree, KS_notsign, 724 KC(43), KS_braceright, KS_bracketright,KS_dead_grave, 725 KC(51), KS_comma, KS_semicolon, 726 KC(52), KS_period, KS_colon, 727 KC(53), KS_minus, KS_underscore, 728 KC(86), KS_less, KS_greater, 729 KC(184), KS_Mode_switch, KS_Multi_key, 730 }; 731 732 static const keysym_t pckbd_keydesc_br[] = { 733 /* pos normal shifted altgr shift-altgr */ 734 KC(2), KS_1, KS_exclam, KS_onesuperior, 735 KC(3), KS_2, KS_at, KS_twosuperior, 736 KC(4), KS_3, KS_numbersign, KS_threesuperior, 737 KC(5), KS_4, KS_dollar, KS_sterling, 738 KC(6), KS_5, KS_percent, KS_cent, 739 KC(7), KS_6, KS_dead_diaeresis, KS_notsign, 740 KC(13), KS_equal, KS_plus, KS_section, 741 KC(26), KS_dead_acute, KS_dead_grave, 742 KC(27), KS_bracketleft, KS_braceleft, KS_ordfeminine, 743 KC(39), KS_ccedilla, KS_Ccedilla, 744 KC(40), KS_dead_tilde, KS_dead_circumflex, 745 KC(41), KS_apostrophe, KS_quotedbl, 746 KC(43), KS_bracketright, KS_braceright, KS_masculine, 747 KC(53), KS_semicolon, KS_colon, 748 KC(83), KS_KP_Delete, KS_KP_Decimal, 749 KC(86), KS_backslash, KS_bar, 750 KC(115), KS_slash, KS_question, KS_degree, 751 }; 752 753 static const keysym_t pckbd_keydesc_tr[] = { 754 /* pos normal shifted altgr shift-altgr */ 755 KC(3), KS_2, KS_apostrophe, KS_sterling, 756 KC(4), KS_3, KS_asciicircum, KS_numbersign, 757 KC(5), KS_4, KS_plus, KS_dollar, 758 KC(6), KS_5, KS_percent, KS_onehalf, 759 KC(7), KS_6, KS_ampersand, 760 KC(8), KS_7, KS_slash, KS_braceleft, 761 KC(9), KS_8, KS_parenleft, KS_bracketleft, 762 KC(10), KS_9, KS_parenright, KS_bracketright, 763 KC(11), KS_0, KS_equal, KS_braceright, 764 KC(12), KS_asterisk, KS_question, KS_backslash, 765 KC(13), KS_minus, KS_underscore, 766 KC(16), KS_q, KS_Q, KS_at, 767 KC(23), KS_L5_idotless, KS_I, 768 KC(26), KS_L5_gbreve, KS_L5_Gbreve, KS_dead_diaeresis, 769 KC(27), KS_udiaeresis, KS_Udiaeresis, KS_asciitilde, 770 KC(39), KS_L5_scedilla, KS_L5_Scedilla, KS_dead_acute, 771 KC(40), KS_i, KS_L5_Idotabove, 772 KC(41), KS_quotedbl, KS_eacute, 773 KC(43), KS_comma, KS_semicolon, KS_dead_grave, 774 KC(51), KS_odiaeresis, KS_Odiaeresis, 775 KC(52), KS_ccedilla, KS_Ccedilla, 776 KC(53), KS_period, KS_colon, 777 KC(86), KS_less, KS_greater, KS_bar, 778 KC(184), KS_Mode_switch, KS_Multi_key, 779 }; 780 781 static const keysym_t pckbd_keydesc_tr_nodead[] = { 782 /* pos normal shifted altgr shift-altgr */ 783 KC(26), KS_L5_gbreve, KS_L5_Gbreve, 784 KC(39), KS_L5_scedilla, KS_L5_Scedilla, KS_apostrophe, 785 KC(43), KS_comma, KS_semicolon, KS_grave, 786 }; 787 788 static const keysym_t pckbd_keydesc_pl[] = { 789 /* pos normal shifted altgr shift-altgr */ 790 KC(18), KS_e, KS_E, KS_L2_eogonek, KS_L2_Eogonek, 791 KC(24), KS_o, KS_O, KS_oacute, KS_Oacute, 792 KC(30), KS_a, KS_A, KS_L2_aogonek, KS_L2_Aogonek, 793 KC(31), KS_s, KS_S, KS_L2_sacute, KS_L2_Sacute, 794 KC(38), KS_l, KS_L, KS_L2_lstroke, KS_L2_Lstroke, 795 KC(44), KS_z, KS_Z, KS_L2_zdotabove,KS_L2_Zdotabove, 796 KC(45), KS_x, KS_X, KS_L2_zacute, KS_L2_Zacute, 797 KC(46), KS_c, KS_C, KS_L2_cacute, KS_L2_Cacute, 798 KC(49), KS_n, KS_N, KS_L2_nacute, KS_L2_Nacute, 799 KC(184), KS_Mode_switch, KS_Multi_key, 800 }; 801 802 static const keysym_t pckbd_keydesc_hu[] = { 803 /* pos normal shifted altgr shift-altgr */ 804 KC(2), KS_1, KS_apostrophe, KS_asciitilde, 805 KC(3), KS_2, KS_quotedbl, 806 KC(4), KS_3, KS_plus, KS_asciicircum, 807 KC(5), KS_4, KS_exclam, 808 KC(6), KS_5, KS_percent, 809 KC(7), KS_6, KS_slash, 810 KC(8), KS_7, KS_equal,KS_grave, 811 KC(9), KS_8, KS_parenleft, 812 KC(10), KS_9, KS_parenright, KS_acute, 813 KC(11), KS_odiaeresis, KS_Odiaeresis, 814 KC(12), KS_udiaeresis, KS_Udiaeresis, 815 KC(13), KS_oacute, KS_Oacute, 816 KC(16), KS_q, KS_Q, KS_backslash, 817 KC(17), KS_w, KS_W,KS_bar, 818 KC(21), KS_z, KS_Z, 819 KC(23), KS_i, KS_I, KS_iacute, 820 KC(26), KS_odoubleacute, KS_Odoubleacute, KS_division, 821 KC(27), KS_uacute, KS_Uacute, KS_multiply, 822 KC(33), KS_f, KS_F, KS_bracketleft, 823 KC(34), KS_g, KS_G, KS_bracketright, 824 KC(36), KS_j, KS_J, KS_iacute, 825 KC(39), KS_eacute, KS_Eacute, KS_dollar, 826 KC(40), KS_aacute, KS_Aacute, KS_ssharp, 827 KC(41), KS_0, KS_section, 828 KC(43), KS_udoubleacute, KS_Udoubleacute, KS_currency, 829 KC(44), KS_y, KS_Y, KS_greater, 830 KC(45), KS_x, KS_X, KS_numbersign, 831 KC(46), KS_c, KS_C, KS_ampersand, 832 KC(47), KS_v, KS_V, KS_at, 833 KC(48), KS_b, KS_B, KS_braceleft, 834 KC(49), KS_n, KS_N, KS_braceright, 835 KC(51), KS_comma, KS_question, KS_semicolon, 836 KC(52), KS_period, KS_colon, 837 KC(53), KS_minus, KS_underscore, KS_asterisk, 838 KC(86), KS_iacute, KS_Iacute, KS_less, 839 KC(184), KS_Mode_switch, KS_Multi_key, 840 }; 841 842 static const keysym_t pckbd_keydesc_si[]= 843 { 844 /* pos normal shifted altgr shift-altgr */ 845 KC(2), KS_1, KS_exclam, KS_asciitilde, 846 KC(3), KS_2, KS_quotedbl, KS_L2_caron, 847 KC(4), KS_3, KS_numbersign, KS_asciicircum, 848 KC(5), KS_4, KS_dollar, KS_L2_breve, 849 KC(6), KS_5, KS_percent, KS_degree, 850 KC(7), KS_6, KS_ampersand, KS_L2_ogonek, 851 KC(8), KS_7, KS_slash, KS_grave, 852 KC(9), KS_8, KS_parenleft, KS_L2_dotabove, 853 KC(10), KS_9, KS_parenright, KS_acute, 854 KC(11), KS_0, KS_equal, KS_L2_dblacute, 855 KC(12), KS_apostrophe, KS_question, KS_diaeresis, 856 KC(13), KS_plus, KS_asterisk, KS_cedilla, 857 KC(16), KS_q, KS_Q, KS_backslash, 858 KC(17), KS_w, KS_W, KS_bar, 859 KC(21), KS_z, KS_Z, 860 KC(26), KS_L2_scaron, KS_L2_Scaron, KS_division, 861 KC(27), KS_L2_dstroke, KS_L2_Dstroke, KS_multiply, 862 KC(33), KS_f, KS_F, KS_bracketleft, 863 KC(34), KS_g, KS_G, KS_bracketright, 864 KC(37), KS_k, KS_K, KS_L2_lstroke, 865 KC(38), KS_l, KS_L, KS_L2_Lstroke, 866 KC(39), KS_L2_ccaron, KS_L2_Ccaron, 867 KC(40), KS_L2_cacute, KS_L2_Cacute, KS_ssharp, 868 KC(41), KS_cedilla, KS_diaeresis, 869 KC(43), KS_L2_zcaron, KS_L2_Zcaron, KS_currency, 870 KC(44), KS_y, KS_Y, 871 KC(47), KS_v, KS_V, KS_at, 872 KC(48), KS_b, KS_B, KS_braceleft, 873 KC(49), KS_n, KS_N, KS_braceright, 874 KC(50), KS_m, KS_M, KS_section, 875 KC(51), KS_comma, KS_semicolon, 876 KC(52), KS_period, KS_colon, 877 KC(53), KS_minus, KS_underscore, 878 KC(86), KS_less, KS_greater, 879 KC(184), KS_Mode_switch, KS_Multi_key, 880 }; 881 882 static const keysym_t pckbd_keydesc_cf[] = { 883 /* pos normal shifted altgr shift-altgr */ 884 KC(2), KS_1, KS_exclam, KS_plusminus, 885 KC(3), KS_2, KS_quotedbl, KS_at, 886 KC(4), KS_3, KS_slash, KS_sterling, 887 KC(5), KS_4, KS_dollar, KS_cent, 888 KC(6), KS_5, KS_percent, KS_diaeresis, 889 KC(7), KS_6, KS_question, KS_macron, 890 KC(8), KS_7, KS_ampersand, KS_brokenbar, 891 KC(9), KS_8, KS_asterisk, KS_twosuperior, 892 KC(10), KS_9, KS_parenleft, KS_threesuperior, 893 KC(11), KS_0, KS_parenright, KS_onequarter, 894 KC(12), KS_minus, KS_underscore, KS_onehalf, 895 KC(13), KS_equal, KS_plus, KS_threequarters, 896 KC(24), KS_o, KS_O, KS_section, 897 KC(25), KS_p, KS_P, KS_paragraph, 898 KC(26), KS_dead_circumflex,KS_dead_circumflex, KS_bracketleft, 899 KC(27), KS_dead_cedilla,KS_dead_diaeresis, KS_bracketright, 900 KC(39), KS_semicolon, KS_colon, KS_asciitilde, 901 KC(40), KS_dead_grave, KS_dead_grave, KS_braceleft, 902 KC(41), KS_numbersign, KS_bar, KS_backslash, 903 KC(43), KS_less, KS_greater, KS_braceright, 904 KC(50), KS_m, KS_M, KS_mu, 905 KC(51), KS_comma, KS_apostrophe, KS_hyphen, 906 KC(52), KS_period, KS_period, 907 KC(53), KS_eacute, KS_Eacute, KS_dead_acute, 908 KC(86), KS_guillemotleft,KS_guillemotright, KS_degree, 909 KC(184), KS_Mode_switch,KS_Multi_key, 910 }; 911 912 static const keysym_t pckbd_keydesc_cf_nodead[] = { 913 /* pos normal shifted altgr shift-altgr */ 914 KC(26), KS_asciicircum,KS_asciicircum, KS_bracketleft, 915 KC(27), KS_cedilla, KS_diaeresis, KS_bracketright, 916 KC(40), KS_grave, KS_grave, KS_braceleft, 917 KC(53), KS_eacute, KS_Eacute, KS_acute, 918 }; 919 920 #endif /* SMALL_KERNEL */ 921 922 #define KBD_MAP(name, base, map) \ 923 { name, base, sizeof(map)/sizeof(keysym_t), map } 924 925 const struct wscons_keydesc pckbd_keydesctab[] = { 926 KBD_MAP(KB_US, 0, pckbd_keydesc_us), 927 #if !defined(SMALL_KERNEL) || !defined(__alpha__) 928 KBD_MAP(KB_DE, KB_US, pckbd_keydesc_de), 929 KBD_MAP(KB_DE | KB_NODEAD, KB_DE, pckbd_keydesc_de_nodead), 930 KBD_MAP(KB_FR, KB_US, pckbd_keydesc_fr), 931 KBD_MAP(KB_DK, KB_US, pckbd_keydesc_dk), 932 KBD_MAP(KB_DK | KB_NODEAD, KB_DK, pckbd_keydesc_dk_nodead), 933 KBD_MAP(KB_IT, KB_US, pckbd_keydesc_it), 934 KBD_MAP(KB_UK, KB_US, pckbd_keydesc_uk), 935 KBD_MAP(KB_JP, KB_US, pckbd_keydesc_jp), 936 KBD_MAP(KB_SV, KB_DK, pckbd_keydesc_sv), 937 KBD_MAP(KB_SV | KB_NODEAD, KB_SV, pckbd_keydesc_sv_nodead), 938 KBD_MAP(KB_NO, KB_DK, pckbd_keydesc_no), 939 KBD_MAP(KB_NO | KB_NODEAD, KB_NO, pckbd_keydesc_no_nodead), 940 KBD_MAP(KB_US | KB_DECLK, KB_US, pckbd_keydesc_us_declk), 941 KBD_MAP(KB_US | KB_DVORAK, KB_US, pckbd_keydesc_us_dvorak), 942 KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US, pckbd_keydesc_swapctrlcaps), 943 KBD_MAP(KB_US | KB_IOPENER, KB_US, pckbd_keydesc_iopener), 944 KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, pckbd_keydesc_swapctrlcaps), 945 KBD_MAP(KB_FR | KB_SWAPCTRLCAPS, KB_FR, pckbd_keydesc_swapctrlcaps), 946 KBD_MAP(KB_BE | KB_SWAPCTRLCAPS, KB_BE, pckbd_keydesc_swapctrlcaps), 947 KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS, KB_US | KB_DVORAK, 948 pckbd_keydesc_swapctrlcaps), 949 KBD_MAP(KB_US | KB_IOPENER | KB_SWAPCTRLCAPS, KB_US | KB_IOPENER, 950 pckbd_keydesc_swapctrlcaps), 951 KBD_MAP(KB_ES, KB_US, pckbd_keydesc_es), 952 KBD_MAP(KB_BE, KB_US, pckbd_keydesc_be), 953 KBD_MAP(KB_RU, KB_US, pckbd_keydesc_ru), 954 KBD_MAP(KB_UA, KB_US, pckbd_keydesc_ua), 955 KBD_MAP(KB_SG, KB_US, pckbd_keydesc_sg), 956 KBD_MAP(KB_SG | KB_NODEAD, KB_SG, pckbd_keydesc_sg_nodead), 957 KBD_MAP(KB_SF, KB_SG, pckbd_keydesc_sf), 958 KBD_MAP(KB_SF | KB_NODEAD, KB_SF, pckbd_keydesc_sg_nodead), 959 KBD_MAP(KB_PT, KB_US, pckbd_keydesc_pt), 960 KBD_MAP(KB_LT, KB_US, pckbd_keydesc_lt), 961 KBD_MAP(KB_LA, KB_US, pckbd_keydesc_la), 962 KBD_MAP(KB_BR, KB_US, pckbd_keydesc_br), 963 KBD_MAP(KB_TR, KB_US, pckbd_keydesc_tr), 964 KBD_MAP(KB_TR | KB_NODEAD, KB_TR, pckbd_keydesc_tr_nodead), 965 KBD_MAP(KB_PL, KB_US, pckbd_keydesc_pl), 966 KBD_MAP(KB_HU, KB_US, pckbd_keydesc_hu), 967 KBD_MAP(KB_SI, KB_US, pckbd_keydesc_si), 968 KBD_MAP(KB_CF, KB_US, pckbd_keydesc_cf), 969 KBD_MAP(KB_CF | KB_NODEAD, KB_CF, pckbd_keydesc_cf_nodead), 970 #endif /* SMALL_KERNEL */ 971 {0, 0, 0, 0} 972 }; 973 974 #undef KBD_MAP 975 #undef KC 976