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

Function _get_next_cmd

crawl-ref/source/main.cc:2745–2771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2743}
2744
2745static command_type _get_next_cmd()
2746{
2747#ifdef DGL_SIMPLE_MESSAGING
2748 check_messages();
2749#endif
2750
2751#ifdef DEBUG_ITEM_SCAN
2752 debug_item_scan();
2753#endif
2754#ifdef DEBUG_MONS_SCAN
2755 debug_mons_scan();
2756#endif
2757
2758 _center_cursor();
2759
2760 keycode_type keyin = _get_next_keycode();
2761
2762 handle_real_time();
2763
2764 if (is_userfunction(keyin))
2765 {
2766 run_macro(get_userfunction(keyin).c_str());
2767 return CMD_NEXT_CMD;
2768 }
2769
2770 return _keycode_to_command(keyin);
2771}
2772
2773// We handle the synthetic keys, key_to_command() handles the
2774// real ones.

Callers 1

_inputFunction · 0.85

Calls 10

check_messagesFunction · 0.85
debug_item_scanFunction · 0.85
debug_mons_scanFunction · 0.85
_center_cursorFunction · 0.85
_get_next_keycodeFunction · 0.85
handle_real_timeFunction · 0.85
is_userfunctionFunction · 0.85
run_macroFunction · 0.85
get_userfunctionFunction · 0.85
_keycode_to_commandFunction · 0.85

Tested by

no test coverage detected