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.
This commit is contained in:
thorpej 2001-01-31 03:21:03 +00:00
parent 37aca7f3f0
commit c625c7ee25
1 changed files with 4 additions and 1 deletions

View File

@ -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);