mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
TUCKER: Allow skipping speech
Escape, period or right mouse click skips one sentence at a time.
This commit is contained in:
parent
c55ee3f967
commit
842c67fc34
@ -653,6 +653,10 @@ void TuckerEngine::parseEvents() {
|
||||
break;
|
||||
case Common::KEYCODE_ESCAPE:
|
||||
_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)) {
|
||||
@ -678,6 +682,7 @@ void TuckerEngine::parseEvents() {
|
||||
case Common::EVENT_RBUTTONDOWN:
|
||||
updateCursorPos(ev.mouse.x, ev.mouse.y);
|
||||
_mouseButtonsMask |= 2;
|
||||
_inputKeys[kInputKeySkipSpeech] = true;
|
||||
break;
|
||||
case Common::EVENT_RBUTTONUP:
|
||||
updateCursorPos(ev.mouse.x, ev.mouse.y);
|
||||
@ -692,6 +697,12 @@ void TuckerEngine::parseEvents() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (_inputKeys[kInputKeySkipSpeech]) {
|
||||
if (isSpeechSoundPlaying()) {
|
||||
stopSpeechSound();
|
||||
}
|
||||
_inputKeys[kInputKeySkipSpeech] = false;
|
||||
}
|
||||
_quitGame = shouldQuit();
|
||||
}
|
||||
|
||||
|
@ -212,7 +212,8 @@ enum InputKey {
|
||||
kInputKeyToggleInventory,
|
||||
kInputKeyToggleTextSpeech,
|
||||
kInputKeyHelp,
|
||||
kInputKeyCount
|
||||
kInputKeyCount,
|
||||
kInputKeySkipSpeech
|
||||
};
|
||||
|
||||
enum GameFlag {
|
||||
|
Loading…
x
Reference in New Issue
Block a user