[BACK]Return to adb_keymap.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / adb

Annotation of src/sys/dev/adb/adb_keymap.h, Revision 1.7

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

CVSweb <webmaster@jp.NetBSD.org>