14 setkeydest( KEY_MENU );
19 setkeydest( KEY_GAME );
22 void( string pKey ) Key_Unbind =
24 cmd( strcat( "unbind ", pKey, "\n" ) );
27 string( float pKey ) Key_GetName =
29 return keynumtostring( pKey );
32 float( string pKey ) Key_GetNum =
34 return stringtokeynum( pKey );
37 string( string pCommand ) Key_GetBindList =
39 return String_Zone( findkeysforcommand( pCommand ) );
42 void(string pKey, string pCommand) Key_Bind =
44 cmd( strcat( "bind \"", pKey, "\" \"", pCommand, "\"\n" ) );
47 void(float pNum, string pCommand) Key_LimitBinds =
49 local string lAltlist;
54 lAltlist = Key_GetBindList( pCommand );
55 lMaxnum = Util_GetAltStringCount( lAltlist );
57 for( lCounter = 0 ; lCounter < lMaxnum ; lCounter = lCounter + 1 ) {
58 lValue = stof( String_Normal( Util_GetAltStringItem( lAltlist, lCounter ) ) );
62 if( lCounter >= pNum )
63 Key_Unbind( Key_GetName( lValue ) );
66 String_Free( lAltlist );