MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Key_CompleteBind

Function Key_CompleteBind

code/client/cl_keys.cpp:1104–1121  ·  view source on GitHub ↗

==================== Key_CompleteBind ==================== */

Source from the content-addressed store, hash-verified

1102====================
1103*/
1104static void Key_CompleteBind( char *args, int argNum ) {
1105 char *p;
1106
1107 if ( argNum == 2 ) {
1108 // Skip "bind "
1109 p = Com_SkipTokens( args, 1, " " );
1110
1111 if ( p > args )
1112 Field_CompleteKeyname();
1113 }
1114 else if ( argNum >= 3 ) {
1115 // Skip "bind <key> "
1116 p = Com_SkipTokens( args, 2, " " );
1117
1118 if ( p > args )
1119 Field_CompleteCommand( p, qtrue, qtrue );
1120 }
1121}
1122
1123/*
1124===================

Callers

nothing calls this directly

Calls 3

Com_SkipTokensFunction · 0.50
Field_CompleteKeynameFunction · 0.50
Field_CompleteCommandFunction · 0.50

Tested by

no test coverage detected