diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2002-02-25 19:51:52 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2002-02-25 19:51:52 +0000 |
commit | f3202cfc9d414ec865dcd1fa09316c986a1a39d9 (patch) | |
tree | d94fb495c145434212ff6f4c7ed0f5f32f9918af /sys | |
parent | ab420901a4f9a31d334c751951f6659caa53f1ca (diff) |
US isn't all :-) Here is a swedish map. -moj
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sun/sunkbd.c | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/sys/dev/sun/sunkbd.c b/sys/dev/sun/sunkbd.c index 09c94a0b88d..7f720db6925 100644 --- a/sys/dev/sun/sunkbd.c +++ b/sys/dev/sun/sunkbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunkbd.c,v 1.1 2002/01/25 03:24:53 jason Exp $ */ +/* $OpenBSD: sunkbd.c,v 1.2 2002/02/25 19:51:51 maja Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -157,14 +157,54 @@ const keysym_t sunkbd_keydesc_us[] = { KC(0x7d), KS_KP_Add, }; +const keysym_t sunkbd_keydesc_sv[] = { + KC(0x0d), KS_Multi_key, + KC(0x0f), KS_asciitilde, KS_asciicircum, + KC(0x1f), KS_2, KS_quotedbl, KS_at, + KC(0x20), KS_3, KS_numbersign, KS_sterling, + KC(0x21), KS_4, KS_currency, KS_dollar, + KC(0x23), KS_6, KS_ampersand, + KC(0x24), KS_7, KS_slash, KS_braceleft, + KC(0x25), KS_8, KS_parenleft, KS_bracketleft, + KC(0x26), KS_9, KS_parenright, KS_bracketright, + KC(0x27), KS_0, KS_equal, KS_braceright, + KC(0x28), KS_plus, KS_question, KS_backslash, + KC(0x29), KS_dead_acute, KS_dead_grave, + KC(0x2a), KS_apostrophe, KS_asterisk, KS_grave, + KC(0x40), KS_aring, + KC(0x41), KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde, + KC(0x43), KS_Mode_switch, + KC(0x4c), KS_Caps_Lock, + KC(0x56), KS_odiaeresis, + KC(0x57), KS_adiaeresis, + KC(0x58), KS_paragraph, KS_onehalf, + KC(0x6b), KS_comma, KS_semicolon, + KC(0x6c), KS_period, KS_colon, + KC(0x6d), KS_minus, KS_underscore, + KC(0x77), KS_Control_L, + KC(0x7c), KS_less, KS_greater, KS_bar, +}; + +const keysym_t sunkbd_keydesc_sv_nodead[] = { + KC(0x29), KS_apostrophe, KS_grave, + KC(0x41), KS_diaeresis, KS_asciicircum, KS_asciitilde, +}; + #define KBD_MAP(name, base, map) \ { name, base, sizeof(map)/sizeof(keysym_t), map } const struct wscons_keydesc sunkbd_keydesctab[] = { - KBD_MAP(KB_US, 0, sunkbd_keydesc_us), + KBD_MAP(KB_US, 0, sunkbd_keydesc_us), + KBD_MAP(KB_SV, KB_US, sunkbd_keydesc_sv), + KBD_MAP(KB_SV | KB_NODEAD, KB_SV, sunkbd_keydesc_sv), {0, 0, 0, 0}, }; struct wskbd_mapdata sunkbd_keymapdata = { - sunkbd_keydesctab, KB_US + sunkbd_keydesctab, +#ifdef SUNKBD_LAYOUT + SUNKBD_LAYOUT, +#else + KB_US, +#endif }; |