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

Function Key_Unbind_f

code/client/cl_keys.cpp:981–994  ·  view source on GitHub ↗

=================== Key_Unbind_f =================== */

Source from the content-addressed store, hash-verified

979===================
980*/
981void Key_Unbind_f( void ) {
982 if ( Cmd_Argc() != 2 ) {
983 Com_Printf( "unbind <key> : remove commands from a key\n" );
984 return;
985 }
986
987 int b = Key_StringToKeynum( Cmd_Argv( 1 ) );
988 if ( b == -1 ) {
989 Com_Printf( "\"%s\" isn't a valid key\n", Cmd_Argv( 1 ) );
990 return;
991 }
992
993 Key_SetBinding( b, "" );
994}
995
996/*
997===================

Callers

nothing calls this directly

Calls 5

Key_StringToKeynumFunction · 0.70
Key_SetBindingFunction · 0.70
Cmd_ArgcFunction · 0.50
Com_PrintfFunction · 0.50
Cmd_ArgvFunction · 0.50

Tested by

no test coverage detected