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 /engines/voyeur/events.cpp | |
parent | f660e3ba11c80133f276b78a9e75c4c119f5302a (diff) | |
download | scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.tar.gz scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.tar.bz2 scummvm-rg350-1b46f5f6160a5d3ee8a470a1a64eb7ed8994ca6c.zip |
VOYEUR: Remove a useless keystate variable
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r-- | engines/voyeur/events.cpp | 7 |
1 files changed, 1 insertions, 6 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; |