| 2743 | } |
| 2744 | |
| 2745 | static 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. |
no test coverage detected