diff options
Diffstat (limited to 'engines')
| -rw-r--r-- | engines/voyeur/events.cpp | 7 | ||||
| -rw-r--r-- | engines/voyeur/events.h | 1 | 
2 files changed, 1 insertions, 7 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 3b761e899e..3b2369c1e1 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -72,7 +72,6 @@ EventsManager::EventsManager(): _intPtr(_gameData),  	_recordBlinkCounter = 0;  	_cursorBlinked = false; -	Common::fill(&_keyState[0], &_keyState[256], false);  	Common::fill(&_cycleTime[0], &_cycleTime[4], 0);  	Common::fill(&_cycleNext[0], &_cycleNext[4], (byte *)nullptr);  	_cyclePtr = NULL; @@ -260,6 +259,7 @@ void EventsManager::pollEvents() {  		switch (event.type) {  		case Common::EVENT_QUIT:  		case Common::EVENT_RTL: +		case Common::EVENT_KEYUP:  			return;  		case Common::EVENT_KEYDOWN: @@ -268,13 +268,8 @@ void EventsManager::pollEvents() {  				// Attach to the debugger  				_vm->_debugger.attach();  				_vm->_debugger.onFrame(); -			} else { -				_keyState[(byte)toupper(event.kbd.ascii)] = true;  			}  			return; -		case Common::EVENT_KEYUP: -			_keyState[(byte)toupper(event.kbd.ascii)] = false; -			return;  		case Common::EVENT_LBUTTONDOWN:  			_mouseButton = 1;  			_vm->_eventsManager._newLeftClick = true; diff --git a/engines/voyeur/events.h b/engines/voyeur/events.h index 6167a89915..eb6cf6d77f 100644 --- a/engines/voyeur/events.h +++ b/engines/voyeur/events.h @@ -72,7 +72,6 @@ private:  	bool _counterFlag;  	uint32 _gameCounter;  	uint32 _recordBlinkCounter;	// Original field was called _joe :) -	bool _keyState[256];  	int _mouseButton;  	Common::List<IntNode *> _intNodes;  	Common::Point _mousePos;  | 
