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

Function keybind

source/src/console.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void keybind(const char *key, int type)
263{
264 keym *km = findbind(key);
265 if(!km) { conoutf("unknown key \"%s\"", key); return; }
266 if(type < keym::ACTION_DEFAULT || type >= keym::NUMACTIONS) { conoutf("invalid bind type \"%d\"", type); return; }
267 result(km->actions[type]);
268}
269
270bool bindc(int code, const char *action, int type)
271{

Callers 1

console.cppFile · 0.85

Calls 3

findbindFunction · 0.85
resultFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected