MCPcopy Create free account
hub / github.com/NetHack/NetHack / spkey_name

Function spkey_name

src/cmd.c:3207–3220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3205}
3206
3207staticfn const char *
3208spkey_name(int nhkf)
3209{
3210 const char *name = 0;
3211 int i;
3212
3213 for (i = 0; i < SIZE(spkeys_binds); i++) {
3214 if (spkeys_binds[i].nhkf == nhkf) {
3215 name = (nhkf == NHKF_ESC) ? "escape" : spkeys_binds[i].name;
3216 break;
3217 }
3218 }
3219 return name;
3220}
3221
3222/* returns the text for a one-byte encoding;
3223 * must be shorter than a tab for proper formatting */

Callers 1

dokeylistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected