aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_keyboard_state.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-12-13 20:40:40 +0100
committerEinar Johan Trøan Sømåen2012-12-13 20:40:40 +0100
commite30271e6f6c4a09843ea85e1895f8093832f5af4 (patch)
treee56f390972f2631e78c884334613997b95081891 /engines/wintermute/base/base_keyboard_state.cpp
parentc785a2bca62b60f16a42275d8bb84e69033b6f9c (diff)
downloadscummvm-rg350-e30271e6f6c4a09843ea85e1895f8093832f5af4.tar.gz
scummvm-rg350-e30271e6f6c4a09843ea85e1895f8093832f5af4.tar.bz2
scummvm-rg350-e30271e6f6c4a09843ea85e1895f8093832f5af4.zip
WINTERMUTE: Correct the char-code check in BaseKeyboardState
Diffstat (limited to 'engines/wintermute/base/base_keyboard_state.cpp')
-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 3123183d00..072a1bb71b 100644
--- a/engines/wintermute/base/base_keyboard_state.cpp
+++ b/engines/wintermute/base/base_keyboard_state.cpp
@@ -200,7 +200,8 @@ const char *BaseKeyboardState::scToString() {
bool BaseKeyboardState::readKey(Common::Event *event) {
//_currentPrintable = (event->type == SDL_TEXTINPUT); // TODO
_currentCharCode = keyCodeToVKey(event);
- if ((_currentCharCode <= 0x7E && _currentCharCode >= 0x20) || (_currentCharCode <= 0xFF && _currentCharCode >= 0x1F)) {
+ // Verify that this is a printable ISO-8859-character (including the upper charset)
+ if ((_currentCharCode <= 0x7E && _currentCharCode >= 0x20) || (_currentCharCode <= 0xFF && _currentCharCode >= 0xA0)) {
_currentPrintable = true;
} else {
_currentPrintable = false;