diff options
author | Einar Johan Trøan Sømåen | 2012-07-27 16:01:03 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-27 16:01:03 +0200 |
commit | 3ff2e2cc936dce22b74699c30a160389c4f50447 (patch) | |
tree | 7f5468e91ce5143c23ca613809ef217a23c540ce | |
parent | df5943ae59350b37e6f811ec2e9a968d0660fcab (diff) | |
download | scummvm-rg350-3ff2e2cc936dce22b74699c30a160389c4f50447.tar.gz scummvm-rg350-3ff2e2cc936dce22b74699c30a160389c4f50447.tar.bz2 scummvm-rg350-3ff2e2cc936dce22b74699c30a160389c4f50447.zip |
WINTERMUTE: Support the SPACE-key as a printable character.
-rw-r--r-- | engines/wintermute/base/base_keyboard_state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_keyboard_state.cpp b/engines/wintermute/base/base_keyboard_state.cpp index 3bad8f6012..2b77cb23ca 100644 --- a/engines/wintermute/base/base_keyboard_state.cpp +++ b/engines/wintermute/base/base_keyboard_state.cpp @@ -204,7 +204,8 @@ bool BaseKeyboardState::readKey(Common::Event *event) { //_currentPrintable = (event->type == SDL_TEXTINPUT); // TODO
_currentCharCode = keyCodeToVKey(event);
if ((_currentCharCode <= Common::KEYCODE_z && _currentCharCode >= Common::KEYCODE_a) ||
- (_currentCharCode <= Common::KEYCODE_9 && _currentCharCode >= Common::KEYCODE_0)) {
+ (_currentCharCode <= Common::KEYCODE_9 && _currentCharCode >= Common::KEYCODE_0) ||
+ (_currentCharCode == Common::KEYCODE_SPACE)) {
_currentPrintable = true;
} else {
_currentPrintable = false;
|