aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-28 20:00:06 +0200
committerAdrian Frühwirth2018-03-28 20:00:42 +0200
commit2b9aa962d91b0cc70b33218b73f7c70cdaf2037c (patch)
tree49aeb5efd2c32b7d26c3f0777abc04d40785b9e8 /engines
parent74ce6af22e6916179f426a180a69cc0031ac8e05 (diff)
downloadscummvm-rg350-2b9aa962d91b0cc70b33218b73f7c70cdaf2037c.tar.gz
scummvm-rg350-2b9aa962d91b0cc70b33218b73f7c70cdaf2037c.tar.bz2
scummvm-rg350-2b9aa962d91b0cc70b33218b73f7c70cdaf2037c.zip
TUCKER: Check '.' instead of KEYCODE_PERIOD when skipping speech
See commit 7cbf5a9289 for more information.
Diffstat (limited to 'engines')
-rw-r--r--engines/tucker/tucker.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index 20384933c9..fcf8f59532 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -650,6 +650,12 @@ void TuckerEngine::parseEvents() {
while (_eventMan->pollEvent(ev)) {
switch (ev.type) {
case Common::EVENT_KEYDOWN:
+ switch (ev.kbd.ascii) {
+ // do not use KEYCODE_PERIOD here so that it works with most keyboard layouts
+ case '.':
+ _inputKeys[kInputKeySkipSpeech] = true;
+ break;
+ }
switch (ev.kbd.keycode) {
case Common::KEYCODE_f:
if (ev.kbd.hasFlags(Common::KBD_CTRL)) {
@@ -672,9 +678,6 @@ void TuckerEngine::parseEvents() {
_inputKeys[kInputKeyEscape] = true;
_inputKeys[kInputKeySkipSpeech] = true;
break;
- case Common::KEYCODE_PERIOD:
- _inputKeys[kInputKeySkipSpeech] = true;
- break;
case Common::KEYCODE_d:
if (ev.kbd.hasFlags(Common::KBD_CTRL)) {
this->getDebugger()->attach();