MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / CommandStringUsercmdData

Method CommandStringUsercmdData

neo/framework/UsercmdGen.cpp:1092–1099  ·  view source on GitHub ↗

================ idUsercmdGenLocal::CommandStringUsercmdData Returns the button if the command string is used by the async usercmd generator. ================ */

Source from the content-addressed store, hash-verified

1090================
1091*/
1092int idUsercmdGenLocal::CommandStringUsercmdData( const char *cmdString ) {
1093 for ( userCmdString_t *ucs = userCmdStrings ; ucs->string ; ucs++ ) {
1094 if ( idStr::Icmp( cmdString, ucs->string ) == 0 ) {
1095 return ucs->button;
1096 }
1097 }
1098 return UB_NONE;
1099}
1100
1101/*
1102================

Callers 1

SetBindingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected