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 Dvorak keyboard map. From PR kern/23230, ja...
details: https://anonhg.NetBSD.org/src/rev/c597437df9f5
branches: trunk
changeset: 553900:c597437df9f5
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Oct 22 17:24:43 2003 +0000
description:
Add Dvorak keyboard map. From PR kern/23230, jacereda%tractor.act.uji.es@localhost.
diffstat:
sys/dev/usb/ukbdmap.c | 44 ++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 42 insertions(+), 2 deletions(-)
diffs (72 lines):
diff -r d98fd54b77e9 -r c597437df9f5 sys/dev/usb/ukbdmap.c
--- a/sys/dev/usb/ukbdmap.c Wed Oct 22 17:13:50 2003 +0000
+++ b/sys/dev/usb/ukbdmap.c Wed Oct 22 17:24:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ukbdmap.c,v 1.11 2002/07/11 21:14:31 augustss Exp $ */
+/* $NetBSD: ukbdmap.c,v 1.12 2003/10/22 17:24:43 augustss Exp $ */
/*
* Copyright (c) 1999,2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbdmap.c,v 1.11 2002/07/11 21:14:31 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbdmap.c,v 1.12 2003/10/22 17:24:43 augustss Exp $");
#include <sys/types.h>
#include <dev/wscons/wsksymdef.h>
@@ -182,6 +182,45 @@
KC(139), KS_Muhenkan,
};
+Static const keysym_t ukbd_keydesc_us_dvorak[] = {
+/* pos command normal shifted */
+ KC(4), KS_a,
+ KC(5), KS_x,
+ KC(6), KS_j,
+ KC(7), KS_e,
+ KC(8), KS_period, KS_greater,
+ KC(9), KS_u,
+ KC(10), KS_i,
+ KC(11), KS_d,
+ KC(12), KS_c,
+ KC(13), KS_h,
+ KC(14), KS_t,
+ KC(15), KS_n,
+ KC(16), KS_m,
+ KC(17), KS_b,
+ KC(18), KS_r,
+ KC(19), KS_l,
+ KC(20), KS_apostrophe, KS_quotedbl,
+ KC(21), KS_p,
+ KC(22), KS_o,
+ KC(23), KS_y,
+ KC(24), KS_g,
+ KC(25), KS_k,
+ KC(26), KS_comma, KS_less,
+ KC(27), KS_q,
+ KC(28), KS_f,
+ KC(29), KS_semicolon, KS_colon,
+ KC(45), KS_bracketleft, KS_braceleft,
+ KC(46), KS_bracketright, KS_braceright,
+ KC(47), KS_slash, KS_question,
+ KC(48), KS_equal, KS_plus,
+ KC(51), KS_s,
+ KC(52), KS_minus, KS_underscore,
+ KC(54), KS_w,
+ KC(55), KS_v,
+ KC(56), KS_z,
+};
+
Static const keysym_t ukbd_keydesc_swapctrlcaps[] = {
/* pos command normal shifted */
KC(57), KS_Control_L,
@@ -443,6 +482,7 @@
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_US | KB_DVORAK, KB_US, ukbd_keydesc_us_dvorak),
KBD_MAP(KB_JP, KB_US, ukbd_keydesc_jp),
KBD_MAP(KB_JP | KB_SWAPCTRLCAPS,KB_JP, ukbd_keydesc_swapctrlcaps),
KBD_MAP(KB_DE, KB_US, ukbd_keydesc_de),
Home |
Main Index |
Thread Index |
Old Index