aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-18 18:34:10 -0400
committerPaul Gilbert2015-05-18 18:34:10 -0400
commit34227d1b545b12471341ae35e4b6a5c23bfa6338 (patch)
treee7d8b30ab308d394071712ac4bda837a02a78e42
parent844d8012598bf1f43b7eff4c8d7b9a7be9287b18 (diff)
downloadscummvm-rg350-34227d1b545b12471341ae35e4b6a5c23bfa6338.tar.gz
scummvm-rg350-34227d1b545b12471341ae35e4b6a5c23bfa6338.tar.bz2
scummvm-rg350-34227d1b545b12471341ae35e4b6a5c23bfa6338.zip
SHERLOCK: Simplify Events::getKey
-rw-r--r--engines/sherlock/events.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp
index 3b0b0dacc6..7f57625a3b 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();
}
/**