899 lines
35 KiB
C
899 lines
35 KiB
C
/* $NetBSD: wskbdmap_mfii.c,v 1.26 2018/02/19 14:34:17 maya Exp $ */
|
|
|
|
/*-
|
|
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
* by Juergen Hannken-Illjes.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#include <sys/cdefs.h>
|
|
__KERNEL_RCSID(0, "$NetBSD: wskbdmap_mfii.c,v 1.26 2018/02/19 14:34:17 maya Exp $");
|
|
|
|
#include "opt_wskbdmap.h"
|
|
#include <sys/types.h>
|
|
#include <dev/wscons/wsksymdef.h>
|
|
#include <dev/wscons/wsksymvar.h>
|
|
#include <dev/pckbport/wskbdmap_mfii.h>
|
|
|
|
#define KC(n) KS_KEYCODE(n)
|
|
|
|
static const keysym_t pckbd_keydesc_us[] = {
|
|
/* pos command normal shifted */
|
|
KC(1), KS_Cmd_Debugger, KS_Escape,
|
|
KC(2), KS_1, KS_exclam,
|
|
KC(3), KS_2, KS_at,
|
|
KC(4), KS_3, KS_numbersign,
|
|
KC(5), KS_4, KS_dollar,
|
|
KC(6), KS_5, KS_percent,
|
|
KC(7), KS_6, KS_asciicircum,
|
|
KC(8), KS_7, KS_ampersand,
|
|
KC(9), KS_8, KS_asterisk,
|
|
KC(10), KS_9, KS_parenleft,
|
|
KC(11), KS_0, KS_parenright,
|
|
KC(12), KS_minus, KS_underscore,
|
|
KC(13), KS_equal, KS_plus,
|
|
KC(14), KS_Cmd_ResetEmul, KS_Delete,
|
|
KC(15), KS_Tab,
|
|
KC(16), KS_q,
|
|
KC(17), KS_w,
|
|
KC(18), KS_e,
|
|
KC(19), KS_r,
|
|
KC(20), KS_t,
|
|
KC(21), KS_y,
|
|
KC(22), KS_u,
|
|
KC(23), KS_i,
|
|
KC(24), KS_o,
|
|
KC(25), KS_p,
|
|
KC(26), KS_bracketleft, KS_braceleft,
|
|
KC(27), KS_bracketright, KS_braceright,
|
|
KC(28), KS_Return,
|
|
KC(29), KS_Cmd1, KS_Control_L,
|
|
KC(30), KS_a,
|
|
KC(31), KS_s,
|
|
KC(32), KS_d,
|
|
KC(33), KS_f,
|
|
KC(34), KS_g,
|
|
KC(35), KS_h,
|
|
KC(36), KS_j,
|
|
KC(37), KS_k,
|
|
KC(38), KS_l,
|
|
KC(39), KS_semicolon, KS_colon,
|
|
KC(40), KS_apostrophe, KS_quotedbl,
|
|
KC(41), KS_grave, KS_asciitilde,
|
|
KC(42), KS_Shift_L,
|
|
KC(43), KS_backslash, KS_bar,
|
|
KC(44), KS_z,
|
|
KC(45), KS_x,
|
|
KC(46), KS_c,
|
|
KC(47), KS_v,
|
|
KC(48), KS_b,
|
|
KC(49), KS_n,
|
|
KC(50), KS_m,
|
|
KC(51), KS_comma, KS_less,
|
|
KC(52), KS_period, KS_greater,
|
|
KC(53), KS_slash, KS_question,
|
|
KC(54), KS_Shift_R,
|
|
KC(55), KS_KP_Multiply,
|
|
KC(56), KS_Cmd2, KS_Alt_L,
|
|
KC(57), KS_space,
|
|
KC(58), KS_Caps_Lock,
|
|
KC(59), KS_Cmd_Screen0, KS_f1,
|
|
KC(60), KS_Cmd_Screen1, KS_f2,
|
|
KC(61), KS_Cmd_Screen2, KS_f3,
|
|
KC(62), KS_Cmd_Screen3, KS_f4,
|
|
KC(63), KS_Cmd_Screen4, KS_f5,
|
|
KC(64), KS_Cmd_Screen5, KS_f6,
|
|
KC(65), KS_Cmd_Screen6, KS_f7,
|
|
KC(66), KS_Cmd_Screen7, KS_f8,
|
|
KC(67), KS_Cmd_Screen8, KS_f9,
|
|
KC(68), KS_Cmd_Screen9, KS_f10,
|
|
KC(69), KS_Num_Lock,
|
|
KC(70), KS_Hold_Screen,
|
|
KC(71), KS_KP_Home, KS_KP_7,
|
|
KC(72), KS_KP_Up, KS_KP_8,
|
|
KC(73), KS_Cmd_ScrollFastUp, KS_KP_Prior, KS_KP_9,
|
|
KC(74), KS_KP_Subtract,
|
|
KC(75), KS_KP_Left, KS_KP_4,
|
|
KC(76), KS_KP_Begin, KS_KP_5,
|
|
KC(77), KS_KP_Right, KS_KP_6,
|
|
KC(78), KS_KP_Add,
|
|
KC(79), KS_KP_End, KS_KP_1,
|
|
KC(80), KS_KP_Down, KS_KP_2,
|
|
KC(81), KS_Cmd_ScrollFastDown, KS_KP_Next, KS_KP_3,
|
|
KC(82), KS_KP_Insert, KS_KP_0,
|
|
KC(83), KS_KP_Delete, KS_KP_Decimal,
|
|
KC(87), KS_f11,
|
|
KC(88), KS_f12,
|
|
KC(127), KS_Pause, /* Break */
|
|
KC(136), KS_Help,
|
|
KC(137), KS_Stop,
|
|
KC(138), KS_Again,
|
|
KC(139), KS_Props,
|
|
KC(140), KS_Undo,
|
|
KC(141), KS_Front,
|
|
KC(142), KS_Copy,
|
|
KC(143), KS_Open,
|
|
KC(144), KS_Paste,
|
|
KC(145), KS_Find,
|
|
KC(146), KS_Cut,
|
|
KC(156), KS_KP_Enter,
|
|
KC(157), KS_Control_R,
|
|
KC(160), KS_Cmd_VolumeToggle,
|
|
KC(170), KS_Print_Screen,
|
|
KC(174), KS_Cmd_VolumeDown,
|
|
KC(176), KS_Cmd_VolumeUp,
|
|
KC(181), KS_KP_Divide,
|
|
KC(183), KS_Print_Screen,
|
|
KC(184), KS_Alt_R, KS_Multi_key,
|
|
#if 0
|
|
KC(198), KS_Cmd_ResetClose, /* CTL-Break */
|
|
#endif
|
|
KC(199), KS_Home,
|
|
KC(200), KS_Up,
|
|
KC(201), KS_Cmd_ScrollFastUp, KS_Prior,
|
|
KC(203), KS_Left,
|
|
KC(205), KS_Right,
|
|
KC(207), KS_End,
|
|
KC(208), KS_Down,
|
|
KC(209), KS_Cmd_ScrollFastDown, KS_Next,
|
|
KC(210), KS_Insert,
|
|
KC(211), KS_Delete,
|
|
KC(219), KS_Meta_L,
|
|
KC(220), KS_Meta_R,
|
|
KC(221), KS_Menu,
|
|
};
|
|
|
|
#ifndef WSKBD_USONLY
|
|
static const keysym_t pckbd_keydesc_gr[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(14), KS_Delete, KS_BackSpace,
|
|
KC(16), KS_q, KS_Q, KS_semicolon, KS_colon,
|
|
KC(17), KS_w, KS_W, KS_gr_teliko_s, KS_gr_S,
|
|
KC(18), KS_e, KS_E, KS_gr_e, KS_gr_E,
|
|
KC(19), KS_r, KS_R, KS_gr_r, KS_gr_R,
|
|
KC(20), KS_t, KS_T, KS_gr_t, KS_gr_T,
|
|
KC(21), KS_y, KS_Y, KS_gr_y, KS_gr_Y,
|
|
KC(22), KS_u, KS_U, KS_gr_u, KS_gr_U,
|
|
KC(23), KS_i, KS_I, KS_gr_i, KS_gr_I,
|
|
KC(24), KS_o, KS_O, KS_gr_o, KS_gr_O,
|
|
KC(25), KS_p, KS_P, KS_gr_p, KS_gr_P,
|
|
KC(30), KS_a, KS_A, KS_gr_a, KS_gr_A,
|
|
KC(31), KS_s, KS_S, KS_gr_s, KS_gr_S,
|
|
KC(32), KS_d, KS_D, KS_gr_d, KS_gr_D,
|
|
KC(33), KS_f, KS_F, KS_gr_f, KS_gr_F,
|
|
KC(34), KS_g, KS_G, KS_gr_g, KS_gr_G,
|
|
KC(35), KS_h, KS_H, KS_gr_h, KS_gr_H,
|
|
KC(36), KS_j, KS_J, KS_gr_j, KS_gr_J,
|
|
KC(37), KS_k, KS_K, KS_gr_k, KS_gr_K,
|
|
KC(38), KS_l, KS_L, KS_gr_l, KS_gr_L,
|
|
KC(39), KS_semicolon, KS_colon, KS_dead_semi, KS_dead_colon,
|
|
KC(44), KS_z, KS_Z, KS_gr_z, KS_gr_Z,
|
|
KC(45), KS_x, KS_X, KS_gr_x, KS_gr_X,
|
|
KC(46), KS_c, KS_C, KS_gr_c, KS_gr_C,
|
|
KC(47), KS_v, KS_V, KS_gr_v, KS_gr_V,
|
|
KC(48), KS_b, KS_B, KS_gr_b, KS_gr_B,
|
|
KC(49), KS_n, KS_N, KS_gr_n, KS_gr_N,
|
|
KC(50), KS_m, KS_M, KS_gr_m, KS_gr_M,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_nl[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_1, KS_exclam, KS_onesuperior,
|
|
KC(3), KS_2, KS_quotedbl, KS_twosuperior,
|
|
KC(4), KS_3, KS_numbersign, KS_threesuperior,
|
|
KC(5), KS_4, KS_dollar, KS_onequarter,
|
|
KC(6), KS_5, KS_percent, KS_onehalf,
|
|
KC(7), KS_6, KS_ampersand, KS_threequarters,
|
|
KC(8), KS_7, KS_underscore, KS_sterling,
|
|
KC(9), KS_8, KS_parenleft, KS_braceleft,
|
|
KC(10), KS_9, KS_parenright, KS_braceright,
|
|
KC(11), KS_0, KS_apostrophe,
|
|
KC(12), KS_slash, KS_question, KS_backslash,
|
|
KC(13), KS_degree, KS_dead_tilde, KS_dead_cedilla,
|
|
KC(18), KS_e, KS_E, KS_currency,
|
|
KC(19), KS_r, KS_R, KS_paragraph,
|
|
KC(26), KS_dead_diaeresis, KS_dead_circumflex,
|
|
KC(27), KS_asterisk, KS_bar,
|
|
KC(31), KS_s, KS_S, KS_ssharp,
|
|
KC(39), KS_plus, KS_plusminus,
|
|
KC(40), KS_dead_acute, KS_dead_grave,
|
|
KC(41), KS_at, KS_section, KS_notsign,
|
|
KC(43), KS_less, KS_greater,
|
|
KC(44), KS_z, KS_Z, KS_guillemotleft,
|
|
KC(45), KS_x, KS_X, KS_guillemotright,
|
|
KC(46), KS_c, KS_C, KS_cent,
|
|
KC(50), KS_m, KS_M, KS_mu,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon, KS_periodcentered,
|
|
KC(53), KS_minus, KS_equal,
|
|
KC(86), KS_bracketleft, KS_bracketright,KS_brokenbar,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
|
|
static const keysym_t pckbd_keydesc_nl_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_degree, KS_asciitilde, KS_cedilla,
|
|
KC(26), KS_quotedbl, KS_asciicircum,
|
|
/* KC(27), KS_asterisk, KS_bar, */
|
|
KC(40), KS_apostrophe, KS_grave,
|
|
};
|
|
|
|
|
|
static const keysym_t pckbd_keydesc_de[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_quotedbl, KS_twosuperior,
|
|
KC(4), KS_3, KS_section, KS_threesuperior,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_slash, KS_braceleft,
|
|
KC(9), KS_8, KS_parenleft, KS_bracketleft,
|
|
KC(10), KS_9, KS_parenright, KS_bracketright,
|
|
KC(11), KS_0, KS_equal, KS_braceright,
|
|
KC(12), KS_ssharp, KS_question, KS_backslash,
|
|
KC(13), KS_dead_acute, KS_dead_grave,
|
|
KC(16), KS_q, KS_Q, KS_at,
|
|
KC(21), KS_z,
|
|
KC(26), KS_udiaeresis,
|
|
KC(27), KS_plus, KS_asterisk, KS_dead_tilde,
|
|
KC(39), KS_odiaeresis,
|
|
KC(40), KS_adiaeresis,
|
|
KC(41), KS_dead_circumflex,KS_dead_abovering,
|
|
KC(43), KS_numbersign, KS_apostrophe,
|
|
KC(44), KS_y,
|
|
KC(50), KS_m, KS_M, KS_mu,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(83), KS_KP_Delete, KS_KP_Separator,
|
|
KC(86), KS_less, KS_greater, KS_bar, KS_brokenbar,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_de_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_apostrophe, KS_grave,
|
|
KC(27), KS_plus, KS_asterisk, KS_asciitilde,
|
|
KC(41), KS_asciicircum, KS_degree,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_sg[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_1, KS_plus, KS_bar,
|
|
KC(3), KS_2, KS_quotedbl, KS_at,
|
|
KC(4), KS_3, KS_asterisk, KS_numbersign,
|
|
KC(5), KS_4, KS_ccedilla,
|
|
KC(7), KS_6, KS_ampersand, KS_notsign,
|
|
KC(8), KS_7, KS_slash, KS_brokenbar,
|
|
KC(9), KS_8, KS_parenleft, KS_cent,
|
|
KC(10), KS_9, KS_parenright,
|
|
KC(11), KS_0, KS_equal,
|
|
KC(12), KS_apostrophe, KS_question, KS_dead_acute,
|
|
KC(13), KS_dead_circumflex,KS_dead_grave, KS_dead_tilde,
|
|
KC(18), KS_e, KS_E, KS_currency,
|
|
KC(21), KS_z,
|
|
KC(26), KS_udiaeresis, KS_egrave, KS_bracketleft,
|
|
KC(27), KS_dead_diaeresis, KS_exclam, KS_bracketright,
|
|
KC(39), KS_odiaeresis, KS_eacute,
|
|
KC(40), KS_adiaeresis, KS_agrave, KS_braceleft,
|
|
KC(41), KS_section, KS_degree, KS_dead_abovering,
|
|
KC(43), KS_dollar, KS_sterling, KS_braceright,
|
|
KC(44), KS_y,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_less, KS_greater, KS_backslash,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_sg_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(12), KS_apostrophe, KS_question, KS_acute,
|
|
KC(13), KS_asciicircum, KS_grave, KS_asciitilde,
|
|
KC(27), KS_diaeresis, KS_exclam, KS_bracketright
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_sf[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(26), KS_egrave, KS_udiaeresis, KS_bracketleft,
|
|
KC(39), KS_eacute, KS_odiaeresis,
|
|
KC(40), KS_agrave, KS_adiaeresis, KS_braceleft
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_dk[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_quotedbl, KS_at,
|
|
KC(4), KS_3, KS_numbersign, KS_sterling,
|
|
KC(5), KS_4, KS_currency, KS_dollar,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_slash, KS_braceleft,
|
|
KC(9), KS_8, KS_parenleft, KS_bracketleft,
|
|
KC(10), KS_9, KS_parenright, KS_bracketright,
|
|
KC(11), KS_0, KS_equal, KS_braceright,
|
|
KC(12), KS_plus, KS_question,
|
|
KC(13), KS_dead_acute, KS_dead_grave, KS_bar,
|
|
KC(26), KS_aring,
|
|
KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
|
|
KC(39), KS_ae,
|
|
KC(40), KS_oslash,
|
|
KC(41), KS_onehalf, KS_paragraph,
|
|
KC(43), KS_apostrophe, KS_asterisk,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_less, KS_greater, KS_backslash,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_dk_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_apostrophe, KS_grave, KS_bar,
|
|
KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_sv[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(12), KS_plus, KS_question, KS_backslash,
|
|
KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
|
|
KC(39), KS_odiaeresis,
|
|
KC(40), KS_adiaeresis,
|
|
KC(41), KS_paragraph, KS_onehalf,
|
|
KC(86), KS_less, KS_greater, KS_bar,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_sv_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_apostrophe, KS_grave, KS_bar,
|
|
KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_no[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_backslash, KS_dead_grave, KS_dead_acute,
|
|
KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
|
|
KC(39), KS_oslash,
|
|
KC(40), KS_ae,
|
|
KC(41), KS_bar, KS_paragraph,
|
|
KC(86), KS_less, KS_greater,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_no_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(13), KS_backslash, KS_grave, KS_acute,
|
|
KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_fr[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_ampersand, KS_1,
|
|
KC(3), KS_eacute, KS_2, KS_asciitilde,
|
|
KC(4), KS_quotedbl, KS_3, KS_numbersign,
|
|
KC(5), KS_apostrophe, KS_4, KS_braceleft,
|
|
KC(6), KS_parenleft, KS_5, KS_bracketleft,
|
|
KC(7), KS_minus, KS_6, KS_bar,
|
|
KC(8), KS_egrave, KS_7, KS_grave,
|
|
KC(9), KS_underscore, KS_8, KS_backslash,
|
|
KC(10), KS_ccedilla, KS_9, KS_asciicircum,
|
|
KC(11), KS_agrave, KS_0, KS_at,
|
|
KC(12), KS_parenright, KS_degree, KS_bracketright,
|
|
KC(13), KS_equal, KS_plus, KS_braceright,
|
|
KC(16), KS_a,
|
|
KC(17), KS_z,
|
|
KC(26), KS_dead_circumflex, KS_dead_diaeresis,
|
|
KC(27), KS_dollar, KS_sterling, KS_currency,
|
|
KC(30), KS_q,
|
|
KC(39), KS_m,
|
|
KC(40), KS_ugrave, KS_percent,
|
|
KC(41), KS_twosuperior, KS_asciitilde,
|
|
KC(43), KS_asterisk, KS_mu,
|
|
KC(44), KS_w,
|
|
KC(50), KS_comma, KS_question,
|
|
KC(51), KS_semicolon, KS_period,
|
|
KC(52), KS_colon, KS_slash,
|
|
KC(53), KS_exclam, KS_section,
|
|
KC(86), KS_less, KS_greater,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_be[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_ampersand, KS_1, KS_bar,
|
|
KC(3), KS_eacute, KS_2, KS_at,
|
|
KC(5), KS_apostrophe, KS_4,
|
|
KC(6), KS_parenleft, KS_5,
|
|
KC(7), KS_section, KS_6, KS_asciicircum,
|
|
KC(8), KS_egrave, KS_7,
|
|
KC(9), KS_exclam, KS_8,
|
|
KC(10), KS_ccedilla, KS_9, KS_braceleft,
|
|
KC(11), KS_agrave, KS_0, KS_braceright,
|
|
KC(12), KS_parenright, KS_degree,
|
|
KC(13), KS_minus, KS_underscore,
|
|
KC(26), KS_dead_circumflex, KS_dead_diaeresis, KS_bracketleft,
|
|
KC(27), KS_dollar, KS_asterisk, KS_bracketright,
|
|
KC(43), KS_mu, KS_sterling, KS_grave,
|
|
KC(40), KS_ugrave, KS_percent, KS_acute,
|
|
KC(41), KS_twosuperior, KS_threesuperior,
|
|
KC(53), KS_equal, KS_plus, KS_asciitilde,
|
|
KC(86), KS_less, KS_greater, KS_backslash,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_it[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_quotedbl, KS_twosuperior,
|
|
KC(4), KS_3, KS_sterling, KS_threesuperior,
|
|
KC(5), KS_4, KS_dollar,
|
|
KC(6), KS_5, KS_percent,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_slash,
|
|
KC(9), KS_8, KS_parenleft,
|
|
KC(10), KS_9, KS_parenright,
|
|
KC(11), KS_0, KS_equal,
|
|
KC(12), KS_apostrophe, KS_question,
|
|
KC(13), KS_igrave, KS_asciicircum,
|
|
KC(26), KS_egrave, KS_eacute, KS_braceleft, KS_bracketleft,
|
|
KC(27), KS_plus, KS_asterisk, KS_braceright, KS_bracketright,
|
|
KC(39), KS_ograve, KS_Ccedilla, KS_at,
|
|
KC(40), KS_agrave, KS_degree, KS_numbersign,
|
|
KC(41), KS_backslash, KS_bar,
|
|
KC(43), KS_ugrave, KS_section,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_less, KS_greater,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_uk[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_1, KS_exclam, KS_plusminus, KS_exclamdown,
|
|
KC(3), KS_2, KS_quotedbl, KS_twosuperior, KS_cent,
|
|
KC(4), KS_3, KS_sterling, KS_threesuperior,
|
|
KC(5), KS_4, KS_dollar, KS_acute, KS_currency,
|
|
KC(6), KS_5, KS_percent, KS_mu, KS_yen,
|
|
KC(7), KS_6, KS_asciicircum, KS_paragraph,
|
|
KC(8), KS_7, KS_ampersand, KS_periodcentered, KS_brokenbar,
|
|
KC(9), KS_8, KS_asterisk, KS_cedilla, KS_ordfeminine,
|
|
KC(10), KS_9, KS_parenleft, KS_onesuperior, KS_diaeresis,
|
|
KC(11), KS_0, KS_parenright, KS_masculine, KS_copyright,
|
|
KC(12), KS_minus, KS_underscore, KS_hyphen, KS_ssharp,
|
|
KC(13), KS_equal, KS_plus, KS_onehalf, KS_guillemotleft,
|
|
KC(40), KS_apostrophe, KS_at, KS_section, KS_Agrave,
|
|
KC(41), KS_grave, KS_grave, KS_agrave, KS_agrave,
|
|
KC(43), KS_numbersign, KS_asciitilde, KS_sterling, KS_thorn,
|
|
KC(86), KS_backslash, KS_bar, KS_Udiaeresis,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_jp[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_quotedbl,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_apostrophe,
|
|
KC(9), KS_8, KS_parenleft,
|
|
KC(10), KS_9, KS_parenright,
|
|
KC(11), KS_0,
|
|
KC(12), KS_minus, KS_equal,
|
|
KC(13), KS_asciicircum, KS_asciitilde,
|
|
KC(26), KS_at, KS_grave,
|
|
KC(27), KS_bracketleft, KS_braceleft,
|
|
KC(39), KS_semicolon, KS_plus,
|
|
KC(40), KS_colon, KS_asterisk,
|
|
KC(41), KS_Zenkaku_Hankaku, /* replace grave/tilde */
|
|
KC(43), KS_bracketright, KS_braceright,
|
|
KC(112), KS_Hiragana_Katakana,
|
|
KC(115), KS_backslash, KS_underscore,
|
|
KC(121), KS_Henkan,
|
|
KC(123), KS_Muhenkan,
|
|
KC(125), KS_backslash, KS_bar,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_es[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_1, KS_exclam, KS_bar,
|
|
KC(3), KS_2, KS_quotedbl, KS_at,
|
|
KC(4), KS_3, KS_periodcentered, KS_numbersign,
|
|
KC(5), KS_4, KS_dollar, KS_asciitilde,
|
|
KC(7), KS_6, KS_ampersand, KS_notsign,
|
|
KC(8), KS_7, KS_slash,
|
|
KC(9), KS_8, KS_parenleft,
|
|
KC(10), KS_9, KS_parenright,
|
|
KC(11), KS_0, KS_equal,
|
|
KC(12), KS_apostrophe, KS_question,
|
|
KC(13), KS_exclamdown, KS_questiondown,
|
|
KC(18), KS_e, KS_E, KS_currency,
|
|
KC(26), KS_dead_grave, KS_dead_circumflex, KS_bracketleft,
|
|
KC(27), KS_plus, KS_asterisk, KS_bracketright,
|
|
KC(39), KS_ntilde,
|
|
KC(40), KS_dead_acute, KS_dead_diaeresis, KS_braceleft,
|
|
KC(41), KS_degree, KS_ordfeminine, KS_backslash,
|
|
KC(43), KS_ccedilla, KS_Ccedilla, KS_braceright,
|
|
KC(46), KS_c, KS_C, KS_cent,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_less, KS_greater,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_cz[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_plus, KS_1, KS_asciitilde,
|
|
KC(3), KS_ecaron, KS_2, KS_dead_caron,
|
|
KC(4), KS_scaron, KS_3, KS_dead_circumflex,
|
|
KC(5), KS_ccaron, KS_4, KS_dead_breve,
|
|
KC(6), KS_rcaron, KS_5, KS_dead_abovering,
|
|
KC(7), KS_zcaron, KS_6, KS_dead_ogonek,
|
|
KC(8), KS_yacute, KS_7, KS_dead_grave,
|
|
KC(9), KS_aacute, KS_8, KS_dead_dotaccent,
|
|
KC(10), KS_iacute, KS_9, KS_dead_acute,
|
|
KC(11), KS_eacute, KS_0, KS_dead_hungarumlaut,
|
|
KC(12), KS_equal, KS_percent, KS_dead_diaeresis,
|
|
KC(13), KS_dead_acute, KS_dead_caron, KS_dead_cedilla,
|
|
KC(26), KS_uacute, KS_slash,
|
|
KC(27), KS_adiaeresis, KS_parenleft, KS_multiply,
|
|
KC(39), KS_uabovering, KS_quotedbl, KS_dollar,
|
|
KC(40), KS_section, KS_exclam, KS_ssharp,
|
|
KC(41), KS_ncaron, KS_parenright, KS_currency,
|
|
KC(51), KS_comma, KS_question,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_ampersand, KS_asterisk, KS_less,
|
|
KC(16), KS_q, KS_Q, KS_backslash,
|
|
KC(17), KS_w, KS_W, KS_bar,
|
|
KC(31), KS_s, KS_S, KS_dstroke,
|
|
KC(32), KS_d, KS_D, KS_Dstroke,
|
|
KC(33), KS_f, KS_F, KS_bracketleft,
|
|
KC(34), KS_g, KS_G, KS_bracketright,
|
|
KC(37), KS_k, KS_K, KS_lstroke,
|
|
KC(38), KS_l, KS_L, KS_Lstroke,
|
|
KC(44), KS_z, KS_Z, KS_greater,
|
|
KC(45), KS_x, KS_X, KS_numbersign,
|
|
KC(47), KS_v, KS_V, KS_at,
|
|
KC(48), KS_b, KS_B, KS_braceleft,
|
|
KC(49), KS_n, KS_N, KS_braceright,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_pt[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_quotedbl, KS_at,
|
|
KC(4), KS_3, KS_numbersign, KS_sterling,
|
|
KC(5), KS_4, KS_dollar, KS_section,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_slash, KS_braceleft,
|
|
KC(9), KS_8, KS_parenleft, KS_bracketleft,
|
|
KC(10), KS_9, KS_parenright, KS_bracketright,
|
|
KC(11), KS_0, KS_equal, KS_braceright,
|
|
KC(12), KS_apostrophe, KS_question,
|
|
KC(13), KS_guillemotleft, KS_guillemotright,
|
|
KC(26), KS_plus, KS_asterisk, KS_dead_diaeresis,
|
|
KC(27), KS_dead_acute, KS_dead_grave,
|
|
KC(39), KS_ccedilla, KS_Ccedilla,
|
|
KC(40), KS_masculine, KS_ordfeminine,
|
|
KC(41), KS_backslash, KS_bar,
|
|
KC(43), KS_dead_tilde, KS_dead_circumflex,
|
|
KC(51), KS_comma, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore,
|
|
KC(86), KS_less, KS_greater,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_hu[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(2), KS_1, KS_apostrophe, KS_asciitilde,
|
|
KC(3), KS_2, KS_quotedbl, KS_dead_caron,
|
|
KC(4), KS_3, KS_plus, KS_asciicircum,
|
|
KC(5), KS_4, KS_exclam, KS_dead_breve,
|
|
KC(6), KS_5, KS_percent, KS_dead_abovering,
|
|
KC(7), KS_6, KS_slash, KS_dead_ogonek,
|
|
KC(8), KS_7, KS_equal, KS_grave,
|
|
KC(9), KS_8, KS_parenleft, KS_dead_dotaccent,
|
|
KC(10), KS_9, KS_parenright, KS_dead_acute,
|
|
KC(11), KS_odiaeresis, KS_Odiaeresis, KS_dead_hungarumlaut,
|
|
KC(12), KS_udiaeresis, KS_Udiaeresis, KS_dead_diaeresis,
|
|
KC(13), KS_oacute, KS_Oacute, KS_dead_cedilla,
|
|
KC(16), KS_q, KS_Q, KS_backslash,
|
|
KC(17), KS_w, KS_W, KS_bar,
|
|
KC(21), KS_z,
|
|
KC(26), KS_odoubleacute, KS_Odoubleacute,KS_division,
|
|
KC(27), KS_uacute, KS_Uacute, KS_multiply,
|
|
KC(33), KS_f, KS_F, KS_bracketleft,
|
|
KC(34), KS_g, KS_G, KS_bracketright,
|
|
KC(39), KS_eacute, KS_Eacute, KS_dollar,
|
|
KC(40), KS_aacute, KS_Aacute, KS_ssharp,
|
|
KC(41), KS_0, KS_section,
|
|
KC(43), KS_udoubleacute, KS_Udoubleacute,KS_currency,
|
|
KC(44), KS_y, KS_Y, KS_greater,
|
|
KC(45), KS_x, KS_X, KS_numbersign,
|
|
KC(46), KS_c, KS_C, KS_ampersand,
|
|
KC(47), KS_v, KS_V, KS_at,
|
|
KC(48), KS_b, KS_B, KS_braceleft,
|
|
KC(49), KS_n, KS_N, KS_braceright,
|
|
KC(51), KS_comma, KS_question, KS_semicolon,
|
|
KC(52), KS_period, KS_colon,
|
|
KC(53), KS_minus, KS_underscore, KS_asterisk,
|
|
KC(86), KS_iacute, KS_Iacute, KS_less,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_us_declk[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(1), KS_grave, KS_asciitilde, /* replace escape */
|
|
KC(41), KS_less, KS_greater, /* replace grave/tilde */
|
|
KC(143), KS_Multi_key, /* left compose */
|
|
KC(157), KS_Multi_key, /* right compose, replace right control */
|
|
KC(87), KS_Cmd_Debugger, KS_Escape, /* replace F11 */
|
|
KC(189), KS_f13,
|
|
KC(190), KS_f14,
|
|
KC(191), KS_Help,
|
|
KC(192), KS_Execute,
|
|
KC(193), KS_f17,
|
|
KC(183), KS_f18,
|
|
KC(70), KS_f19, /* replace scroll lock */
|
|
KC(127), KS_f20, /* replace break */
|
|
KC(69), KS_KP_F1, /* replace num lock */
|
|
KC(181), KS_KP_F2, /* replace divide */
|
|
KC(55), KS_KP_F3, /* replace multiply */
|
|
KC(74), KS_KP_F4, /* replace subtract */
|
|
|
|
/* keypad is numbers only - no num lock */
|
|
KC(71), KS_KP_7,
|
|
KC(72), KS_KP_8,
|
|
KC(73), KS_KP_9,
|
|
KC(75), KS_KP_4,
|
|
KC(76), KS_KP_5,
|
|
KC(77), KS_KP_6,
|
|
KC(79), KS_KP_1,
|
|
KC(80), KS_KP_2,
|
|
KC(81), KS_KP_3,
|
|
KC(82), KS_KP_0,
|
|
KC(83), KS_KP_Decimal,
|
|
|
|
KC(206), KS_KP_Subtract,
|
|
KC(78), KS_KP_Separator, /* replace add */
|
|
KC(199), KS_Find, /* replace home */
|
|
KC(207), KS_Select, /* replace end */
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_us_dvorak[] = {
|
|
/* pos command normal shifted */
|
|
KC(12), KS_bracketleft, KS_braceleft,
|
|
KC(13), KS_bracketright, KS_braceright,
|
|
KC(16), KS_apostrophe, KS_quotedbl,
|
|
KC(17), KS_comma, KS_less,
|
|
KC(18), KS_period, KS_greater,
|
|
KC(19), KS_p,
|
|
KC(20), KS_y,
|
|
KC(21), KS_f,
|
|
KC(22), KS_g,
|
|
KC(23), KS_c,
|
|
KC(24), KS_r,
|
|
KC(25), KS_l,
|
|
KC(26), KS_slash, KS_question,
|
|
KC(27), KS_equal, KS_plus,
|
|
KC(31), KS_o,
|
|
KC(32), KS_e,
|
|
KC(33), KS_u,
|
|
KC(34), KS_i,
|
|
KC(35), KS_d,
|
|
KC(36), KS_h,
|
|
KC(37), KS_t,
|
|
KC(38), KS_n,
|
|
KC(39), KS_s,
|
|
KC(40), KS_minus, KS_underscore,
|
|
KC(44), KS_semicolon, KS_colon,
|
|
KC(45), KS_q,
|
|
KC(46), KS_j,
|
|
KC(47), KS_k,
|
|
KC(48), KS_x,
|
|
KC(49), KS_b,
|
|
KC(51), KS_w,
|
|
KC(52), KS_v,
|
|
KC(53), KS_z,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_us_colemak[] = {
|
|
/* pos command normal shifted */
|
|
KC(41), KS_grave, KS_asciitilde, KS_dead_tilde, KS_asciitilde,
|
|
KC(2), KS_1, KS_exclam, KS_exclamdown, KS_onesuperior,
|
|
KC(3), KS_2, KS_at, KS_masculine, KS_twosuperior,
|
|
KC(4), KS_3, KS_numbersign, KS_ordfeminine, KS_threesuperior,
|
|
KC(5), KS_4, KS_dollar, KS_cent, KS_sterling,
|
|
KC(6), KS_5, KS_percent, KS_asciitilde, KS_yen,
|
|
KC(7), KS_6, KS_asciicircum, KS_asciitilde, KS_asciitilde,
|
|
KC(8), KS_7, KS_ampersand, KS_eth, KS_ETH,
|
|
KC(9), KS_8, KS_asterisk, KS_thorn, KS_THORN,
|
|
KC(10), KS_9, KS_parenleft, KS_asciitilde, KS_asciitilde,
|
|
KC(11), KS_0, KS_parenright, KS_asciitilde, KS_asciitilde,
|
|
KC(12), KS_minus, KS_underscore, KS_asciitilde, KS_asciitilde,
|
|
KC(13), KS_equal, KS_plus, KS_multiply, KS_division,
|
|
KC(16), KS_q, KS_Q, KS_adiaeresis, KS_Adiaeresis,
|
|
KC(17), KS_w, KS_W, KS_aring, KS_Aring,
|
|
KC(18), KS_f, KS_F, KS_atilde, KS_Atilde,
|
|
KC(19), KS_p, KS_P, KS_oslash, KS_Ooblique,
|
|
KC(20), KS_g, KS_G, KS_asciitilde, KS_asciitilde,
|
|
KC(21), KS_j, KS_J, KS_asciitilde, KS_asciitilde,
|
|
KC(22), KS_l, KS_L, KS_asciitilde, KS_asciitilde,
|
|
KC(23), KS_u, KS_U, KS_uacute, KS_Uacute,
|
|
KC(24), KS_y, KS_Y, KS_udiaeresis, KS_Udiaeresis,
|
|
KC(25), KS_semicolon, KS_colon, KS_odiaeresis, KS_Odiaeresis,
|
|
KC(26), KS_bracketleft, KS_braceleft, KS_guillemotleft, KS_asciitilde,
|
|
KC(27), KS_bracketright, KS_braceright, KS_guillemotright, KS_asciitilde,
|
|
KC(43), KS_backslash, KS_bar, KS_asciitilde, KS_asciitilde,
|
|
KC(30), KS_a, KS_A, KS_aacute, KS_Aacute,
|
|
KC(31), KS_r, KS_R, KS_dead_grave, KS_asciitilde,
|
|
KC(32), KS_s, KS_S, KS_ssharp, KS_asciitilde,
|
|
KC(33), KS_t, KS_T, KS_dead_acute, KS_asciitilde,
|
|
KC(34), KS_d, KS_D, KS_dead_diaeresis, KS_asciitilde,
|
|
KC(35), KS_h, KS_H, KS_asciitilde, KS_asciitilde,
|
|
KC(36), KS_n, KS_N, KS_ntilde, KS_Ntilde,
|
|
KC(37), KS_e, KS_E, KS_eacute, KS_Eacute,
|
|
KC(38), KS_i, KS_I, KS_iacute, KS_Iacute,
|
|
KC(39), KS_o, KS_O, KS_oacute, KS_Oacute,
|
|
KC(40), KS_apostrophe, KS_quotedbl, KS_otilde, KS_Otilde,
|
|
KC(44), KS_z, KS_Z, KS_ae, KS_AE,
|
|
KC(45), KS_x, KS_X, KS_dead_circumflex, KS_asciitilde,
|
|
KC(46), KS_c, KS_C, KS_ccedilla, KS_Ccedilla,
|
|
KC(47), KS_v, KS_V, KS_asciitilde, KS_asciitilde,
|
|
KC(48), KS_b, KS_B, KS_asciitilde, KS_asciitilde,
|
|
KC(49), KS_k, KS_K, KS_asciitilde, KS_asciitilde,
|
|
KC(50), KS_m, KS_M, KS_asciitilde, KS_asciitilde,
|
|
KC(51), KS_comma, KS_less, KS_dead_cedilla, KS_asciitilde,
|
|
KC(52), KS_period, KS_greater, KS_asciitilde, KS_asciitilde,
|
|
KC(53), KS_slash, KS_question, KS_questiondown, KS_asciitilde,
|
|
KC(58), KS_BackSpace,
|
|
KC(86), KS_minus, KS_underscore, KS_asciitilde, KS_asciitilde,
|
|
KC(57), KS_space, KS_space, KS_space, KS_nobreakspace,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_tr[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(3), KS_2, KS_apostrophe, KS_sterling,
|
|
KC(4), KS_3, KS_asciicircum, KS_numbersign,
|
|
KC(5), KS_4, KS_plus, KS_dollar,
|
|
KC(6), KS_5, KS_percent, KS_onehalf,
|
|
KC(7), KS_6, KS_ampersand,
|
|
KC(8), KS_7, KS_slash, KS_braceleft,
|
|
KC(9), KS_8, KS_parenleft, KS_bracketleft,
|
|
KC(10), KS_9, KS_parenright, KS_bracketright,
|
|
KC(11), KS_0, KS_equal, KS_braceright,
|
|
KC(12), KS_asterisk, KS_question, KS_backslash,
|
|
KC(13), KS_minus, KS_underscore,
|
|
KC(16), KS_q, KS_Q, KS_at,
|
|
KC(23), KS_L5_idotless, KS_I,
|
|
KC(26), KS_L5_gbreve, KS_L5_Gbreve, KS_dead_diaeresis,
|
|
KC(27), KS_udiaeresis, KS_Udiaeresis, KS_asciitilde,
|
|
KC(39), KS_L5_scedilla, KS_L5_Scedilla, KS_dead_acute,
|
|
KC(40), KS_i, KS_L5_Idotabove,
|
|
KC(41), KS_quotedbl, KS_eacute,
|
|
KC(43), KS_comma, KS_semicolon, KS_dead_grave,
|
|
KC(51), KS_odiaeresis, KS_Odiaeresis,
|
|
KC(52), KS_ccedilla, KS_Ccedilla,
|
|
KC(53), KS_period, KS_colon,
|
|
KC(86), KS_less, KS_greater, KS_bar,
|
|
KC(184), KS_Mode_switch, KS_Multi_key,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_tr_nodead[] = {
|
|
/* pos normal shifted altgr shift-altgr */
|
|
KC(26), KS_L5_gbreve, KS_L5_Gbreve,
|
|
KC(39), KS_L5_scedilla, KS_L5_Scedilla, KS_apostrophe,
|
|
KC(43), KS_comma, KS_semicolon, KS_grave,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_swapctrlcaps[] = {
|
|
/* pos command normal shifted */
|
|
KC(29), KS_Caps_Lock,
|
|
KC(58), KS_Cmd1, KS_Control_L,
|
|
};
|
|
|
|
static const keysym_t pckbd_keydesc_iopener[] = {
|
|
/* pos command normal shifted */
|
|
KC(59), KS_Cmd_Debugger, KS_Escape,
|
|
KC(60), KS_Cmd_Screen0, KS_f1,
|
|
KC(61), KS_Cmd_Screen1, KS_f2,
|
|
KC(62), KS_Cmd_Screen2, KS_f3,
|
|
KC(63), KS_Cmd_Screen3, KS_f4,
|
|
KC(64), KS_Cmd_Screen4, KS_f5,
|
|
KC(65), KS_Cmd_Screen5, KS_f6,
|
|
KC(66), KS_Cmd_Screen6, KS_f7,
|
|
KC(67), KS_Cmd_Screen7, KS_f8,
|
|
KC(68), KS_Cmd_Screen8, KS_f9,
|
|
KC(87), KS_Cmd_Screen9, KS_f10,
|
|
KC(88), KS_f11,
|
|
};
|
|
#endif /* WSKBD_USONLY */
|
|
|
|
#define KBD_MAP(name, base, map) \
|
|
{ name, base, sizeof(map)/sizeof(keysym_t), map }
|
|
/* KBD_NULLMAP generates a entry for machine native variant.
|
|
the entry will be modified by machine dependent keyboard driver. */
|
|
#define KBD_NULLMAP(name, base) { name, base, 0, 0 }
|
|
|
|
const struct wscons_keydesc pckbd_keydesctab[] = {
|
|
KBD_MAP(KB_US, 0, pckbd_keydesc_us),
|
|
#ifndef WSKBD_USONLY
|
|
KBD_MAP(KB_DE, KB_US, pckbd_keydesc_de),
|
|
KBD_MAP(KB_DE | KB_NODEAD, KB_DE, pckbd_keydesc_de_nodead),
|
|
KBD_MAP(KB_SG, KB_US, pckbd_keydesc_sg),
|
|
KBD_MAP(KB_SG | KB_NODEAD, KB_SG, pckbd_keydesc_sg_nodead),
|
|
KBD_MAP(KB_SF, KB_SG, pckbd_keydesc_sf),
|
|
KBD_MAP(KB_SF | KB_NODEAD, KB_SF, pckbd_keydesc_sg_nodead),
|
|
KBD_MAP(KB_FR, KB_US, pckbd_keydesc_fr),
|
|
KBD_MAP(KB_BE, KB_FR, pckbd_keydesc_be),
|
|
KBD_MAP(KB_DK, KB_US, pckbd_keydesc_dk),
|
|
KBD_MAP(KB_DK | KB_NODEAD, KB_DK, pckbd_keydesc_dk_nodead),
|
|
KBD_MAP(KB_IT, KB_US, pckbd_keydesc_it),
|
|
KBD_MAP(KB_UK, KB_US, pckbd_keydesc_uk),
|
|
KBD_MAP(KB_JP, KB_US, pckbd_keydesc_jp),
|
|
KBD_MAP(KB_SV, KB_DK, pckbd_keydesc_sv),
|
|
KBD_MAP(KB_SV | KB_NODEAD, KB_SV, pckbd_keydesc_sv_nodead),
|
|
KBD_MAP(KB_NO, KB_DK, pckbd_keydesc_no),
|
|
KBD_MAP(KB_NO | KB_NODEAD, KB_NO, pckbd_keydesc_no_nodead),
|
|
KBD_MAP(KB_US | KB_DECLK, KB_US, pckbd_keydesc_us_declk),
|
|
KBD_MAP(KB_US | KB_DVORAK, KB_US, pckbd_keydesc_us_dvorak),
|
|
KBD_MAP(KB_US | KB_COLEMAK, KB_US, pckbd_keydesc_us_colemak),
|
|
KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US, pckbd_keydesc_swapctrlcaps),
|
|
KBD_MAP(KB_US | KB_IOPENER, KB_US, pckbd_keydesc_iopener),
|
|
KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, pckbd_keydesc_swapctrlcaps),
|
|
KBD_MAP(KB_FR | KB_SWAPCTRLCAPS, KB_FR, pckbd_keydesc_swapctrlcaps),
|
|
KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS, KB_US | KB_DVORAK,
|
|
pckbd_keydesc_swapctrlcaps),
|
|
KBD_MAP(KB_US | KB_IOPENER | KB_SWAPCTRLCAPS, KB_US | KB_IOPENER,
|
|
pckbd_keydesc_swapctrlcaps),
|
|
KBD_MAP(KB_ES, KB_US, pckbd_keydesc_es),
|
|
KBD_MAP(KB_PT, KB_US, pckbd_keydesc_pt),
|
|
KBD_MAP(KB_GR, KB_US, pckbd_keydesc_gr),
|
|
KBD_MAP(KB_CZ, KB_US, pckbd_keydesc_cz),
|
|
KBD_MAP(KB_HU, KB_US, pckbd_keydesc_hu),
|
|
KBD_MAP(KB_NL, KB_US, pckbd_keydesc_nl),
|
|
KBD_MAP(KB_NL | KB_NODEAD, KB_NL, pckbd_keydesc_nl_nodead),
|
|
KBD_MAP(KB_TR, KB_US, pckbd_keydesc_tr),
|
|
KBD_MAP(KB_TR | KB_NODEAD, KB_TR, pckbd_keydesc_tr_nodead),
|
|
#endif /* WSKBD_USONLY */
|
|
|
|
/* placeholders */
|
|
KBD_NULLMAP(KB_US | KB_MACHDEP, KB_US),
|
|
#ifndef WSKBD_USONLY
|
|
KBD_NULLMAP(KB_DE | KB_MACHDEP, KB_DE),
|
|
KBD_NULLMAP(KB_SG | KB_MACHDEP, KB_SG),
|
|
KBD_NULLMAP(KB_ES | KB_MACHDEP, KB_ES),
|
|
KBD_NULLMAP(KB_FR | KB_MACHDEP, KB_FR),
|
|
KBD_NULLMAP(KB_JP | KB_MACHDEP, KB_JP),
|
|
KBD_NULLMAP(KB_US | KB_MACHDEP | KB_SWAPCTRLCAPS,
|
|
KB_US | KB_SWAPCTRLCAPS),
|
|
KBD_NULLMAP(KB_JP | KB_MACHDEP | KB_SWAPCTRLCAPS,
|
|
KB_JP | KB_SWAPCTRLCAPS),
|
|
#endif /* WSKBD_USONLY */
|
|
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
#undef KBD_MAP
|
|
#undef KC
|