From 725cb5b4d5a3ade5c5e7b04a6210cedc839c2bdd Mon Sep 17 00:00:00 2001 From: zelgadis Date: Wed, 19 Sep 2007 01:19:56 +0000 Subject: Added new commands "re-do previous command" (bound to `) and "repeat next command" (bound to 0). Though this is just an interface change, it changes code in the core input processing function (input() in acr.cc), and also messes around with the input buffer, so it could probably do with more testing before merging it into the 0.3 branch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2137 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/enum.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/enum.h') diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index d5b091f080..dbdef1f880 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -633,8 +633,17 @@ enum command_type CMD_ENABLE_MORE, // [ds] Silently ignored, requests another round of input. - CMD_NEXT_CMD + CMD_NEXT_CMD, + // Repeat previous command + CMD_PREV_CMD_AGAIN, + + // Repeat next command a given number of times + CMD_REPEAT_CMD, + + // Stick the keyspresses of the command to be repeated into the + // input buffer. + CMD_REPEAT_KEYS }; enum conduct_type @@ -1114,6 +1123,10 @@ enum flush_reason_type FLUSH_ON_PROMPT, // flush on MSGCH_PROMPT messages FLUSH_ON_UNSAFE_YES_OR_NO_PROMPT, // flush when !safe set to yesno() FLUSH_LUA, // flush when Lua wants to flush + FLUSH_KEY_REPLAY_CANCEL, // flush when key replay is cancelled + FLUSH_ABORT_MACRO, // something wrong with macro being + // processed, so stop it + FLUSH_REPLAY_SETUP_FAILURE, // setup for key replay failed NUM_FLUSH_REASONS }; -- cgit v1.2.3-54-g00ecf