[Scummvm-cvs-logs] SF.net SVN: scummvm:[40099] scummvm/trunk/engines/agos/animation.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Fri Apr 24 12:11:59 CEST 2009


Revision: 40099
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40099&view=rev
Author:   Kirben
Date:     2009-04-24 10:11:58 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
Minor cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/animation.cpp

Modified: scummvm/trunk/engines/agos/animation.cpp
===================================================================
--- scummvm/trunk/engines/agos/animation.cpp	2009-04-24 10:07:34 UTC (rev 40098)
+++ scummvm/trunk/engines/agos/animation.cpp	2009-04-24 10:11:58 UTC (rev 40099)
@@ -100,11 +100,11 @@
 	while (eventMan->pollEvent(event)) {
 		switch (event.type) {
 		case Common::EVENT_KEYDOWN:
-			if (event.kbd.keycode == Common::KEYCODE_PAUSE)
-				_vm->pause();
-			if (event.kbd.ascii == 27) {
+			if (event.kbd.keycode == Common::KEYCODE_ESCAPE) {
 				_leftButtonDown = true;
 				_rightButtonDown = true;
+			} else if (event.kbd.keycode == Common::KEYCODE_PAUSE) {
+				_vm->pause();
 			}
 			break;
 		case Common::EVENT_LBUTTONDOWN:


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