summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-08-09 16:31:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-08-09 16:31:09 +0000
commit4376fdc4db2da5c34140e19d73064b3e5ccb0b7c (patch)
tree49e10286558deeabe06e2f87df39eafb193d4ef4 /sys/dev/usb
parentd27fa2e052d1de8adf1ef506aee9dab86d9f1fae (diff)
Add the fr-dvorak-be'po layout as fr.dvorak for ps/2 and usb keyboards.
This is only the simplified layout, which is final; the complete layout with extra symbols is still being discussed.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/makemap.awk13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/usb/makemap.awk b/sys/dev/usb/makemap.awk
index 9626bf44e62..324c6f639f4 100644
--- a/sys/dev/usb/makemap.awk
+++ b/sys/dev/usb/makemap.awk
@@ -1,5 +1,5 @@
#! /usr/bin/awk -f
-# $OpenBSD: makemap.awk,v 1.8 2008/05/19 18:09:06 miod Exp $
+# $OpenBSD: makemap.awk,v 1.9 2008/08/09 16:31:08 miod Exp $
#
# Copyright (c) 2005, Miodrag Vallat
#
@@ -31,7 +31,7 @@
#
BEGIN {
- rcsid = "$OpenBSD: makemap.awk,v 1.8 2008/05/19 18:09:06 miod Exp $"
+ rcsid = "$OpenBSD: makemap.awk,v 1.9 2008/08/09 16:31:08 miod Exp $"
ifdepth = 0
ignore = 0
declk = 0
@@ -39,8 +39,7 @@ BEGIN {
kbfr = 0
nmaps = 0
- # PS/2 id -> UKBD conversion table, or "sanity lossage 102"
- # (101 is for GSC keyboards!)
+ # PS/2 id -> UKBD conversion table, or "sanity lossage 101"
for (i = 0; i < 256; i++)
conv[i] = -1
@@ -398,9 +397,11 @@ $1 == "#define" || $1 == "#undef" {
}
/KB_FR/ {
print $0
- if (kbfr++ == 0) {
+ kbfr++
+ # Add .apple variants, but not to the fr.dvorak variants
+ if (kbfr == 1) {
print "\tKBD_MAP(KB_FR | KB_APPLE,\tKB_FR,\tukbd_keydesc_fr_apple),"
- } else {
+ } else if (kbfr == 3) {
print "\tKBD_MAP(KB_FR | KB_APPLE | KB_SWAPCTRLCAPS,\tKB_FR | KB_APPLE,"
print "\t\tukbd_keydesc_swapctrlcaps),"
}