aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-05-02 23:46:23 +0000
committerTravis Howell2006-05-02 23:46:23 +0000
commit2552f6e17e68d7dc03099a74f6a74d4b0a330305 (patch)
tree02d4b4231a76f50c7ea0b8ac56e601e8b2359cd6 /engines
parent94ea76c519da74ce8eeea9324777d6150f768f7c (diff)
downloadscummvm-rg350-2552f6e17e68d7dc03099a74f6a74d4b0a330305.tar.gz
scummvm-rg350-2552f6e17e68d7dc03099a74f6a74d4b0a330305.tar.bz2
scummvm-rg350-2552f6e17e68d7dc03099a74f6a74d4b0a330305.zip
Allow skipping cutscenes via ESC key too
svn-id: r22288
Diffstat (limited to 'engines')
-rw-r--r--engines/simon/animation.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp
index eb4b5294d8..89f0ac256c 100644
--- a/engines/simon/animation.cpp
+++ b/engines/simon/animation.cpp
@@ -73,8 +73,7 @@ bool MoviePlayer::load(const char *filename) {
// Change file extension to dxa
strcpy(filename2, filename);
- int len = strlen(filename2) - 4;
- filename2[len++] = '.';
+ int len = strlen(filename2) - 3;
filename2[len++] = 'd';
filename2[len++] = 'x';
filename2[len++] = 'a';
@@ -235,6 +234,12 @@ void MoviePlayer::handleNextFrame() {
OSystem::Event event;
while (_vm->_system->pollEvent(event)) {
switch (event.type) {
+ case OSystem::EVENT_KEYDOWN:
+ if (event.kbd.ascii == 27) {
+ _leftButtonDown = true;
+ _rightButtonDown = true;
+ }
+ break;
case OSystem::EVENT_LBUTTONDOWN:
_leftButtonDown = true;
break;