Add missing keyname_to_keycode function (needed on Android)

When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
This commit is contained in:
sfan5 2016-10-28 15:50:23 +02:00
parent 7252c803e0
commit 6d7b95d763
1 changed files with 5 additions and 0 deletions

View 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;
}