SHERLOCK: Simplify Events::getKey

This commit is contained in:
Paul Gilbert 2015-05-18 18:34:10 -04:00
parent 844d801259
commit 34227d1b54

View File

@ -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();
}
/**