Skip to content

Commit

Permalink
SHERLOCK: Simplify Events::getKey
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 18, 2015
1 parent 844d801 commit 34227d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions engines/sherlock/events.cpp
Expand Up @@ -198,11 +198,7 @@ bool Events::checkForNextFrameCounter() {
* Get a pending keypress
*/
Common::KeyState Events::getKey() {
Common::KeyState keyState = _pendingKeys.pop();
if ((keyState.flags & Common::KBD_SHIFT) != 0)
keyState.ascii = toupper(keyState.ascii);

return keyState;
return _pendingKeys.pop();
}

/**
Expand Down

0 comments on commit 34227d1

Please sign in to comment.