TUCKER: Check '.' instead of KEYCODE_PERIOD when skipping speech

See commit 7cbf5a9289 for more information.
This commit is contained in:
Adrian Frühwirth 2018-03-28 20:00:06 +02:00
parent 74ce6af22e
commit 2b9aa962d9

View file

@ -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();