diff options
author | Paul Gilbert | 2015-02-21 17:45:20 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-21 17:45:20 -0500 |
commit | 076ce7e6c158878305ace5d7f334d54f8d44e966 (patch) | |
tree | 68ccf9871ab9122d2ad68126cfa215e7fc14686d /engines/mads/game.cpp | |
parent | c660119c2282a4a501ab88e9a65e3064fccad21d (diff) | |
download | scummvm-rg350-076ce7e6c158878305ace5d7f334d54f8d44e966.tar.gz scummvm-rg350-076ce7e6c158878305ace5d7f334d54f8d44e966.tar.bz2 scummvm-rg350-076ce7e6c158878305ace5d7f334d54f8d44e966.zip |
MADS: Implement scroll wheel support for scrolling inventory
Diffstat (limited to 'engines/mads/game.cpp')
-rw-r--r-- | engines/mads/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp index 27691d3380..3b8b053fec 100644 --- a/engines/mads/game.cpp +++ b/engines/mads/game.cpp @@ -420,6 +420,7 @@ void Game::handleKeypress(const Common::KeyState &kbd) { } } + Scene &scene = _vm->_game->_scene; switch (kbd.keycode) { case Common::KEYCODE_F1: _vm->_dialogs->_pendingDialog = DIALOG_GAME_MENU; @@ -430,6 +431,16 @@ void Game::handleKeypress(const Common::KeyState &kbd) { case Common::KEYCODE_F7: _vm->_dialogs->_pendingDialog = DIALOG_RESTORE; break; + case Common::KEYCODE_PAGEUP: + scene._userInterface._scrollbarStrokeType = SCROLLBAR_UP; + scene._userInterface.changeScrollBar(); + break; + case Common::KEYCODE_PAGEDOWN: + scene._userInterface._scrollbarStrokeType = SCROLLBAR_DOWN; + scene._userInterface.changeScrollBar(); + break; + + default: break; } |