summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 22:01:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 22:01:47 +0000
commitf817a160c3a2347f30318280346e812ad1a6ede1 (patch)
tree7d966d4aafc18de232414b776e920d80cac033bc /crawl-ref/source/cio.cc
parent7630def4bbd001c8492deafeb28b95a6caccb4e4 (diff)
downloadcrawl-ref-f817a160c3a2347f30318280346e812ad1a6ede1.tar.gz
crawl-ref-f817a160c3a2347f30318280346e812ad1a6ede1.zip
Forward-port 0.5 r10454 to trunk, minus the version number change.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10457 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index 60e1d715e1..b087d654e1 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -22,12 +22,24 @@ extern int unixcurses_get_vi_key(int keyin);
static keycode_type _numpad2vi(keycode_type key)
{
+#ifndef USE_TILE
+ key = unixcurses_get_vi_key(key);
+#endif
switch (key)
{
case CK_UP: key = 'k'; break;
case CK_DOWN: key = 'j'; break;
case CK_LEFT: key = 'h'; break;
case CK_RIGHT: key = 'l'; break;
+ case 1001: key = 'b'; break;
+ case 1002: key = 'j'; break;
+ case 1003: key = 'n'; break;
+ case 1004: key = 'h'; break;
+ case 1005: key = '.'; break;
+ case 1006: key = 'l'; break;
+ case 1007: key = 'y'; break;
+ case 1008: key = 'k'; break;
+ case 1009: key = 'u'; break;
}
if (key >= '1' && key <= '9')
{