1 1.10 martin /* $NetBSD: akbdmap.h,v 1.10 2008/04/28 20:23:27 martin Exp $ */ 2 1.2 scottr 3 1.2 scottr /*- 4 1.2 scottr * Copyright (c) 1997 The NetBSD Foundation, Inc. 5 1.2 scottr * All rights reserved. 6 1.2 scottr * 7 1.2 scottr * This code is derived from software contributed to The NetBSD Foundation 8 1.2 scottr * by Juergen Hannken-Illjes. 9 1.2 scottr * 10 1.2 scottr * Redistribution and use in source and binary forms, with or without 11 1.2 scottr * modification, are permitted provided that the following conditions 12 1.2 scottr * are met: 13 1.2 scottr * 1. Redistributions of source code must retain the above copyright 14 1.2 scottr * notice, this list of conditions and the following disclaimer. 15 1.2 scottr * 2. Redistributions in binary form must reproduce the above copyright 16 1.2 scottr * notice, this list of conditions and the following disclaimer in the 17 1.2 scottr * documentation and/or other materials provided with the distribution. 18 1.2 scottr * 19 1.2 scottr * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 1.2 scottr * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 1.2 scottr * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 1.2 scottr * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 1.2 scottr * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 1.2 scottr * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 1.2 scottr * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 1.2 scottr * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 1.2 scottr * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 1.2 scottr * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 1.2 scottr * POSSIBILITY OF SUCH DAMAGE. 30 1.2 scottr */ 31 1.2 scottr 32 1.2 scottr /* XXX This list is incomplete. */ 33 1.2 scottr 34 1.2 scottr #define KC(n) KS_KEYCODE(n) 35 1.2 scottr 36 1.2 scottr static const keysym_t akbd_keydesc_us[] = { 37 1.2 scottr /* pos command normal shifted */ 38 1.2 scottr KC(0), KS_a, 39 1.2 scottr KC(1), KS_s, 40 1.2 scottr KC(2), KS_d, 41 1.2 scottr KC(3), KS_f, 42 1.2 scottr KC(4), KS_h, 43 1.2 scottr KC(5), KS_g, 44 1.2 scottr KC(6), KS_z, 45 1.2 scottr KC(7), KS_x, 46 1.2 scottr KC(8), KS_c, 47 1.2 scottr KC(9), KS_v, 48 1.9 macallan KC(10), KS_paragraph, 49 1.2 scottr KC(11), KS_b, 50 1.2 scottr KC(12), KS_q, 51 1.2 scottr KC(13), KS_w, 52 1.2 scottr KC(14), KS_e, 53 1.2 scottr KC(15), KS_r, 54 1.2 scottr KC(16), KS_y, 55 1.2 scottr KC(17), KS_t, 56 1.2 scottr KC(18), KS_1, KS_exclam, 57 1.2 scottr KC(19), KS_2, KS_at, 58 1.2 scottr KC(20), KS_3, KS_numbersign, 59 1.2 scottr KC(21), KS_4, KS_dollar, 60 1.2 scottr KC(22), KS_6, KS_asciicircum, 61 1.2 scottr KC(23), KS_5, KS_percent, 62 1.2 scottr KC(24), KS_equal, KS_plus, 63 1.2 scottr KC(25), KS_9, KS_parenleft, 64 1.2 scottr KC(26), KS_7, KS_ampersand, 65 1.2 scottr KC(27), KS_minus, KS_underscore, 66 1.2 scottr KC(28), KS_8, KS_asterisk, 67 1.2 scottr KC(29), KS_0, KS_parenright, 68 1.2 scottr KC(30), KS_bracketright, KS_braceright, 69 1.2 scottr KC(31), KS_o, 70 1.2 scottr KC(32), KS_u, 71 1.2 scottr KC(33), KS_bracketleft, KS_braceleft, 72 1.2 scottr KC(34), KS_i, 73 1.2 scottr KC(35), KS_p, 74 1.2 scottr KC(36), KS_Return, 75 1.2 scottr KC(37), KS_l, 76 1.2 scottr KC(38), KS_j, 77 1.2 scottr KC(39), KS_apostrophe, KS_quotedbl, 78 1.2 scottr KC(40), KS_k, 79 1.2 scottr KC(41), KS_semicolon, KS_colon, 80 1.2 scottr KC(42), KS_backslash, KS_bar, 81 1.2 scottr KC(43), KS_comma, KS_less, 82 1.2 scottr KC(44), KS_slash, KS_question, 83 1.2 scottr KC(45), KS_n, 84 1.2 scottr KC(46), KS_m, 85 1.2 scottr KC(47), KS_period, KS_greater, 86 1.2 scottr KC(48), KS_Tab, 87 1.2 scottr KC(49), KS_space, 88 1.2 scottr KC(50), KS_grave, KS_asciitilde, 89 1.2 scottr KC(51), KS_Delete, 90 1.4 manu KC(52), KS_KP_Enter, /* Pretend this is alt-R ? */ 91 1.2 scottr KC(53), KS_Escape, 92 1.2 scottr KC(54), KS_Control_L, 93 1.2 scottr KC(55), KS_Cmd, /* Command */ 94 1.2 scottr KC(56), KS_Shift_L, 95 1.2 scottr KC(57), KS_Caps_Lock, 96 1.2 scottr KC(58), KS_Cmd1, /* Option */ 97 1.2 scottr KC(59), KS_Left, 98 1.2 scottr KC(60), KS_Right, 99 1.2 scottr KC(61), KS_Down, 100 1.2 scottr KC(62), KS_Up, 101 1.2 scottr 102 1.2 scottr KC(65), KS_KP_Decimal, 103 1.2 scottr KC(67), KS_KP_Multiply, 104 1.2 scottr KC(69), KS_KP_Add, 105 1.5 jmmv KC(71), KS_Num_Lock, 106 1.2 scottr KC(75), KS_KP_Divide, 107 1.2 scottr KC(76), KS_KP_Enter, 108 1.2 scottr KC(78), KS_KP_Subtract, 109 1.2 scottr 110 1.2 scottr KC(81), KS_KP_Equal, 111 1.5 jmmv KC(82), KS_KP_Insert, KS_KP_0, 112 1.5 jmmv KC(83), KS_KP_End, KS_KP_1, 113 1.5 jmmv KC(84), KS_KP_Down, KS_KP_2, 114 1.5 jmmv KC(85), KS_KP_Next, KS_KP_3, 115 1.5 jmmv KC(86), KS_KP_Left, KS_KP_4, 116 1.5 jmmv KC(87), KS_KP_Begin, KS_KP_5, 117 1.5 jmmv KC(88), KS_KP_Right, KS_KP_6, 118 1.5 jmmv KC(89), KS_KP_Home, KS_KP_7, 119 1.2 scottr 120 1.5 jmmv KC(91), KS_KP_Up, KS_KP_8, 121 1.5 jmmv KC(92), KS_KP_Prior, KS_KP_9, 122 1.2 scottr 123 1.5 jmmv KC(95), KS_KP_Delete, KS_KP_Decimal, 124 1.9 macallan KC(96), KS_Cmd_Screen4, KS_f5, 125 1.9 macallan KC(97), KS_Cmd_Screen5, KS_f6, 126 1.9 macallan KC(98), KS_Cmd_Screen6, KS_f7, 127 1.9 macallan KC(99), KS_Cmd_Screen2, KS_f3, 128 1.9 macallan KC(100),KS_Cmd_Screen7, KS_f8, 129 1.4 manu 130 1.9 macallan KC(101),KS_Cmd_Screen8, KS_f9, 131 1.4 manu 132 1.4 manu KC(103), KS_f11, 133 1.2 scottr 134 1.5 jmmv KC(105), KS_Print_Screen, 135 1.2 scottr KC(106), KS_KP_Enter, 136 1.5 jmmv KC(107), KS_Hold_Screen, 137 1.2 scottr 138 1.9 macallan KC(109),KS_Cmd_Screen9, KS_f10, 139 1.4 manu 140 1.4 manu KC(111), KS_f12, 141 1.4 manu 142 1.5 jmmv KC(113), KS_Pause, 143 1.5 jmmv KC(114), KS_Insert, 144 1.4 manu KC(115), KS_Home, 145 1.4 manu KC(116), KS_Prior, 146 1.9 macallan KC(117), KS_Delete, /* BackSpace */ 147 1.9 macallan KC(118),KS_Cmd_Screen3, KS_f4, 148 1.4 manu KC(119), KS_End, 149 1.9 macallan KC(120),KS_Cmd_Screen1, KS_f2, 150 1.4 manu KC(121), KS_Next, 151 1.9 macallan KC(122),KS_Cmd_Screen0, KS_f1, 152 1.4 manu 153 1.2 scottr KC(127), KS_Cmd_Debugger, 154 1.2 scottr }; 155 1.2 scottr 156 1.3 manu static const keysym_t akbd_keydesc_fr[] = { 157 1.3 manu /* pos normal shifted altgr shift-altgr */ 158 1.3 manu KC(0), KS_q, 159 1.4 manu KC(1), KS_s, KS_S, KS_Ograve, 160 1.4 manu KC(4), KS_h, KS_H, KS_Igrave, KS_Icircumflex, 161 1.4 manu KC(6), KS_w, KS_W, KS_less, KS_greater, 162 1.4 manu KC(8), KS_c, KS_C, KS_copyright, KS_cent, 163 1.3 manu KC(10), KS_at, KS_numbersign, 164 1.4 manu KC(11), KS_b, KS_B, KS_ssharp, 165 1.4 manu KC(12), KS_a, KS_A, KS_ae, KS_AE, 166 1.4 manu KC(13), KS_z, KS_Z, KS_Acircumflex, KS_Aring, 167 1.4 manu KC(14), KS_e, KS_E, KS_ecircumflex, KS_Ecircumflex, 168 1.4 manu KC(15), KS_r, KS_R, KS_registered, /* Euro */ 169 1.4 manu KC(16), KS_y, KS_Y, KS_Uacute, 170 1.4 manu KC(18), KS_ampersand, KS_1, KS_voidSymbol, KS_dead_acute, 171 1.4 manu KC(19), KS_eacute, KS_2, KS_ediaeresis, 172 1.4 manu KC(20), KS_quotedbl, KS_3, 173 1.4 manu KC(21), KS_apostrophe, KS_4, KS_braceleft, KS_bracketleft, 174 1.4 manu KC(22), KS_section, KS_6, KS_paragraph, 175 1.4 manu KC(23), KS_parenleft, KS_5, KS_braceleft, KS_bracketleft, 176 1.3 manu KC(24), KS_minus, KS_underscore, KS_braceright, 177 1.4 manu KC(25), KS_ccedilla, KS_9, KS_Ccedilla, KS_Agrave, 178 1.4 manu KC(26), KS_egrave, KS_7, KS_guillemotleft,KS_guillemotright, 179 1.4 manu KC(27), KS_parenright, KS_degree, KS_braceright, KS_bracketright, 180 1.4 manu KC(28), KS_exclam, KS_8, KS_exclamdown, KS_Ucircumflex, 181 1.4 manu KC(29), KS_agrave, KS_0, KS_oslash, 182 1.4 manu KC(30), KS_dollar, KS_asterisk, KS_comma, KS_yen, 183 1.4 manu KC(33), KS_dead_circumflex, KS_dead_diaeresis,KS_ocircumflex,KS_Ocircumflex, 184 1.4 manu KC(34), KS_i, KS_I, KS_icircumflex, KS_Icircumflex, 185 1.4 manu KC(37), KS_l, KS_L, KS_notsign, KS_bar, 186 1.4 manu KC(38), KS_j, KS_J, KS_Idiaeresis, KS_Igrave, 187 1.4 manu KC(39), KS_ugrave, KS_percent, KS_Ugrave, 188 1.4 manu KC(40), KS_k, KS_K, KS_Egrave, KS_Ediaeresis, 189 1.4 manu KC(41), KS_m, KS_M, KS_mu, KS_Ograve, 190 1.4 manu KC(42), KS_dead_grave, KS_sterling, KS_at, KS_numbersign, 191 1.3 manu KC(43), KS_semicolon, KS_period, 192 1.4 manu KC(44), KS_equal, KS_plus, KS_voidSymbol, KS_plusminus, 193 1.4 manu KC(45), KS_n, KS_N, KS_dead_tilde, 194 1.4 manu KC(46), KS_comma, KS_question, KS_voidSymbol, KS_questiondown, 195 1.4 manu KC(47), KS_colon, KS_slash, KS_division, KS_backslash, 196 1.3 manu KC(50), KS_less, KS_greater, 197 1.3 manu KC(52), KS_Alt_R, 198 1.3 manu KC(55), KS_Meta_L, /* Command */ 199 1.4 manu KC(58), KS_Mode_switch, KS_Multi_key, /* Option */ 200 1.4 manu }; 201 1.4 manu 202 1.4 manu static const keysym_t akbd_keydesc_fr_nodead[] = { 203 1.4 manu KC(18), KS_ampersand, KS_1, KS_voidSymbol, KS_acute, 204 1.4 manu KC(33), KS_asciicircum, KS_diaeresis, KS_ocircumflex, KS_Ocircumflex, 205 1.4 manu KC(42), KS_grave, KS_sterling, KS_at, KS_numbersign, 206 1.4 manu KC(45), KS_n, KS_N, KS_asciitilde, 207 1.3 manu }; 208 1.3 manu 209 1.2 scottr static const keysym_t akbd_keydesc_jp[] = { 210 1.2 scottr /* pos command normal shifted */ 211 1.4 manu KC(19), KS_2, KS_quotedbl, 212 1.4 manu KC(22), KS_6, KS_ampersand, 213 1.4 manu KC(24), KS_asciicircum, KS_asciitilde, 214 1.4 manu KC(25), KS_9, KS_parenright, 215 1.4 manu KC(26), KS_7, KS_apostrophe, 216 1.4 manu KC(27), KS_minus, KS_equal, 217 1.4 manu KC(28), KS_8, KS_parenleft, 218 1.4 manu KC(29), KS_0, 219 1.4 manu KC(30), KS_bracketleft, KS_braceleft, 220 1.4 manu KC(33), KS_at, KS_grave, 221 1.4 manu KC(39), KS_colon, KS_asterisk, 222 1.4 manu 223 1.4 manu KC(41), KS_semicolon, KS_plus, 224 1.4 manu KC(42), KS_bracketright,KS_braceright, 225 1.2 scottr KC(93), KS_backslash, KS_bar, 226 1.4 manu KC(94), KS_underscore, 227 1.4 manu }; 228 1.4 manu 229 1.4 manu static const keysym_t akbd_keydesc_uk[] = { 230 1.4 manu /* pos normal shifted altgr shift-altgr */ 231 1.4 manu KC(10), KS_section, KS_plusminus, 232 1.4 manu KC(20), KS_3, KS_sterling, KS_numbersign, 233 1.4 manu KC(52), KS_KP_Enter, 234 1.4 manu KC(58), KS_Mode_switch, KS_Multi_key, /* Option */ 235 1.4 manu }; 236 1.4 manu 237 1.4 manu static const keysym_t akbd_keydesc_sv[] = { 238 1.4 manu /* pos normal shifted altgr shift-altgr */ 239 1.4 manu KC(10), KS_section, KS_degree, 240 1.4 manu KC(19), KS_2, KS_quotedbl, KS_at, 241 1.4 manu KC(21), KS_4, KS_dollar, 242 1.4 manu KC(22), KS_6, KS_ampersand, 243 1.4 manu KC(24), KS_dead_acute, KS_dead_grave, 244 1.4 manu KC(25), KS_9, KS_parenright, KS_bracketright, 245 1.4 manu KC(26), KS_7, KS_slash, KS_braceleft, 246 1.4 manu KC(27), KS_plus, KS_question, KS_backslash, 247 1.4 manu KC(28), KS_8, KS_parenleft, KS_bracketleft, 248 1.4 manu KC(29), KS_0, KS_equal, KS_braceright, 249 1.4 manu KC(30), KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde, 250 1.4 manu KC(33), KS_aring, 251 1.4 manu KC(39), KS_adiaeresis, 252 1.4 manu KC(41), KS_odiaeresis, 253 1.4 manu KC(42), KS_apostrophe, KS_asterisk, 254 1.4 manu KC(43), KS_comma, KS_semicolon, 255 1.4 manu KC(44), KS_minus, KS_underscore, 256 1.4 manu KC(47), KS_period, KS_colon, 257 1.4 manu KC(50), KS_less, KS_greater, KS_bar, 258 1.6 mbw KC(58), KS_Mode_switch,KS_Multi_key, 259 1.4 manu }; 260 1.4 manu 261 1.4 manu static const keysym_t akbd_keydesc_sv_nodead[] = { 262 1.4 manu /* pos normal shifted altgr shift-altgr */ 263 1.4 manu KC(24), KS_apostrophe, KS_grave, 264 1.4 manu KC(30), KS_diaeresis, KS_asciicircum, KS_asciitilde, 265 1.4 manu }; 266 1.4 manu 267 1.4 manu static const keysym_t akbd_keydesc_de[] = { 268 1.4 manu /* pos normal shifted altgr shift-altgr */ 269 1.4 manu KC(0), KS_a, KS_A, KS_aring, KS_Aring, 270 1.4 manu KC(1), KS_s, KS_S, KS_voidSymbol, KS_Iacute, 271 1.4 manu KC(3), KS_f, KS_F, KS_voidSymbol, KS_Idiaeresis, 272 1.4 manu KC(4), KS_h, KS_H, KS_ordfeminine, KS_Oacute, 273 1.4 manu KC(5), KS_g, KS_G, KS_copyright, KS_Igrave, 274 1.4 manu KC(6), KS_y, KS_Y, KS_yen, 275 1.4 manu KC(7), KS_x, KS_X, KS_voidSymbol, KS_Ugrave, 276 1.4 manu KC(8), KS_c, KS_C, KS_ccedilla, KS_Ccedilla, 277 1.4 manu KC(10), KS_dead_circumflex,KS_degree, 278 1.4 manu KC(12), KS_q, KS_Q, KS_guillemotleft,KS_guillemotright, 279 1.4 manu KC(15), KS_r, KS_R, KS_registered, KS_cedilla, 280 1.4 manu KC(16), KS_z, KS_Z, 281 1.4 manu KC(18), KS_1, KS_exclam, KS_exclamdown, KS_notsign, 282 1.4 manu KC(19), KS_2, KS_quotedbl, 283 1.4 manu KC(20), KS_3, KS_section, KS_paragraph, KS_numbersign, 284 1.4 manu KC(21), KS_4, KS_dollar, KS_cent, KS_sterling, 285 1.4 manu KC(22), KS_6, KS_ampersand, KS_bracketright,KS_dead_circumflex, 286 1.4 manu KC(23), KS_5, KS_percent, KS_bracketleft, 287 1.4 manu KC(24), KS_dead_acute, KS_dead_grave, KS_apostrophe, 288 1.4 manu KC(25), KS_9, KS_parenright, KS_braceright, KS_periodcentered, 289 1.4 manu KC(26), KS_7, KS_slash, KS_bar, KS_backslash, 290 1.4 manu KC(27), KS_ssharp, KS_question, KS_questiondown, 291 1.4 manu KC(28), KS_8, KS_parenleft, KS_braceleft, 292 1.4 manu KC(29), KS_0, KS_equal, KS_voidSymbol, KS_macron, 293 1.4 manu KC(30), KS_plus, KS_asterisk, KS_plusminus, 294 1.4 manu KC(31), KS_o, KS_O, KS_oslash, KS_Ooblique, 295 1.4 manu KC(32), KS_u, KS_U, KS_dead_diaeresis,KS_Aacute, 296 1.4 manu KC(33), KS_udiaeresis, KS_Udiaeresis, KS_voidSymbol, KS_degree, 297 1.4 manu KC(34), KS_i, KS_I, KS_voidSymbol, KS_Ucircumflex, 298 1.4 manu KC(37), KS_l, KS_L, KS_at, 299 1.4 manu KC(38), KS_j, KS_J, KS_masculine, 300 1.4 manu KC(39), KS_adiaeresis, KS_Adiaeresis, KS_ae, KS_AE, 301 1.4 manu KC(41), KS_odiaeresis, KS_Odiaeresis, 302 1.4 manu KC(42), KS_numbersign, KS_apostrophe, 303 1.4 manu KC(43), KS_comma, KS_semicolon, 304 1.4 manu KC(44), KS_minus, KS_underscore, 305 1.4 manu KC(45), KS_n, KS_N, KS_dead_tilde, 306 1.4 manu KC(46), KS_m, KS_M, KS_mu, 307 1.4 manu KC(47), KS_period, KS_colon, 308 1.4 manu KC(50), KS_less, KS_greater, 309 1.4 manu KC(52), KS_Multi_key, 310 1.4 manu KC(58), KS_Mode_switch, 311 1.2 scottr }; 312 1.2 scottr 313 1.4 manu static const keysym_t akbd_keydesc_de_nodead[] = { 314 1.4 manu /* pos normal shifted altgr shift-altgr */ 315 1.4 manu KC(10), KS_asciicircum, KS_degree, 316 1.4 manu KC(22), KS_6, KS_ampersand, KS_bracketright,KS_asciicircum, 317 1.4 manu KC(24), KS_acute, KS_grave, KS_apostrophe, 318 1.4 manu KC(32), KS_u, KS_U, KS_diaeresis, KS_Aacute, 319 1.4 manu KC(45), KS_n, KS_N, KS_asciitilde, 320 1.4 manu }; 321 1.4 manu 322 1.4 manu static const keysym_t akbd_keydesc_sf[] = { 323 1.4 manu /* pos normal shifted altgr shift-altgr */ 324 1.4 manu KC(6), KS_y, 325 1.4 manu KC(10), KS_paragraph, KS_degree, 326 1.4 manu KC(16), KS_z, 327 1.4 manu KC(18), KS_plus, KS_1, 328 1.4 manu KC(19), KS_quotedbl, KS_2, 329 1.4 manu KC(20), KS_asterisk, KS_3, 330 1.4 manu KC(21), KS_ccedilla, KS_4, KS_Ccedilla, 331 1.4 manu KC(22), KS_ampersand, KS_6, 332 1.4 manu KC(23), KS_percent, KS_5, 333 1.4 manu KC(24), KS_dead_circumflex,KS_grave, 334 1.4 manu KC(25), KS_parenright, KS_9, 335 1.4 manu KC(26), KS_slash, KS_7, 336 1.4 manu KC(27), KS_apostrophe, KS_question, 337 1.4 manu KC(28), KS_parenleft, KS_8, 338 1.4 manu KC(29), KS_equal, KS_0, 339 1.4 manu KC(30), KS_dead_diaeresis,KS_exclam, 340 1.4 manu KC(33), KS_egrave, KS_udiaeresis, 341 1.4 manu KC(39), KS_agrave, KS_adiaeresis, 342 1.4 manu KC(41), KS_eacute, KS_odiaeresis, 343 1.4 manu KC(42), KS_dollar, KS_sterling, 344 1.4 manu KC(43), KS_period, KS_colon, 345 1.4 manu KC(46), KS_comma, KS_semicolon, 346 1.4 manu KC(47), KS_minus, KS_underscore, 347 1.4 manu KC(50), KS_less, KS_greater, 348 1.4 manu }; 349 1.5 jmmv 350 1.5 jmmv static const keysym_t akbd_keydesc_es[] = { 351 1.5 jmmv /* pos normal shifted altgr shift-altgr */ 352 1.5 jmmv KC(10), KS_degree, KS_ordfeminine, KS_backslash, 353 1.5 jmmv KC(18), KS_1, KS_exclam, KS_bar, 354 1.5 jmmv KC(19), KS_2, KS_quotedbl, KS_at, 355 1.5 jmmv KC(20), KS_3, KS_periodcentered, KS_numbersign, 356 1.5 jmmv KC(21), KS_4, KS_dollar, KS_asciitilde, 357 1.5 jmmv KC(22), KS_6, KS_ampersand, KS_notsign, 358 1.5 jmmv KC(23), KS_5, KS_percent, 359 1.5 jmmv KC(24), KS_exclamdown, KS_questiondown, 360 1.5 jmmv KC(25), KS_9, KS_parenright, 361 1.5 jmmv KC(26), KS_7, KS_slash, 362 1.5 jmmv KC(27), KS_apostrophe, KS_question, 363 1.5 jmmv KC(28), KS_8, KS_parenleft, 364 1.5 jmmv KC(29), KS_0, KS_equal, 365 1.5 jmmv KC(30), KS_plus, KS_asterisk, KS_bracketright, 366 1.5 jmmv KC(33), KS_dead_grave, KS_dead_circumflex, KS_bracketleft, 367 1.5 jmmv KC(39), KS_dead_acute, KS_dead_diaeresis, KS_braceleft, 368 1.5 jmmv KC(41), KS_ntilde, 369 1.5 jmmv KC(42), KS_ccedilla, KS_Ccedilla, KS_braceright, 370 1.5 jmmv KC(43), KS_comma, KS_semicolon, 371 1.5 jmmv KC(44), KS_minus, KS_underscore, 372 1.5 jmmv KC(47), KS_period, KS_colon, 373 1.5 jmmv KC(50), KS_less, KS_greater, 374 1.5 jmmv KC(55), KS_Alt_L, /* Command */ 375 1.5 jmmv KC(58), KS_Mode_switch, KS_Multi_key, /* Option */ 376 1.5 jmmv }; 377 1.5 jmmv 378 1.7 abs static const keysym_t akbd_keydesc_pt[] = { 379 1.7 abs /* pos normal shifted altgr shift-altgr */ 380 1.7 abs KC(7), KS_x, KS_X, KS_guillemotleft, KS_guillemotright, 381 1.7 abs KC(10), KS_section, KS_plusminus, 382 1.7 abs KC(19), KS_2, KS_quotedbl, KS_at, 383 1.7 abs KC(20), KS_3, KS_numbersign, KS_sterling, 384 1.7 abs KC(22), KS_6, KS_ampersand, 385 1.7 abs KC(24), KS_plus, KS_asterisk, 386 1.7 abs KC(25), KS_9, KS_parenright, KS_bracketright, KS_braceright, 387 1.7 abs KC(26), KS_7, KS_slash, 388 1.7 abs KC(27), KS_apostrophe, KS_question, 389 1.7 abs KC(28), KS_8, KS_parenleft, KS_bracketleft, KS_braceleft, 390 1.7 abs KC(29), KS_0, KS_equal, 391 1.7 abs KC(30), KS_dead_acute, KS_dead_grave, 392 1.7 abs KC(33), KS_masculine, KS_ordfeminine, 393 1.7 abs KC(39), KS_dead_tilde, KS_dead_circumflex, 394 1.7 abs KC(41), KS_ccedilla, KS_Ccedilla, 395 1.7 abs KC(43), KS_comma, KS_semicolon, 396 1.7 abs KC(44), KS_minus, KS_underscore, 397 1.7 abs KC(47), KS_period, KS_colon, 398 1.7 abs KC(50), KS_less, KS_greater, 399 1.7 abs KC(58), KS_Mode_switch, 400 1.7 abs KC(81), KS_KP_Equal, 401 1.7 abs }; 402 1.7 abs 403 1.2 scottr #define KBD_MAP(name, base, map) \ 404 1.2 scottr { name, base, sizeof(map)/sizeof(keysym_t), map } 405 1.2 scottr 406 1.2 scottr static const struct wscons_keydesc akbd_keydesctab[] = { 407 1.2 scottr KBD_MAP(KB_US, 0, akbd_keydesc_us), 408 1.3 manu KBD_MAP(KB_FR, KB_US, akbd_keydesc_fr), 409 1.4 manu KBD_MAP(KB_JP, KB_US, akbd_keydesc_jp), 410 1.4 manu KBD_MAP(KB_FR | KB_NODEAD, KB_FR, akbd_keydesc_fr_nodead), 411 1.4 manu KBD_MAP(KB_SF, KB_US, akbd_keydesc_sf), 412 1.4 manu KBD_MAP(KB_SV, KB_US, akbd_keydesc_sv), 413 1.4 manu KBD_MAP(KB_SV | KB_NODEAD, KB_SV, akbd_keydesc_sv_nodead), 414 1.4 manu KBD_MAP(KB_DE, KB_US, akbd_keydesc_de), 415 1.4 manu KBD_MAP(KB_DE | KB_NODEAD, KB_DE, akbd_keydesc_de_nodead), 416 1.4 manu KBD_MAP(KB_UK, KB_US, akbd_keydesc_uk), 417 1.5 jmmv KBD_MAP(KB_ES, KB_US, akbd_keydesc_es), 418 1.7 abs KBD_MAP(KB_PT, KB_US, akbd_keydesc_pt), 419 1.2 scottr {0, 0, 0, 0} 420 1.2 scottr }; 421 1.2 scottr 422 1.2 scottr #undef KBD_MAP 423 1.2 scottr #undef KC 424 1.4 manu 425