Add KEY_ALL_SKIP for WinCE
svn-id: r8939
This commit is contained in:
parent
cc23b25cde
commit
524991b073
2 changed files with 20 additions and 1 deletions
|
@ -61,7 +61,8 @@ enum {
|
|||
NUM_LOCALSCRIPT = 60,
|
||||
NUM_SENTENCE = 6,
|
||||
NUM_SHADOW_PALETTE = 8,
|
||||
KEY_SET_OPTIONS = 3456 // WinCE
|
||||
KEY_SET_OPTIONS = 3456, // WinCE
|
||||
KEY_ALL_SKIP = 3457 // WinCE
|
||||
};
|
||||
|
||||
/** SCUMM feature flags. */
|
||||
|
|
|
@ -1997,6 +1997,24 @@ void Scumm::processKbd() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_lastKeyHit == KEY_ALL_SKIP) {
|
||||
// Skip cutscene
|
||||
if (_insaneState) {
|
||||
_videoFinished = true;
|
||||
return;
|
||||
}
|
||||
else
|
||||
if (vm.cutScenePtr[vm.cutSceneStackPointer])
|
||||
_lastKeyHit = (uint16)VAR(VAR_CUTSCENEEXIT_KEY);
|
||||
else
|
||||
// Skip talk
|
||||
if (_talkDelay > 0)
|
||||
_lastKeyHit = (uint16)VAR(VAR_TALKSTOP_KEY);
|
||||
else
|
||||
// Escape
|
||||
_lastKeyHit = 27;
|
||||
}
|
||||
|
||||
if (VAR_RESTART_KEY != 0xFF && _lastKeyHit == VAR(VAR_RESTART_KEY)) {
|
||||
warning("Restart not implemented");
|
||||
//restart();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue