mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 04:07:05 +00:00
SHERLOCK: Simplify Events::getKey
This commit is contained in:
parent
844d801259
commit
34227d1b54
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user