diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-18 11:57:16 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-18 11:59:37 -0800 |
commit | 3084bd2ba63277174c302d4805d316984d3ab9e1 (patch) | |
tree | 08e703d3ec3616653ce8c3be003d49a9e1caac6a /crawl-ref/source/macro.h | |
parent | 3593fbb549ba5b991b92994c94b529ac99045d46 (diff) | |
download | crawl-ref-3084bd2ba63277174c302d4805d316984d3ab9e1.tar.gz crawl-ref-3084bd2ba63277174c302d4805d316984d3ab9e1.zip |
macro_buf_add_cmd() to add commands to key buffer
Commands (command_type) are now added to the keypress buffer as negative
numbers, which should hopefully take care of the problem with arrow keys
not working.
Diffstat (limited to 'crawl-ref/source/macro.h')
-rw-r--r-- | crawl-ref/source/macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/macro.h b/crawl-ref/source/macro.h index 09a0af0593..f38cd9c20f 100644 --- a/crawl-ref/source/macro.h +++ b/crawl-ref/source/macro.h @@ -56,6 +56,8 @@ void macro_userfn(const char *keys, const char *registryname); void macro_buf_add(int key, bool reverse = false); void macro_buf_add(const keyseq &actions, bool reverse = false ); +void macro_buf_add_cmd(command_type cmd, bool reverse = false); + bool is_userfunction(int key); bool is_synthetic_key(int key); |