VOYEUR: Lock screen mouse clicks now working

This commit is contained in:
Paul Gilbert 2013-06-20 21:42:48 -04:00
parent ff270eb61e
commit 1c34c1847e
3 changed files with 4 additions and 1 deletions

View File

@ -194,12 +194,14 @@ void EventsManager::pollEvents() {
return;
case Common::EVENT_LBUTTONDOWN:
_mouseButton = 1;
_vm->_voy._incriminate = true;
return;
case Common::EVENT_RBUTTONDOWN:
_mouseButton = 2;
return;
case Common::EVENT_LBUTTONUP:
case Common::EVENT_RBUTTONUP:
_vm->_voy._incriminate = false;
_mouseButton = 0;
return;
case Common::EVENT_MOUSEMOVE:

View File

@ -303,6 +303,7 @@ bool VoyeurEngine::doLock() {
_eventsManager.delay(1);
} while (!shouldQuit() && !_voy._incriminate);
_voy._incriminate = false;
} while (!shouldQuit() && key == -1);
_soundManager.abortVOCMap();

View File

@ -66,7 +66,6 @@ private:
Common::RandomSource _randomSource;
BoltFile *_bVoy;
SVoy _voy;
Common::Array<int> _resolves;
FontInfoResource _defaultFontInfo;
@ -90,6 +89,7 @@ public:
FilesManager _filesManager;
GraphicsManager _graphicsManager;
SoundManager _soundManager;
SVoy _voy;
public:
VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc);
virtual ~VoyeurEngine();