diff options
author | Einar Johan Trøan Sømåen | 2012-12-13 20:40:40 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-13 20:40:40 +0100 |
commit | e30271e6f6c4a09843ea85e1895f8093832f5af4 (patch) | |
tree | e56f390972f2631e78c884334613997b95081891 /engines/wintermute | |
parent | c785a2bca62b60f16a42275d8bb84e69033b6f9c (diff) | |
download | scummvm-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')
-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 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; |