From 6d7b95d76355334ccb57638d35b123fb49456cf6 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 28 Oct 2016 15:50:23 +0200 Subject: Add missing keyname_to_keycode function (needed on Android) When rewriting keycode.cpp I overlooked this function, fixes #4683 completely --- src/keycode.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; +} -- cgit v1.2.3