Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Merged mac68k and macppc keayboards, since they are...
details: https://anonhg.NetBSD.org/src/rev/41277a816692
branches: trunk
changeset: 543341:41277a816692
user: manu <manu%NetBSD.org@localhost>
date: Sun Feb 23 18:09:25 2003 +0000
description:
Merged mac68k and macppc keayboards, since they are the same. The file
could move to <arch/mac> if one day we create it.
Fixed french keymap: option was not mapped correctly, thus making
impossible to use |{}[] (tested).
Added jp keymap from PR/15438, and sf, sv, de and uk keymaps from OpenBSD.
(all untested).
diffstat:
sys/arch/mac68k/dev/akbdmap.h | 239 ++++++++++++++++++++++++++++++++++++-----
sys/arch/macppc/dev/akbdmap.h | 213 +-------------------------------------
2 files changed, 212 insertions(+), 240 deletions(-)
diffs (truncated from 508 to 300 lines):
diff -r 4bb5f2b64a9f -r 41277a816692 sys/arch/mac68k/dev/akbdmap.h
--- a/sys/arch/mac68k/dev/akbdmap.h Sun Feb 23 17:28:48 2003 +0000
+++ b/sys/arch/mac68k/dev/akbdmap.h Sun Feb 23 18:09:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: akbdmap.h,v 1.3 2003/02/22 08:33:56 manu Exp $ */
+/* $NetBSD: akbdmap.h,v 1.4 2003/02/23 18:09:26 manu Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
KC(49), KS_space,
KC(50), KS_grave, KS_asciitilde,
KC(51), KS_Delete,
-
+ KC(52), KS_KP_Enter, /* Pretend this is alt-R ? */
KC(53), KS_Escape,
KC(54), KS_Control_L,
KC(55), KS_Cmd, /* Command */
@@ -128,63 +128,244 @@
KC(92), KS_KP_9,
KC(95), KS_comma, /* XXX KS_KP_comma */
+ KC(96), KS_f5,
+ KC(97), KS_f6,
+ KC(98), KS_f7,
+ KC(99), KS_f3,
+ KC(100), KS_f8,
+
+ KC(101), KS_f9,
+
+ KC(103), KS_f11,
KC(106), KS_KP_Enter,
+ KC(109), KS_f10,
+
+ KC(111), KS_f12,
+
+ KC(115), KS_Home,
+ KC(116), KS_Prior,
+
+ KC(118), KS_f4,
+ KC(119), KS_End,
+ KC(120), KS_f2,
+ KC(121), KS_Next,
+ KC(122), KS_f1,
+
KC(127), KS_Cmd_Debugger,
};
static const keysym_t akbd_keydesc_fr[] = {
/* pos normal shifted altgr shift-altgr */
KC(0), KS_q,
- KC(6), KS_w,
+ KC(1), KS_s, KS_S, KS_Ograve,
+ KC(4), KS_h, KS_H, KS_Igrave, KS_Icircumflex,
+ KC(6), KS_w, KS_W, KS_less, KS_greater,
+ KC(8), KS_c, KS_C, KS_copyright, KS_cent,
KC(10), KS_at, KS_numbersign,
- KC(12), KS_a,
- KC(13), KS_z,
- KC(18), KS_ampersand, KS_1,
- KC(19), KS_eacute, KS_2, KS_asciitilde,
- KC(20), KS_quotedbl, KS_3, KS_numbersign,
- KC(21), KS_apostrophe, KS_4, KS_braceleft,
- KC(22), KS_section, KS_6, KS_bar,
- KC(23), KS_parenleft, KS_5, KS_bracketleft, KS_braceleft,
+ KC(11), KS_b, KS_B, KS_ssharp,
+ KC(12), KS_a, KS_A, KS_ae, KS_AE,
+ KC(13), KS_z, KS_Z, KS_Acircumflex, KS_Aring,
+ KC(14), KS_e, KS_E, KS_ecircumflex, KS_Ecircumflex,
+ KC(15), KS_r, KS_R, KS_registered, /* Euro */
+ KC(16), KS_y, KS_Y, KS_Uacute,
+ KC(18), KS_ampersand, KS_1, KS_voidSymbol, KS_dead_acute,
+ KC(19), KS_eacute, KS_2, KS_ediaeresis,
+ KC(20), KS_quotedbl, KS_3,
+ KC(21), KS_apostrophe, KS_4, KS_braceleft, KS_bracketleft,
+ KC(22), KS_section, KS_6, KS_paragraph,
+ KC(23), KS_parenleft, KS_5, KS_braceleft, KS_bracketleft,
KC(24), KS_minus, KS_underscore, KS_braceright,
- KC(25), KS_ccedilla, KS_9, KS_asciicircum,
- KC(26), KS_egrave, KS_7, KS_grave,
- KC(27), KS_parenright, KS_degree, KS_bracketright, KS_braceright,
- KC(28), KS_exclam, KS_8, KS_bar,
- KC(29), KS_agrave, KS_0, KS_at,
- KC(30), KS_dollar, KS_asterisk,
- KC(33), KS_dead_circumflex, KS_dead_diaeresis,
- KC(39), KS_mu, KS_percent,
- KC(40), KS_k,
- KC(41), KS_m,
- KC(42), KS_grave, KS_sterling,
+ KC(25), KS_ccedilla, KS_9, KS_Ccedilla, KS_Agrave,
+ KC(26), KS_egrave, KS_7, KS_guillemotleft,KS_guillemotright,
+ KC(27), KS_parenright, KS_degree, KS_braceright, KS_bracketright,
+ KC(28), KS_exclam, KS_8, KS_exclamdown, KS_Ucircumflex,
+ KC(29), KS_agrave, KS_0, KS_oslash,
+ KC(30), KS_dollar, KS_asterisk, KS_comma, KS_yen,
+ KC(33), KS_dead_circumflex, KS_dead_diaeresis,KS_ocircumflex,KS_Ocircumflex,
+ KC(34), KS_i, KS_I, KS_icircumflex, KS_Icircumflex,
+ KC(37), KS_l, KS_L, KS_notsign, KS_bar,
+ KC(38), KS_j, KS_J, KS_Idiaeresis, KS_Igrave,
+ KC(39), KS_ugrave, KS_percent, KS_Ugrave,
+ KC(40), KS_k, KS_K, KS_Egrave, KS_Ediaeresis,
+ KC(41), KS_m, KS_M, KS_mu, KS_Ograve,
+ KC(42), KS_dead_grave, KS_sterling, KS_at, KS_numbersign,
KC(43), KS_semicolon, KS_period,
- KC(44), KS_equal, KS_plus,
- KC(46), KS_comma, KS_question,
- KC(47), KS_colon, KS_slash, KS_backslash,
+ KC(44), KS_equal, KS_plus, KS_voidSymbol, KS_plusminus,
+ KC(45), KS_n, KS_N, KS_dead_tilde,
+ KC(46), KS_comma, KS_question, KS_voidSymbol, KS_questiondown,
+ KC(47), KS_colon, KS_slash, KS_division, KS_backslash,
KC(50), KS_less, KS_greater,
KC(52), KS_Alt_R,
KC(55), KS_Meta_L, /* Command */
- KC(58), KS_Alt_R, /* Option */
+ KC(58), KS_Mode_switch, KS_Multi_key, /* Option */
};
-#if 0
+static const keysym_t akbd_keydesc_fr_nodead[] = {
+ KC(18), KS_ampersand, KS_1, KS_voidSymbol, KS_acute,
+ KC(33), KS_asciicircum, KS_diaeresis, KS_ocircumflex, KS_Ocircumflex,
+ KC(42), KS_grave, KS_sterling, KS_at, KS_numbersign,
+ KC(45), KS_n, KS_N, KS_asciitilde,
+};
+
static const keysym_t akbd_keydesc_jp[] = {
/* pos command normal shifted */
- KC(42), KS_grave, KS_asciitilde,
+ KC(19), KS_2, KS_quotedbl,
+ KC(22), KS_6, KS_ampersand,
+ KC(24), KS_asciicircum, KS_asciitilde,
+ KC(25), KS_9, KS_parenright,
+ KC(26), KS_7, KS_apostrophe,
+ KC(27), KS_minus, KS_equal,
+ KC(28), KS_8, KS_parenleft,
+ KC(29), KS_0,
+ KC(30), KS_bracketleft, KS_braceleft,
+ KC(33), KS_at, KS_grave,
+ KC(39), KS_colon, KS_asterisk,
+
+ KC(41), KS_semicolon, KS_plus,
+ KC(42), KS_bracketright,KS_braceright,
KC(93), KS_backslash, KS_bar,
+ KC(94), KS_underscore,
+};
+
+static const keysym_t akbd_keydesc_uk[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(10), KS_section, KS_plusminus,
+ KC(20), KS_3, KS_sterling, KS_numbersign,
+ KC(52), KS_KP_Enter,
+ KC(58), KS_Mode_switch, KS_Multi_key, /* Option */
+};
+
+static const keysym_t akbd_keydesc_sv[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(10), KS_section, KS_degree,
+ KC(19), KS_2, KS_quotedbl, KS_at,
+ KC(21), KS_4, KS_dollar,
+ KC(22), KS_6, KS_ampersand,
+ KC(24), KS_dead_acute, KS_dead_grave,
+ KC(25), KS_9, KS_parenright, KS_bracketright,
+ KC(26), KS_7, KS_slash, KS_braceleft,
+ KC(27), KS_plus, KS_question, KS_backslash,
+ KC(28), KS_8, KS_parenleft, KS_bracketleft,
+ KC(29), KS_0, KS_equal, KS_braceright,
+ KC(30), KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde,
+ KC(33), KS_aring,
+ KC(39), KS_adiaeresis,
+ KC(41), KS_odiaeresis,
+ KC(42), KS_apostrophe, KS_asterisk,
+ KC(43), KS_comma, KS_semicolon,
+ KC(44), KS_minus, KS_underscore,
+ KC(47), KS_period, KS_colon,
+ KC(50), KS_less, KS_greater, KS_bar,
+ KC(52), KS_Mode_switch,KS_Multi_key,
+};
+
+static const keysym_t akbd_keydesc_sv_nodead[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(24), KS_apostrophe, KS_grave,
+ KC(30), KS_diaeresis, KS_asciicircum, KS_asciitilde,
};
-#endif
+static const keysym_t akbd_keydesc_de[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(0), KS_a, KS_A, KS_aring, KS_Aring,
+ KC(1), KS_s, KS_S, KS_voidSymbol, KS_Iacute,
+ KC(3), KS_f, KS_F, KS_voidSymbol, KS_Idiaeresis,
+ KC(4), KS_h, KS_H, KS_ordfeminine, KS_Oacute,
+ KC(5), KS_g, KS_G, KS_copyright, KS_Igrave,
+ KC(6), KS_y, KS_Y, KS_yen,
+ KC(7), KS_x, KS_X, KS_voidSymbol, KS_Ugrave,
+ KC(8), KS_c, KS_C, KS_ccedilla, KS_Ccedilla,
+ KC(10), KS_dead_circumflex,KS_degree,
+ KC(12), KS_q, KS_Q, KS_guillemotleft,KS_guillemotright,
+ KC(15), KS_r, KS_R, KS_registered, KS_cedilla,
+ KC(16), KS_z, KS_Z,
+ KC(18), KS_1, KS_exclam, KS_exclamdown, KS_notsign,
+ KC(19), KS_2, KS_quotedbl,
+ KC(20), KS_3, KS_section, KS_paragraph, KS_numbersign,
+ KC(21), KS_4, KS_dollar, KS_cent, KS_sterling,
+ KC(22), KS_6, KS_ampersand, KS_bracketright,KS_dead_circumflex,
+ KC(23), KS_5, KS_percent, KS_bracketleft,
+ KC(24), KS_dead_acute, KS_dead_grave, KS_apostrophe,
+ KC(25), KS_9, KS_parenright, KS_braceright, KS_periodcentered,
+ KC(26), KS_7, KS_slash, KS_bar, KS_backslash,
+ KC(27), KS_ssharp, KS_question, KS_questiondown,
+ KC(28), KS_8, KS_parenleft, KS_braceleft,
+ KC(29), KS_0, KS_equal, KS_voidSymbol, KS_macron,
+ KC(30), KS_plus, KS_asterisk, KS_plusminus,
+ KC(31), KS_o, KS_O, KS_oslash, KS_Ooblique,
+ KC(32), KS_u, KS_U, KS_dead_diaeresis,KS_Aacute,
+ KC(33), KS_udiaeresis, KS_Udiaeresis, KS_voidSymbol, KS_degree,
+ KC(34), KS_i, KS_I, KS_voidSymbol, KS_Ucircumflex,
+ KC(37), KS_l, KS_L, KS_at,
+ KC(38), KS_j, KS_J, KS_masculine,
+ KC(39), KS_adiaeresis, KS_Adiaeresis, KS_ae, KS_AE,
+ KC(41), KS_odiaeresis, KS_Odiaeresis,
+ KC(42), KS_numbersign, KS_apostrophe,
+ KC(43), KS_comma, KS_semicolon,
+ KC(44), KS_minus, KS_underscore,
+ KC(45), KS_n, KS_N, KS_dead_tilde,
+ KC(46), KS_m, KS_M, KS_mu,
+ KC(47), KS_period, KS_colon,
+ KC(50), KS_less, KS_greater,
+ KC(52), KS_Multi_key,
+ KC(58), KS_Mode_switch,
+};
+
+static const keysym_t akbd_keydesc_de_nodead[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(10), KS_asciicircum, KS_degree,
+ KC(22), KS_6, KS_ampersand, KS_bracketright,KS_asciicircum,
+ KC(24), KS_acute, KS_grave, KS_apostrophe,
+ KC(32), KS_u, KS_U, KS_diaeresis, KS_Aacute,
+ KC(45), KS_n, KS_N, KS_asciitilde,
+};
+
+static const keysym_t akbd_keydesc_sf[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(6), KS_y,
+ KC(10), KS_paragraph, KS_degree,
+ KC(16), KS_z,
+ KC(18), KS_plus, KS_1,
+ KC(19), KS_quotedbl, KS_2,
+ KC(20), KS_asterisk, KS_3,
+ KC(21), KS_ccedilla, KS_4, KS_Ccedilla,
+ KC(22), KS_ampersand, KS_6,
+ KC(23), KS_percent, KS_5,
+ KC(24), KS_dead_circumflex,KS_grave,
+ KC(25), KS_parenright, KS_9,
+ KC(26), KS_slash, KS_7,
+ KC(27), KS_apostrophe, KS_question,
+ KC(28), KS_parenleft, KS_8,
+ KC(29), KS_equal, KS_0,
+ KC(30), KS_dead_diaeresis,KS_exclam,
+ KC(33), KS_egrave, KS_udiaeresis,
+ KC(39), KS_agrave, KS_adiaeresis,
+ KC(41), KS_eacute, KS_odiaeresis,
+ KC(42), KS_dollar, KS_sterling,
+ KC(43), KS_period, KS_colon,
+ KC(46), KS_comma, KS_semicolon,
+ KC(47), KS_minus, KS_underscore,
+ KC(50), KS_less, KS_greater,
+};
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
static const struct wscons_keydesc akbd_keydesctab[] = {
KBD_MAP(KB_US, 0, akbd_keydesc_us),
KBD_MAP(KB_FR, KB_US, akbd_keydesc_fr),
+ KBD_MAP(KB_JP, KB_US, akbd_keydesc_jp),
+ KBD_MAP(KB_FR | KB_NODEAD, KB_FR, akbd_keydesc_fr_nodead),
+ KBD_MAP(KB_SF, KB_US, akbd_keydesc_sf),
+ KBD_MAP(KB_SV, KB_US, akbd_keydesc_sv),
+ KBD_MAP(KB_SV | KB_NODEAD, KB_SV, akbd_keydesc_sv_nodead),
+ KBD_MAP(KB_DE, KB_US, akbd_keydesc_de),
+ KBD_MAP(KB_DE | KB_NODEAD, KB_DE, akbd_keydesc_de_nodead),
+ KBD_MAP(KB_UK, KB_US, akbd_keydesc_uk),
{0, 0, 0, 0}
};
#undef KBD_MAP
#undef KC
+
diff -r 4bb5f2b64a9f -r 41277a816692 sys/arch/macppc/dev/akbdmap.h
--- a/sys/arch/macppc/dev/akbdmap.h Sun Feb 23 17:28:48 2003 +0000
+++ b/sys/arch/macppc/dev/akbdmap.h Sun Feb 23 18:09:25 2003 +0000
@@ -1,212 +1,3 @@
-/* $NetBSD: akbdmap.h,v 1.4 2002/03/04 04:03:36 dbj Exp $ */
-
-/*-
- * Copyright (c) 1997 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
Home |
Main Index |
Thread Index |
Old Index