diff options
author | Paul Gilbert | 2014-04-08 22:04:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-08 22:04:43 -0400 |
commit | 531ebab4da814aac23a9b084772a6156bfb3b9b8 (patch) | |
tree | d30f2483c62590706428a90738cf53135381a3d8 /engines/mads/scene.cpp | |
parent | cd77110093c32f07b84325684ada9a425bdf6c93 (diff) | |
download | scummvm-rg350-531ebab4da814aac23a9b084772a6156bfb3b9b8.tar.gz scummvm-rg350-531ebab4da814aac23a9b084772a6156bfb3b9b8.tar.bz2 scummvm-rg350-531ebab4da814aac23a9b084772a6156bfb3b9b8.zip |
MADS: Added preliminary keyboard handling and keypress process stub
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r-- | engines/mads/scene.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp index ac57e0bcbf..8cb5fbcf87 100644 --- a/engines/mads/scene.cpp +++ b/engines/mads/scene.cpp @@ -509,7 +509,17 @@ void Scene::doSceneStep() { } void Scene::checkKeyboard() { - warning("TODO: Scene::checkKeyboard"); + if (_vm->_events->isKeyPressed()) { + Common::Event evt = _vm->_events->_pendingKeys.pop(); + _vm->_game->handleKeypress(evt); + } + + if ((_vm->_events->_mouseStatus & 3) == 3 && _vm->_game->_player._stepEnabled) { + _reloadSceneFlag = true; + _vm->_dialogs->_pendingDialog = DIALOG_GAME_MENU; + _action.clear(); + _action._selectedAction = 0; + } } void Scene::loadAnimation(const Common::String &resName, int abortTimers) { |