diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-02-14 16:35:42 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-03-31 22:17:07 +0200 |
commit | 6f1033c0763f8226e28e79ba7ec9ccc39c715cea (patch) | |
tree | 19e35ac1ced732be27ec48781390dbf1047b6ac1 /crawl-ref/source/cio.cc | |
parent | d3697953552df3e272b77eb1e7528bacd59643d5 (diff) | |
download | crawl-ref-6f1033c0763f8226e28e79ba7ec9ccc39c715cea.tar.gz crawl-ref-6f1033c0763f8226e28e79ba7ec9ccc39c715cea.zip |
Basic cursesw input.
No direction keys yet...
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index 783eaa9065..6c838e2bd5 100644 --- a/crawl-ref/source/cio.cc +++ b/crawl-ref/source/cio.cc @@ -31,15 +31,15 @@ static keycode_type _numpad2vi(keycode_type key) 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; + 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') { |