BLADERUNNER: Skip movies on keydown not keyup (#1696)
* BLADERUNNER: Skip movies on keydown not keyup * BLADERUNNER: Filter out key-repeats when skipping movies
This commit is contained in:
parent
f3cdbd2ea9
commit
9d0de3e168
1 changed files with 7 additions and 7 deletions
|
@ -1163,13 +1163,6 @@ void BladeRunnerEngine::handleKeyUp(Common::Event &event) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_vqaIsPlaying && (event.kbd.keycode == Common::KEYCODE_ESCAPE || (event.kbd.keycode == Common::KEYCODE_RETURN && event.kbd.flags == 0))) {
|
||||
_vqaStopIsRequested = true;
|
||||
_vqaIsPlaying = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!playerHasControl() || _isWalkingInterruptible) {
|
||||
return;
|
||||
}
|
||||
|
@ -1225,6 +1218,13 @@ void BladeRunnerEngine::handleKeyDown(Common::Event &event) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_vqaIsPlaying && !event.kbdRepeat && (event.kbd.keycode == Common::KEYCODE_ESCAPE || event.kbd.keycode == Common::KEYCODE_RETURN)) {
|
||||
_vqaStopIsRequested = true;
|
||||
_vqaIsPlaying = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!playerHasControl() || _isWalkingInterruptible || _actorIsSpeaking || _vqaIsPlaying) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue