diff options
author | Yotam Barnoy | 2009-12-31 23:52:49 +0000 |
---|---|---|
committer | Yotam Barnoy | 2009-12-31 23:52:49 +0000 |
commit | 080d6da6e42cad623d0cfab37f6d753f121c470b (patch) | |
tree | 0e925e029ccfe8797104bfd5b6df827d479efd03 /gui/console.cpp | |
parent | 3ce017cc2d859e59fdd02d87ee7f36d794c5f594 (diff) | |
download | scummvm-rg350-080d6da6e42cad623d0cfab37f6d753f121c470b.tar.gz scummvm-rg350-080d6da6e42cad623d0cfab37f6d753f121c470b.tar.bz2 scummvm-rg350-080d6da6e42cad623d0cfab37f6d753f121c470b.zip |
Minor additions: added full keypad support to GUI and SCI
svn-id: r46808
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 9ac9cf09e1..f412ca4fa0 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -386,17 +386,21 @@ void ConsoleDialog::handleKeyDown(Common::KeyState state) { draw(); break; case Common::KEYCODE_UP: + case Common::KEYCODE_KP8: historyScroll(+1); break; case Common::KEYCODE_DOWN: + case Common::KEYCODE_KP2: historyScroll(-1); break; case Common::KEYCODE_RIGHT: + case Common::KEYCODE_KP6: if (_currentPos < _promptEndPos) _currentPos++; drawLine(pos2line(_currentPos)); break; case Common::KEYCODE_LEFT: + case Common::KEYCODE_KP4: if (_currentPos > _promptStartPos) _currentPos--; drawLine(pos2line(_currentPos)); |