diff options
author | Zeno- <kde.psych@gmail.com> | 2014-11-10 19:12:25 +1000 |
---|---|---|
committer | Zeno- <kde.psych@gmail.com> | 2014-11-10 19:12:25 +1000 |
commit | a1e9732407494edb9cef3ada45cc2781a34ed60c (patch) | |
tree | cc91215da60a6b971f92addc8b8884ec4eb97d2b /src/guiKeyChangeMenu.cpp | |
parent | 10a47b7feef3278792c567f5b954ea4c3712319c (diff) | |
parent | 987e565eeb80f0fe2825267de728f8a1989a051d (diff) | |
download | minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.tar.gz minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.tar.bz2 minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.zip |
Merge pull request #1825 from Zeno-/control_key_cache
Create faster key cache for main game loop (client)
Diffstat (limited to 'src/guiKeyChangeMenu.cpp')
-rw-r--r-- | src/guiKeyChangeMenu.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/guiKeyChangeMenu.cpp b/src/guiKeyChangeMenu.cpp index 85222431e..8b0bb8278 100644 --- a/src/guiKeyChangeMenu.cpp +++ b/src/guiKeyChangeMenu.cpp @@ -32,8 +32,12 @@ #include "settings.h" #include <algorithm> +#include "mainmenumanager.h" // for g_gamecallback + #define KMaxButtonPerColumns 12 +extern MainGameCallback *g_gamecallback; + enum { GUI_ID_BACK_BUTTON = 101, GUI_ID_ABORT_BUTTON, GUI_ID_SCROLL_BAR, @@ -234,7 +238,11 @@ bool GUIKeyChangeMenu::acceptInput() if(e != NULL && e->getType() == gui::EGUIET_CHECK_BOX) g_settings->setBool("doubletap_jump", ((gui::IGUICheckBox*)e)->isChecked()); } + clearKeyCache(); + + g_gamecallback->signalKeyConfigChange(); + return true; } |