* 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
This commit is contained in:
Tim Angus 2007-10-12 22:34:45 +00:00
parent 66b31c94b9
commit aa5e852056
3 changed files with 105 additions and 38 deletions

View file

@ -1062,6 +1062,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