diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-28 19:19:01 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-28 19:19:01 +0000 |
commit | a8f9d9bda785d43d73092362cfb4811cfa4672dd (patch) | |
tree | c47f1159ce18700961824294fbf1b66f10de0ac6 /crawl-ref/source/cio.cc | |
parent | 32c233aa110abfcb31c9562e9d50b1a6669f226e (diff) | |
download | crawl-ref-a8f9d9bda785d43d73092362cfb4811cfa4672dd.tar.gz crawl-ref-a8f9d9bda785d43d73092362cfb4811cfa4672dd.zip |
* Copy zebez' and atastypie's installation instructions to INSTALL.txt.
* Change version to 0.5.1.
* Apply a patch by Adam Borowski to make /dir and *dir work with the
arrow keys in the console version.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10454 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index b3382bf6fc..e77fc2fe9c 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') { |