From a8f9d9bda785d43d73092362cfb4811cfa4672dd Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 28 Jul 2009 19:19:01 +0000 Subject: * 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 --- crawl-ref/source/cio.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/cio.cc') 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') { -- cgit v1.2.3-54-g00ecf