diff --git a/libs/video/targets/pr_keys.c b/libs/video/targets/pr_keys.c index 9c1b83927..d9dd7d405 100644 --- a/libs/video/targets/pr_keys.c +++ b/libs/video/targets/pr_keys.c @@ -143,12 +143,19 @@ bi_Key_KeynumToString (progs_t *pr) RETURN_STRING (pr, Key_KeynumToString (keynum)); }; +static void +bi_Key_StringToKeynum (progs_t *pr) +{ + const char *keyname = P_GSTRING (pr, 0); + R_INT (pr) = Key_StringToKeynum (keyname); +} + static builtin_t builtins[] = { {"Key_SetBinding", bi_Key_SetBinding, -1}, {"Key_LookupBinding", bi_Key_LookupBinding, -1}, {"Key_CountBinding", bi_Key_CountBinding, -1}, {"Key_KeynumToString", bi_Key_KeynumToString, -1}, -// NEED THIS ?// {"Key_StringToKeynum", bi_Key_KeynumToString, -1}, + {"Key_StringToKeynum", bi_Key_StringToKeynum, -1}, {0} };