From 475d90e96f09fd0c0a5bff4a44e3b039f9b4484f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 28 Jan 2013 16:34:29 +0900 Subject: [PATCH] Expose Key_StringToKeynum. --- include/QF/keys.h | 1 + libs/video/targets/keys.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/QF/keys.h b/include/QF/keys.h index 66f8364ca..99ca434d2 100644 --- a/include/QF/keys.h +++ b/include/QF/keys.h @@ -509,6 +509,7 @@ void Key_KeydestCallback (keydest_callback_t *callback); const char *Key_KeynumToString (knum_t keynum); +int Key_StringToKeynum (const char *str); struct progs_s; void Key_Progs_Init (struct progs_s *pr); #endif diff --git a/libs/video/targets/keys.c b/libs/video/targets/keys.c index 3d6664def..c8acf4a5c 100644 --- a/libs/video/targets/keys.c +++ b/libs/video/targets/keys.c @@ -632,7 +632,7 @@ Key_Console (knum_t key, short unicode) the given string. Single ascii characters return themselves, while the QFK_* names are matched up. */ -static int +VISIBLE int Key_StringToKeynum (const char *str) { keyname_t *kn;