aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorThierry Crozat2018-03-24 18:17:24 +0000
committerThierry Crozat2018-03-24 18:17:24 +0000
commit7cbf5a92895cd35c0606a14a76ee48d2e3a0c557 (patch)
tree0afe1cb4fde2f16cb18dfa22ab241c7ccf10fde4 /engines/scumm
parent3b06ac7b1e509e991d0697d1e60eaeb1bbd8e661 (diff)
downloadscummvm-rg350-7cbf5a92895cd35c0606a14a76ee48d2e3a0c557.tar.gz
scummvm-rg350-7cbf5a92895cd35c0606a14a76ee48d2e3a0c557.tar.bz2
scummvm-rg350-7cbf5a92895cd35c0606a14a76ee48d2e3a0c557.zip
SCUMM: Fix interrupting speech not working with AZERTY keyboard
On my AZERTY keyboard the period is obtained using SHIFT + ; and the code checking the PERIOD keycode and no modifier was failing on both account. The manual for my French DOTT mentions the period key, but I have not actually checked how it worked with the original executable and if using the semicolon key without shift or using the colon key (which would be the period key on a English-US layout) works.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index 6ef7e4d7f4..9c5271e51c 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -560,7 +560,7 @@ void ScummEngine::processKeyboard(Common::KeyState lastKeyHit) {
} else if (pauseKeyEnabled && (lastKeyHit.keycode == Common::KEYCODE_SPACE && lastKeyHit.hasFlags(0))) {
pauseGame();
- } else if (talkstopKeyEnabled && (lastKeyHit.keycode == Common::KEYCODE_PERIOD && lastKeyHit.hasFlags(0))) {
+ } else if (talkstopKeyEnabled && lastKeyHit.ascii == '.') {
_talkDelay = 0;
if (_sound->_sfxMode & 2)
stopTalk();