Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/dreamcast/dev/maple Add a US keyboard map. This ma...



details:   https://anonhg.NetBSD.org/src/rev/751cc00375eb
branches:  trunk
changeset: 503085:751cc00375eb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jan 31 03:19:50 2001 +0000

description:
Add a US keyboard map.  This may need to be reworked, as this
uses the Japanese keyboard map as the base.

diffstat:

 sys/arch/dreamcast/dev/maple/mkbdmap.h |  43 +++++++++++++++++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)

diffs (63 lines):

diff -r e03fa4f071fa -r 751cc00375eb sys/arch/dreamcast/dev/maple/mkbdmap.h
--- a/sys/arch/dreamcast/dev/maple/mkbdmap.h    Wed Jan 31 00:15:40 2001 +0000
+++ b/sys/arch/dreamcast/dev/maple/mkbdmap.h    Wed Jan 31 03:19:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkbdmap.h,v 1.3 2001/01/21 22:45:58 marcus Exp $       */
+/*     $NetBSD: mkbdmap.h,v 1.4 2001/01/31 03:19:50 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -189,12 +189,53 @@
     KC(100),   KS_backslash,   KS_bar,
 };
 
+static const keysym_t mkbd_keydesc_us[] = {
+/*  pos                normal          shifted */
+
+    KC(31),    KS_2,           KS_at,
+
+    KC(35),    KS_6,           KS_asciicircum,
+    KC(36),    KS_7,           KS_ampersand,
+    KC(37),    KS_8,           KS_asterisk,
+    KC(38),    KS_9,           KS_parenleft,
+    KC(39),    KS_0,           KS_parenright,
+
+    KC(45),    KS_minus,       KS_underscore,
+    KC(46),    KS_equal,       KS_plus,
+    KC(47),    KS_bracketleft, KS_braceleft,
+    KC(48),    KS_bracketright,KS_braceright,
+    KC(49),    KS_backslash,   KS_bar,
+
+    KC(51),    KS_semicolon,   KS_colon,
+    KC(52),    KS_apostrophe,  KS_quotedbl,
+    KC(53),    KS_grave,       KS_asciitilde,
+
+    KC(83),    KS_Num_Lock,
+    KC(84),    KS_KP_Divide,
+    KC(85),    KS_KP_Multiply,
+    KC(86),    KS_KP_Subtract,
+    KC(87),    KS_KP_Add,
+    KC(88),    KS_KP_Enter,
+    KC(89),    KS_KP_1,
+    KC(90),    KS_KP_2,
+    KC(91),    KS_KP_3,
+    KC(92),    KS_KP_4,
+    KC(93),    KS_KP_5,
+    KC(94),    KS_KP_6,
+    KC(95),    KS_KP_7,
+    KC(96),    KS_KP_8,
+    KC(97),    KS_KP_9,
+    KC(98),    KS_KP_0,
+    KC(99),    KS_KP_Decimal,
+};
+
 #define KBD_MAP(name, base, map) \
                        { name, base, sizeof(map)/sizeof(keysym_t), map }
 
 static const struct wscons_keydesc mkbd_keydesctab[] = {
        KBD_MAP(KB_JP,                  0,      mkbd_keydesc_jp),
        KBD_MAP(KB_UK,              KB_JP,      mkbd_keydesc_uk),
+       KBD_MAP(KB_US,              KB_JP,      mkbd_keydesc_us),
        {0, 0, 0, 0}
 };
 



Home | Main Index | Thread Index | Old Index