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 Set the keyboard layout based o...



details:   https://anonhg.NetBSD.org/src/rev/5d5ef6c635b9
branches:  trunk
changeset: 503086:5d5ef6c635b9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jan 31 03:21:03 2001 +0000

description:
Set the keyboard layout based on what type of keyboard
we probe, defaulting to Japanese if we don't know what
kind of keyboard we have.

XXX This should be done differently, if we ever want to
support multiple keyboards.

diffstat:

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

diffs (25 lines):

diff -r 751cc00375eb -r 5d5ef6c635b9 sys/arch/dreamcast/dev/maple/mkbd.c
--- a/sys/arch/dreamcast/dev/maple/mkbd.c       Wed Jan 31 03:19:50 2001 +0000
+++ b/sys/arch/dreamcast/dev/maple/mkbd.c       Wed Jan 31 03:21:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkbd.c,v 1.3 2001/01/31 00:08:35 thorpej Exp $ */
+/*     $NetBSD: mkbd.c,v 1.4 2001/01/31 03:21:03 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -129,12 +129,15 @@
        switch(kbdtype) {
        case 1:
                printf(" (Japanese keyboard)");
+               mkbd_keymapdata.layout = KB_JP;
                break;
        case 2:
                printf(" (US keyboard)");
+               mkbd_keymapdata.layout = KB_US;
                break;
        case 3:
                printf(" (European keyboard)");
+               mkbd_keymapdata.layout = KB_UK;
                break;
        default:
                printf(" (Unknown keyboard %d)", kbdtype);



Home | Main Index | Thread Index | Old Index