From c625c7ee258668c0d0b0ecb6690c42d9db123cf6 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 31 Jan 2001 03:21:03 +0000 Subject: [PATCH] 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. --- sys/arch/dreamcast/dev/maple/mkbd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/dreamcast/dev/maple/mkbd.c b/sys/arch/dreamcast/dev/maple/mkbd.c index b73bf05dc3ce..b721d65ae81e 100644 --- a/sys/arch/dreamcast/dev/maple/mkbd.c +++ b/sys/arch/dreamcast/dev/maple/mkbd.c @@ -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 @@ mkbdattach(parent, self, aux) 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);