diff options
author | Strangerke | 2014-02-17 21:48:05 +0100 |
---|---|---|
committer | Strangerke | 2014-02-17 21:48:05 +0100 |
commit | 1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c (patch) | |
tree | e604571d7fbcc563fe7fb79f799fd9e04472a140 | |
parent | f660e3ba11c80133f276b78a9e75c4c119f5302a (diff) | |
download | scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.tar.gz scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.tar.bz2 scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.zip |
VOYEUR: Remove a useless keystate variable
-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; |