Add missing keyname_to_keycode function (needed on Android)
authorsfan5 <sfan5@live.de>
Fri, 28 Oct 2016 13:50:23 +0000 (15:50 +0200)
committersfan5 <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

index 48d010cf4f4de98d345f8754acbb5ce0b43e13a5..2e211ad59179fabf4830713869305d8ffb1f8c27 100644 (file)
@@ -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;
+}