diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/event.cpp | 6 | ||||
-rw-r--r-- | engines/sludge/event.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/sludge/event.cpp b/engines/sludge/event.cpp index 5ab237b3c8..221140055c 100644 --- a/engines/sludge/event.cpp +++ b/engines/sludge/event.cpp @@ -44,11 +44,13 @@ EventManager::EventManager(SludgeEngine *vm) { _weAreDoneSoQuit = 0; + _input.leftClick = _input.rightClick = _input.justMoved = _input.leftRelease = _input.rightRelease = false; + _input.keyPressed = 0; + _currentEvents = new EventHandlers; for (uint i = 0; i < EVENT_FUNC_NB; ++i) { - _mainHandlers.func[i] = 0; + _currentEvents->func[i] = 0; } - _currentEvents = &_mainHandlers; } EventManager::~EventManager() { diff --git a/engines/sludge/event.h b/engines/sludge/event.h index e85752987b..ddb973f4ec 100644 --- a/engines/sludge/event.h +++ b/engines/sludge/event.h @@ -81,7 +81,6 @@ private: int _weAreDoneSoQuit; - EventHandlers _mainHandlers; EventHandlers *_currentEvents; }; |