Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Add Japanese model keyboard mapping.
details: https://anonhg.NetBSD.org/src/rev/9d8f1fc614cf
branches: trunk
changeset: 507956:9d8f1fc614cf
user: toshii <toshii%NetBSD.org@localhost>
date: Wed Apr 04 05:31:57 2001 +0000
description:
Add Japanese model keyboard mapping.
diffstat:
sys/dev/usb/ukbdmap.c | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r 130795476c56 -r 9d8f1fc614cf sys/dev/usb/ukbdmap.c
--- a/sys/dev/usb/ukbdmap.c Wed Apr 04 03:17:19 2001 +0000
+++ b/sys/dev/usb/ukbdmap.c Wed Apr 04 05:31:57 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ukbdmap.c,v 1.5 2000/04/27 15:26:49 augustss Exp $ */
+/* $NetBSD: ukbdmap.c,v 1.6 2001/04/04 05:31:57 toshii Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -156,6 +156,29 @@
KC(231), KS_Meta_R,
};
+Static const keysym_t ukbd_keydesc_jp[] = {
+/* pos command normal shifted */
+ KC(31), KS_2, KS_quotedbl,
+ KC(35), KS_6, KS_ampersand,
+ KC(36), KS_7, KS_apostrophe,
+ KC(37), KS_8, KS_parenleft,
+ KC(38), KS_9, KS_parenright,
+ KC(39), KS_0,
+ KC(45), KS_minus, KS_equal,
+ KC(46), KS_asciicircum, KS_asciitilde,
+ KC(47), KS_at, KS_grave,
+ KC(48), KS_bracketleft, KS_braceleft,
+ KC(50), KS_bracketright, KS_braceright,
+ KC(51), KS_semicolon, KS_plus,
+ KC(52), KS_colon, KS_asterisk,
+ KC(53), KS_Zenkaku_Hankaku, /* replace grave/tilde */
+ KC(135), KS_backslash, KS_underscore,
+ KC(136), KS_Hiragana_Katakana,
+ KC(137), KS_backslash, KS_bar,
+ KC(138), KS_Henkan,
+ KC(139), KS_Muhenkan,
+};
+
Static const keysym_t ukbd_keydesc_swapctrlcaps[] = {
/* pos command normal shifted */
KC(57), KS_Control_L,
@@ -168,6 +191,8 @@
const struct wscons_keydesc ukbd_keydesctab[] = {
KBD_MAP(KB_US, 0, ukbd_keydesc_us),
KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US, ukbd_keydesc_swapctrlcaps),
+ KBD_MAP(KB_JP, KB_US, ukbd_keydesc_jp),
+ KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, ukbd_keydesc_swapctrlcaps),
{0, 0, 0, 0}
};
Home |
Main Index |
Thread Index |
Old Index