projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7252c80
)
Add missing keyname_to_keycode function (needed on Android)
author
sfan5
<sfan5@live.de>
Fri, 28 Oct 2016 13:50:23 +0000
(15:50 +0200)
committer
sfan5
<sfan5@live.de>
Fri, 28 Oct 2016 13:50:23 +0000
(15:50 +0200)
When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
src/keycode.cpp
patch
|
blob
|
history
diff --git
a/src/keycode.cpp
b/src/keycode.cpp
index 48d010cf4f4de98d345f8754acbb5ce0b43e13a5..2e211ad59179fabf4830713869305d8ffb1f8c27 100644
(file)
--- 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;
+}