=================== Key_Unbind_f =================== */
| 979 | =================== |
| 980 | */ |
| 981 | void 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 | =================== |
nothing calls this directly
no test coverage detected