From 7cbf5a92895cd35c0606a14a76ee48d2e3a0c557 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 24 Mar 2018 18:17:24 +0000 Subject: 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. --- engines/scumm/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm') 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(); -- cgit v1.2.3