diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-29 10:52:38 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-29 10:52:38 +0000 |
commit | 5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718 (patch) | |
tree | 570284c09b5d48dc955102ea9b12ed77639b4c01 /crawl-ref/source/libutil.h | |
parent | 1acc5c3b399b756f29c5f458e915052f890c266c (diff) | |
download | crawl-ref-5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718.tar.gz crawl-ref-5bafe6551f12b7df0b5fe8ffad2f5f4ab3836718.zip |
[1622126] Fixed shift+direction keys canceling the targeting prompt. Hopefully
this works on Windows and DOS, but I'm unsure.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@723 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 4323b9c1c1..084a7318d9 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -19,6 +19,11 @@ #include <string> #include <vector> +// Converts a key to a direction key, converting keypad and other sequences +// to vi key sequences (shifted/control key directions are also handled). Non +// direction keys (hopefully) pass through unmangled. +int unmangle_direction_keys(int keyin, int keymap = 0); + void lowercase(std::string &s); void uppercase(std::string &s); |