]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
client: Move keys prototypes to keys.h
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:04 +0000 (19:19 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Sep 2020 19:19:04 +0000 (19:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12968 d7cf8633-e32d-0410-b094-e92efae38249

client.h
keys.h

index d167350041f6eb3397666fae4ab993fa916dd789..5de21ca84b66f3e40c42ebae369859aee42da6e2 100644 (file)
--- a/client.h
+++ b/client.h
@@ -1539,8 +1539,6 @@ extern int cl_ignoremousemoves;
 
 
 float CL_KeyState (kbutton_t *key);
-const char *Key_KeynumToString (int keynum, char *buf, size_t buflength);
-int Key_StringToKeynum (const char *str);
 
 //
 // cl_cmd.c
diff --git a/keys.h b/keys.h
index baf1b9a16de4aa0e9f80861355608087bc2db6f9..f6b78cd0c841a385efea99dee7988d09c72530cd 100644 (file)
--- a/keys.h
+++ b/keys.h
@@ -27,6 +27,7 @@
 #ifndef __KEYS_H
 #define __KEYS_H
 
+#include <stddef.h>
 #include "qtypes.h"
 #include "qdefs.h"
 #include "fs.h"
@@ -392,6 +393,8 @@ const char *Key_GetBind (int key, int bindmap);
 void Key_FindKeysForCommand (const char *command, int *keys, int numkeys, int bindmap);
 qbool Key_SetBindMap(int fg, int bg);
 void Key_GetBindMap(int *fg, int *bg);
+const char *Key_KeynumToString (int keynum, char *buf, size_t buflength);
+int Key_StringToKeynum (const char *str);
 
 #endif // __KEYS_H