diff options
author | Max Horn | 2009-07-18 15:11:19 +0000 |
---|---|---|
committer | Max Horn | 2009-07-18 15:11:19 +0000 |
commit | 24e18ae2154e7affb87368f09d5a4ebf78d2430e (patch) | |
tree | 7854dd5d0a94a0098da72387e65907f4ee860be2 /engines/agos | |
parent | 1d40f7849965e8b758b88197820daf9c6af4d120 (diff) | |
download | scummvm-rg350-24e18ae2154e7affb87368f09d5a4ebf78d2430e.tar.gz scummvm-rg350-24e18ae2154e7affb87368f09d5a4ebf78d2430e.tar.bz2 scummvm-rg350-24e18ae2154e7affb87368f09d5a4ebf78d2430e.zip |
AGOS: Fixed backspace under OS X in Personal Nightmare
svn-id: r42591
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/input.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp index cf6e808384..5c37fe620a 100644 --- a/engines/agos/input.cpp +++ b/engines/agos/input.cpp @@ -664,10 +664,11 @@ void AGOSEngine_PN::handleKeyboard() { } } if (chr == -1) { - chr = _keyPressed.ascii; - if (chr == 8 || chr == 13) { + if (_keyPressed.keycode == Common::KEYCODE_BACKSPACE || _keyPressed.keycode == Common::KEYCODE_RETURN) { + chr = _keyPressed.keycode; addChar(chr); } else if (!(_videoLockOut & 0x10)) { + chr = _keyPressed.ascii; if (chr >= 32) addChar(chr); } |