[Scummvm-cvs-logs] SF.net SVN: scummvm: [22288] scummvm/trunk/engines/simon/animation.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Tue May 2 16:47:02 CEST 2006
Revision: 22288
Author: kirben
Date: 2006-05-02 16:46:23 -0700 (Tue, 02 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22288&view=rev
Log Message:
-----------
Allow skipping cutscenes via ESC key too
Modified Paths:
--------------
scummvm/trunk/engines/simon/animation.cpp
Modified: scummvm/trunk/engines/simon/animation.cpp
===================================================================
--- scummvm/trunk/engines/simon/animation.cpp 2006-05-02 23:38:36 UTC (rev 22287)
+++ scummvm/trunk/engines/simon/animation.cpp 2006-05-02 23:46:23 UTC (rev 22288)
@@ -73,8 +73,7 @@
// 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 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list