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

Function get_menu_cmd_key

src/options.c:8093–8104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8091}
8092
8093char
8094get_menu_cmd_key(char ch)
8095{
8096 char *found = strchr(gm.mapped_menu_op, ch);
8097
8098 if (found) {
8099 int idx = (int) (found - gm.mapped_menu_op);
8100
8101 ch = gm.mapped_menu_cmds[idx];
8102 }
8103 return ch;
8104}
8105
8106/*
8107 * Map the given character to its corresponding menu command. If it

Callers 2

collect_menu_keysFunction · 0.85
show_menu_controlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected