summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2002-06-29 14:51:25 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2002-06-29 14:51:25 +0000
commit1b4037e25cf24418e7d283899aaebc13bf77b406 (patch)
tree8e715281f6708ec0231a7af2c3965db1dab950f7 /sys/dev
parent03a4ab7a72d9a43c25068ad7b666043398ec9f3c (diff)
Latinamerica keymap from Gerardo Santana Gomez Garrido <santana@openbsd.org.mx>.
-moj
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pckbc/wskbdmap_mfii.c30
-rw-r--r--sys/dev/wscons/wsksymdef.h6
2 files changed, 33 insertions, 3 deletions
diff --git a/sys/dev/pckbc/wskbdmap_mfii.c b/sys/dev/pckbc/wskbdmap_mfii.c
index 13fd4fe2103..d7f98865aa5 100644
--- a/sys/dev/pckbc/wskbdmap_mfii.c
+++ b/sys/dev/pckbc/wskbdmap_mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbdmap_mfii.c,v 1.17 2002/04/22 07:44:16 mickey Exp $ */
+/* $OpenBSD: wskbdmap_mfii.c,v 1.18 2002/06/29 14:51:24 maja Exp $ */
/* $NetBSD: wskbdmap_mfii.c,v 1.15 2000/05/19 16:40:04 drochner Exp $ */
/*-
@@ -696,6 +696,33 @@ static const keysym_t pckbd_keydesc_pt[] = {
KC(184), KS_Mode_switch, KS_Multi_key,
};
+static const keysym_t pckbd_keydesc_la[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(2), KS_1, KS_exclam,
+ KC(3), KS_2, KS_quotedbl,
+ KC(4), KS_3, KS_numbersign,
+ KC(5), KS_4, KS_dollar,
+ KC(7), KS_6, KS_ampersand,
+ KC(8), KS_7, KS_slash,
+ KC(9), KS_8, KS_parenleft,
+ KC(10), KS_9, KS_parenright,
+ KC(11), KS_0, KS_equal,
+ KC(12), KS_apostrophe, KS_question, KS_backslash,
+ KC(13), KS_questiondown, KS_exclamdown,
+ KC(16), KS_q, KS_Q, KS_at,
+ KC(26), KS_dead_acute, KS_dead_diaeresis,
+ KC(27), KS_plus, KS_asterisk, KS_asciitilde,
+ KC(39), KS_ntilde,
+ KC(40), KS_braceleft, KS_bracketleft, KS_dead_circumflex,
+ KC(41), KS_bar, KS_degree, KS_notsign,
+ KC(43), KS_braceright, KS_bracketright,KS_dead_grave,
+ KC(51), KS_comma, KS_semicolon,
+ KC(52), KS_period, KS_colon,
+ KC(53), KS_minus, KS_underscore,
+ KC(86), KS_less, KS_greater,
+ KC(184), KS_Mode_switch, KS_Multi_key,
+};
+
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
@@ -734,6 +761,7 @@ const struct wscons_keydesc pckbd_keydesctab[] = {
KBD_MAP(KB_SF | KB_NODEAD, KB_SF, pckbd_keydesc_sg_nodead),
KBD_MAP(KB_PT, KB_US, pckbd_keydesc_pt),
KBD_MAP(KB_LT, KB_US, pckbd_keydesc_lt),
+ KBD_MAP(KB_LA, KB_US, pckbd_keydesc_la),
{0, 0, 0, 0}
};
diff --git a/sys/dev/wscons/wsksymdef.h b/sys/dev/wscons/wsksymdef.h
index 038f7227f43..1c89cf30288 100644
--- a/sys/dev/wscons/wsksymdef.h
+++ b/sys/dev/wscons/wsksymdef.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsksymdef.h,v 1.17 2002/04/09 19:07:14 mickey Exp $ */
+/* $OpenBSD: wsksymdef.h,v 1.18 2002/06/29 14:51:24 maja Exp $ */
/* $NetBSD: wsksymdef.h,v 1.34.4.1 2000/07/07 09:49:54 hannken Exp $ */
/*-
@@ -640,6 +640,7 @@
#define KB_PT 0x1100
#define KB_UA 0x1200
#define KB_LT 0x1300
+#define KB_LA 0x1400
#define KB_NODEAD 0x0001
#define KB_DECLK 0x0002 /* DEC LKnnn layout */
@@ -669,7 +670,8 @@
{ KB_SG, "sg" }, \
{ KB_SF, "sf" }, \
{ KB_PT, "pt" }, \
- { KB_LT, "lt" }
+ { KB_LT, "lt" }, \
+ { KB_LA, "la" }
#define KB_VARTAB \
{ KB_NODEAD, "nodead" }, \