mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 17:29:39 +00:00
VOYEUR: Lock screen mouse clicks now working
This commit is contained in:
parent
ff270eb61e
commit
1c34c1847e
@ -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:
|
||||
|
@ -303,6 +303,7 @@ bool VoyeurEngine::doLock() {
|
||||
|
||||
_eventsManager.delay(1);
|
||||
} while (!shouldQuit() && !_voy._incriminate);
|
||||
_voy._incriminate = false;
|
||||
} while (!shouldQuit() && key == -1);
|
||||
|
||||
_soundManager.abortVOCMap();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user