summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keycode.cpp5
1 files changed, 5 insertions, 0 deletions
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;
+}