aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--src/guiKeyChangeMenu.cpp2
-rw-r--r--src/keycode.h6
3 files changed, 6 insertions, 4 deletions
diff --git a/README b/README
index e03bdae25..82fcdd331 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
Minetest Δ (“Minetest Delta”) is a fork of Minetest-c55 <http://celeron.55.lt/~celeron55/minetest/>, incorporating experimental features that are not (yet) included in Minetest-c55.
New features:
-* Submenu for key assignment (changes apply after restart)
+* Submenu for key assignment
* configurable far mesh tree display (boolean)
* configurable far mesh rendering distance
* volumetric clouds (using fake shading)
diff --git a/src/guiKeyChangeMenu.cpp b/src/guiKeyChangeMenu.cpp
index 3e594aeca..4a11cf93c 100644
--- a/src/guiKeyChangeMenu.cpp
+++ b/src/guiKeyChangeMenu.cpp
@@ -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()
diff --git a/src/keycode.h b/src/keycode.h
index 9c62004d8..300682b12 100644
--- a/src/keycode.h
+++ b/src/keycode.h
@@ -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