MCPcopy Create free account
hub / github.com/assaultcube/AC / keymap

Function keymap

source/src/console.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
148
149void keymap(int *code, char *key)
150{
151 if(findbindc(*code)) { clientlogf("keymap: double assignment for code %d ignored", *code); return; }
152 keym &km = keyms[*code];
153 km.code = *code;
154 km.name = newstring(key);
155}
156COMMAND(keymap, "is");
157
158keym *findbind(const char *key)

Callers 2

autokeymapFunction · 0.85
bindkFunction · 0.85

Calls 3

findbindcFunction · 0.85
clientlogfFunction · 0.85
newstringFunction · 0.85

Tested by

no test coverage detected