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

Function Controls_SetConfig

code/ui/ui_shared.cpp:9476–9489  ·  view source on GitHub ↗

================= Controls_SetConfig ================= */

Source from the content-addressed store, hash-verified

9474=================
9475*/
9476void Controls_SetConfig( void )
9477{
9478 size_t i;
9479
9480 // iterate each command, get its numeric binding
9481 for ( i=0; i<g_bindCount; i++ ) {
9482 if ( g_bindKeys[i][0] != -1 ) {
9483 DC->setBinding( g_bindKeys[i][0], g_bindCommands[i] );
9484
9485 if ( g_bindKeys[i][1] != -1 )
9486 DC->setBinding( g_bindKeys[i][1], g_bindCommands[i] );
9487 }
9488 }
9489}
9490
9491void Controls_SetDefaults( void )
9492{

Callers 2

UI_RunMenuScriptFunction · 0.70
Item_Bind_HandleKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected