MCPcopy Create free account
hub / github.com/crawl/crawl / command_to_key

Function command_to_key

crawl-ref/source/macro.cc:2205–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2203}
2204
2205int command_to_key(command_type cmd)
2206{
2207 KeymapContext context = context_for_command(cmd);
2208
2209 if (context == KMC_NONE)
2210 return '\0';
2211
2212 return lookup(_cmds_to_keys[context], cmd, '\0');
2213}
2214
2215vector<int> command_to_keys(command_type cmd)
2216{

Callers 4

update_tip_textMethod · 0.85
command_to_stringFunction · 0.85
handle_mouseMethod · 0.85

Calls 2

context_for_commandFunction · 0.85
lookupFunction · 0.85

Tested by

no test coverage detected