aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-27 16:01:03 +0200
committerEinar Johan Trøan Sømåen2012-07-27 16:01:03 +0200
commit3ff2e2cc936dce22b74699c30a160389c4f50447 (patch)
tree7f5468e91ce5143c23ca613809ef217a23c540ce
parentdf5943ae59350b37e6f811ec2e9a968d0660fcab (diff)
downloadscummvm-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.cpp3
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;