aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_keys.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-10-12 22:34:45 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-10-12 22:34:45 +0000
commit49100cc40622bc3133450ab5579df57d0cf5adfa (patch)
tree6e5b8f727ef53ce8bd650e2d995f4cab3666e0f0 /code/client/cl_keys.c
parent2d93e7198e1a3d503fc9bc931df3e63771574584 (diff)
downloadioquake3-aero-49100cc40622bc3133450ab5579df57d0cf5adfa.tar.gz
ioquake3-aero-49100cc40622bc3133450ab5579df57d0cf5adfa.zip
* Unconditionally place a '\' at the start of the command buffer when
autocompleting -- you're still all WRONG :p * Fix bugette where the completee didn't get its case copied from the completed token * Add functionality to autocomplete key names * Don't build client command completion on the dedicated server git-svn-id: svn://svn.icculus.org/quake3/trunk@1195 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_keys.c')
-rw-r--r--code/client/cl_keys.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c
index 0f481a3..38f41d0 100644
--- a/code/client/cl_keys.c
+++ b/code/client/cl_keys.c
@@ -1063,6 +1063,18 @@ void Key_Bindlist_f( void ) {
}
/*
+============
+Key_KeynameCompletion
+============
+*/
+void Key_KeynameCompletion( void(*callback)(const char *s) ) {
+ int i;
+
+ for( i = 0; keynames[ i ].name != NULL; i++ )
+ callback( keynames[ i ].name );
+}
+
+/*
===================
CL_InitKeyCommands
===================