diff options
author | sfan5 <sfan5@live.de> | 2016-10-28 15:50:23 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-10-28 15:50:23 +0200 |
commit | 6d7b95d76355334ccb57638d35b123fb49456cf6 (patch) | |
tree | c1c38ac5511cf72995c37c1a92249760aeb4f2ef | |
parent | 7252c803e0708bd8511a5b51333983aa24a76cb2 (diff) | |
download | minetest-6d7b95d76355334ccb57638d35b123fb49456cf6.tar.gz minetest-6d7b95d76355334ccb57638d35b123fb49456cf6.tar.bz2 minetest-6d7b95d76355334ccb57638d35b123fb49456cf6.zip |
Add missing keyname_to_keycode function (needed on Android)
When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
-rw-r--r-- | src/keycode.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keycode.cpp b/src/keycode.cpp index 48d010cf4..2e211ad59 100644 --- a/src/keycode.cpp +++ b/src/keycode.cpp @@ -385,3 +385,8 @@ void clearKeyCache() { g_key_setting_cache.clear(); } + +irr::EKEY_CODE keyname_to_keycode(const char *name) +{ + return lookup_keyname(name).Key; +} |