From 37d828e8b434c6c274fb685e212325cd9f363e39 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Mon, 7 Jan 2002 15:46:03 +0000 Subject: [PATCH] - spanish keymap patch from Vicente Hernando Ara --- bochs/patches/patch.keymap-spanish | 95 ++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 bochs/patches/patch.keymap-spanish diff --git a/bochs/patches/patch.keymap-spanish b/bochs/patches/patch.keymap-spanish new file mode 100644 index 000000000..4cf5a9ee3 --- /dev/null +++ b/bochs/patches/patch.keymap-spanish @@ -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 +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"); + }