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 two options to change the d...



details:   https://anonhg.NetBSD.org/src/rev/9b672ebf6430
branches:  trunk
changeset: 574615:9b672ebf6430
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Mar 06 14:52:49 2005 +0000

description:
Add two options to change the default keymap:
- options MKBD_LAYOUT="KB_xx"
    allow user to override the default keymap
- options MKBD_SWAPCTRLCAPS
    allow user to specify swapctrlcaps with the default (probed) keymap

diffstat:

 sys/arch/dreamcast/dev/maple/mkbd.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 0320fbed6f29 -r 9b672ebf6430 sys/arch/dreamcast/dev/maple/mkbd.c
--- a/sys/arch/dreamcast/dev/maple/mkbd.c       Sun Mar 06 13:56:07 2005 +0000
+++ b/sys/arch/dreamcast/dev/maple/mkbd.c       Sun Mar 06 14:52:49 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkbd.c,v 1.20 2005/02/19 15:37:35 tsutsui Exp $        */
+/*     $NetBSD: mkbd.c,v 1.21 2005/03/06 14:52:49 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mkbd.c,v 1.20 2005/02/19 15:37:35 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mkbd.c,v 1.21 2005/03/06 14:52:49 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -140,6 +140,14 @@
                printf(": Unknown keyboard %d", kbdtype);
        }
        printf("\n");
+#ifdef MKBD_LAYOUT
+       /* allow user to override the default keymap */
+       mkbd_keymapdata.layout = MKBD_LAYOUT;
+#endif
+#ifdef MKBD_SWAPCTRLCAPS
+       /* allow user to specify swapctrlcaps with the default keymap */
+       mkbd_keymapdata.layout |= KB_SWAPCTRLCAPS;
+#endif
 
 #if NWSKBD > 0
        if ((a.console = mkbd_is_console) != 0) {



Home | Main Index | Thread Index | Old Index