MCPcopy Index your code
hub / github.com/NetHack/NetHack / bind_specialkey

Function bind_specialkey

src/cmd.c:3193–3205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3191};
3192
3193boolean
3194bind_specialkey(uchar key, const char *command)
3195{
3196 int i;
3197
3198 for (i = 0; i < SIZE(spkeys_binds); i++) {
3199 if (!spkeys_binds[i].name || strcmp(command, spkeys_binds[i].name))
3200 continue;
3201 gc.Cmd.spkeys[spkeys_binds[i].nhkf] = key;
3202 return TRUE;
3203 }
3204 return FALSE;
3205}
3206
3207staticfn const char *
3208spkey_name(int nhkf)

Callers 1

parsebindingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected