mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
* key change menu now saving immediately
This commit is contained in:
parent
2452ce67f4
commit
6c2d95f868
@ -338,7 +338,7 @@ bool GUIKeyChangeMenu::acceptInput()
|
|||||||
g_settings.set("keymap_fastmove", keycode_to_keyname(key_fast));
|
g_settings.set("keymap_fastmove", keycode_to_keyname(key_fast));
|
||||||
g_settings.set("keymap_special1", keycode_to_keyname(key_use));
|
g_settings.set("keymap_special1", keycode_to_keyname(key_use));
|
||||||
g_settings.set("keymap_print_debug_stacks", keycode_to_keyname(key_dump));
|
g_settings.set("keymap_print_debug_stacks", keycode_to_keyname(key_dump));
|
||||||
//clearKeyCache(); Y U NO SCOPE?!
|
clearKeyCache();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
void GUIKeyChangeMenu::init_keys()
|
void GUIKeyChangeMenu::init_keys()
|
||||||
|
@ -24,11 +24,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
irr::EKEY_CODE keyname_to_keycode(const char *name);
|
irr::EKEY_CODE keyname_to_keycode(const char *name);
|
||||||
|
std::string keycode_to_keyname(s32 keycode);
|
||||||
|
|
||||||
// Key configuration getter
|
// Key configuration getter
|
||||||
irr::EKEY_CODE getKeySetting(const char *settingname);
|
irr::EKEY_CODE getKeySetting(const char *settingname);
|
||||||
std::string keycode_to_keyname(s32 keycode);
|
|
||||||
void clearCache();
|
// Clear fast lookup cache
|
||||||
|
void clearKeyCache();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user