* key change menu now saving immediately
authorPerttu Ahola <celeron55@gmail.com>
Fri, 22 Jul 2011 19:53:50 +0000 (21:53 +0200)
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Fri, 22 Jul 2011 19:54:26 +0000 (21:54 +0200)
src/guiKeyChangeMenu.cpp
src/keycode.h

index 3e594aecadf89eba8195cf7b8eabc2a2fefc60fc..4a11cf93c0ee3a16e28ffadfe6bf55b9c639185b 100644 (file)
@@ -338,7 +338,7 @@ bool GUIKeyChangeMenu::acceptInput()
        g_settings.set("keymap_fastmove", keycode_to_keyname(key_fast));
        g_settings.set("keymap_special1", keycode_to_keyname(key_use));
        g_settings.set("keymap_print_debug_stacks", keycode_to_keyname(key_dump));
-       //clearKeyCache(); Y U NO SCOPE?!
+       clearKeyCache();
        return true;
 }
 void GUIKeyChangeMenu::init_keys()
index 9c62004d8f744644185d61ad4ded8bfab9abb4a1..300682b121d7fded978b9638bdfebde227b46bfe 100644 (file)
@@ -24,11 +24,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <string>
 
 irr::EKEY_CODE keyname_to_keycode(const char *name);
+std::string keycode_to_keyname(s32 keycode);
 
 // Key configuration getter
 irr::EKEY_CODE getKeySetting(const char *settingname);
-std::string keycode_to_keyname(s32 keycode);
-void clearCache();
+
+// Clear fast lookup cache
+void clearKeyCache();
 
 #endif