From 85bf130a50acd6445042889f5c67a9489d894d51 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Mon, 17 Aug 2009 18:51:45 +0000 Subject: Enabled hotkey 'i' for accessing or exiting the inventory. svn-id: r43488 --- engines/draci/draci.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/draci') 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); -- cgit v1.2.3