- spanish keymap patch from Vicente Hernando Ara <bizenton@navegalia.com>

This commit is contained in:
Bryce Denney 2002-01-07 15:46:03 +00:00
parent f9fdee7ed5
commit 37d828e8b4

View File

@ -0,0 +1,95 @@
From bizenton@navegalia.com Mon Jan 7 06:44:34 2002
Date: Sun, 06 Jan 2002 04:26:13 -0800
From: Vicente Hernando Ara <bizenton@navegalia.com>
To: bryce@tlw.com
Subject: Spanish Keymap
I send you the diff file to x.cc with the spanish keymap.
I have problems with tab key and >< keys. But they should work.
I have created the diff file with diff -u x.cc.bak x.cc
If you have problems with this file, please email me.
Regards:
Vicente
Here is the diff file:
--- x.cc.bak Sun Jan 6 01:40:13 2002
+++ x.cc Sun Jan 6 13:32:13 2002
@@ -239,6 +239,7 @@
BX_KEY_GRAVE
};
+
/* US key mapping. Also the default */
Bit32u keymap_us[][2] = {
{ XK_space , BX_KEY_SPACE },
@@ -303,7 +304,6 @@
{ XK_bracketleft , BX_KEY_LEFT_BRACKET },
{ XK_backslash , BX_KEY_BACKSLASH },
{ XK_bracketright , BX_KEY_RIGHT_BRACKET },
- { XK_asciicircum , BX_KEY_6 },
{ XK_underscore , BX_KEY_MINUS },
{ XK_grave , BX_KEY_GRAVE },
{ XK_a , BX_KEY_A },
@@ -458,6 +458,47 @@
lCtrl lAlt Space rAlt rCtrl
*/
+/* ES key mapping, Applied as a diff to the default.
+ Thanks to Vicente Hernando Ara */
+Bit32u keymap_es[][2] = {
+ { XK_bar , BX_KEY_1 },
+ { XK_dead_acute , BX_KEY_SINGLE_QUOTE },
+ { XK_periodcentered , BX_KEY_3 },
+ { XK_slash , BX_KEY_7 },
+ { XK_dead_diaeresis , BX_KEY_SINGLE_QUOTE },
+ { XK_parenright , BX_KEY_9 },
+ { XK_equal , BX_KEY_0 },
+ { XK_parenleft , BX_KEY_8 },
+ { XK_questiondown , BX_KEY_EQUALS },
+ { XK_comma , BX_KEY_COMMA },
+ { XK_apostrophe , BX_KEY_MINUS },
+ { XK_period , BX_KEY_PERIOD },
+ { XK_underscore , BX_KEY_SLASH },
+ { XK_minus , BX_KEY_SLASH },
+ { XK_Ntilde , BX_KEY_SEMICOLON },
+ { XK_ntilde , BX_KEY_SEMICOLON },
+ { XK_semicolon , BX_KEY_COMMA },
+ { XK_exclamdown , BX_KEY_EQUALS },
+ { XK_colon , BX_KEY_PERIOD },
+ { XK_underscore , BX_KEY_SLASH },
+ { XK_at , BX_KEY_2 },
+ { XK_quotedbl , BX_KEY_2 },
+ { XK_dead_grave , BX_KEY_LEFT_BRACKET },
+ { XK_Ccedilla , BX_KEY_BACKSLASH },
+ { XK_plus , BX_KEY_RIGHT_BRACKET },
+ { XK_ampersand , BX_KEY_6 },
+ { XK_question , BX_KEY_MINUS },
+ { XK_masculine , BX_KEY_GRAVE },
+ { XK_backslash , BX_KEY_GRAVE },
+ { XK_EuroSign , BX_KEY_E },
+ { XK_dead_circumflex , BX_KEY_LEFT_BRACKET },
+ { XK_ccedilla , BX_KEY_BACKSLASH },
+ { XK_asterisk , BX_KEY_RIGHT_BRACKET },
+ { XK_ordfeminine , BX_KEY_GRAVE },
+ { XK_less , BX_KEY_LEFT_BACKSLASH },
+ { XK_greater , BX_KEY_LEFT_BACKSLASH },
+ { XK_Control_R , BX_KEY_CTRL_R },
+};
/* French key mapping. Applied as a diff to the default */
Bit32u keymap_fr[][2] = {
@@ -1031,6 +1072,7 @@
bx_keymap.addTable("us",&keymap_us,sizeof(keymap_us)/(sizeof(Bit32u)*2));
bx_keymap.addTable("fr",&keymap_fr,sizeof(keymap_fr)/(sizeof(Bit32u)*2));
bx_keymap.addTable("de",&keymap_de,sizeof(keymap_de)/(sizeof(Bit32u)*2));
+
bx_keymap.addTable("es",&keymap_es,sizeof(keymap_es)/(sizeof(Bit32u)*2));
bx_keymap.setDefault("us");
}