diff options
author | Strangerke | 2014-03-24 18:17:54 +0100 |
---|---|---|
committer | Strangerke | 2014-03-24 18:17:54 +0100 |
commit | 4b8d0c59167bb59bbc21868edd4d5a361e3e2907 (patch) | |
tree | ebea027825c7d21883d4ed456c931f4da3c7fc23 /engines/voyeur | |
parent | 72b1d82d4fdb6defec3474109a3ec44670f738cb (diff) | |
download | scummvm-rg350-4b8d0c59167bb59bbc21868edd4d5a361e3e2907.tar.gz scummvm-rg350-4b8d0c59167bb59bbc21868edd4d5a361e3e2907.tar.bz2 scummvm-rg350-4b8d0c59167bb59bbc21868edd4d5a361e3e2907.zip |
VOYEUR: Remove useless usage of pointer in EventManager
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/events.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 03ea4d3252..9a3c6d00ff 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -266,18 +266,18 @@ void EventsManager::pollEvents() { } return; case Common::EVENT_LBUTTONDOWN: - _vm->_eventsManager->_newLeftClick = true; - _vm->_eventsManager->_newMouseClicked = true; + _newLeftClick = true; + _newMouseClicked = true; return; case Common::EVENT_RBUTTONDOWN: - _vm->_eventsManager->_newRightClick = true; - _vm->_eventsManager->_newMouseClicked = true; + _newRightClick = true; + _newMouseClicked = true; return; case Common::EVENT_LBUTTONUP: case Common::EVENT_RBUTTONUP: - _vm->_eventsManager->_newMouseClicked = false; - _vm->_eventsManager->_newLeftClick = false; - _vm->_eventsManager->_newRightClick = false; + _newMouseClicked = false; + _newLeftClick = false; + _newRightClick = false; return; case Common::EVENT_MOUSEMOVE: _mousePos = event.mouse; @@ -574,13 +574,13 @@ void EventsManager::getMouseInfo() { } } - _vm->_eventsManager->_mouseClicked = _vm->_eventsManager->_newMouseClicked; - _vm->_eventsManager->_leftClick = _vm->_eventsManager->_newLeftClick; - _vm->_eventsManager->_rightClick = _vm->_eventsManager->_newRightClick; + _mouseClicked = _newMouseClicked; + _leftClick = _newLeftClick; + _rightClick = _newRightClick; - _vm->_eventsManager->_newMouseClicked = false; - _vm->_eventsManager->_newLeftClick = false; - _vm->_eventsManager->_newRightClick = false; + _newMouseClicked = false; + _newLeftClick = false; + _newRightClick = false; } void EventsManager::startCursorBlink() { |