diff options
Diffstat (limited to 'engines/draci/draci.cpp')
-rw-r--r-- | engines/draci/draci.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index e14c9343c2..134b2a3cfa 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -218,6 +218,15 @@ bool DraciEngine::handleEvents() { else if (event.kbd.keycode == Common::KEYCODE_w) { _showWalkingMap = !_showWalkingMap; } + else if (event.kbd.keycode == Common::KEYCODE_i) { + if(_game->getLoopStatus() == kStatusInventory && + _game->getLoopSubstatus() == kSubstatusOrdinary) { + _game->inventoryDone(); + } else if (_game->getLoopStatus() == kStatusOrdinary && + _game->getLoopSubstatus() == kSubstatusOrdinary) { + _game->inventoryInit(); + } + } break; default: _mouse->handleEvent(event); |