From 34227d1b545b12471341ae35e4b6a5c23bfa6338 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 May 2015 18:34:10 -0400 Subject: [PATCH] SHERLOCK: Simplify Events::getKey --- engines/sherlock/events.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp index 3b0b0dacc60..7f57625a3b4 100644 --- a/engines/sherlock/events.cpp +++ b/engines/sherlock/events.cpp @@ -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(); } /**