Skip to content

Commit

Permalink
Add missing keyname_to_keycode function (needed on Android)
Browse files Browse the repository at this point in the history
When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
  • Loading branch information
sfan5 committed Oct 28, 2016
1 parent 7252c80 commit 6d7b95d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/keycode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 6d7b95d

Please sign in to comment.