[Scummvm-cvs-logs] SF.net SVN: scummvm: [31436] scummvm/trunk/engines/kyra/gui_v2.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Apr 6 17:31:58 CEST 2008


Revision: 31436
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31436&view=rev
Author:   lordhoto
Date:     2008-04-06 08:31:57 -0700 (Sun, 06 Apr 2008)

Log Message:
-----------
Fixed mouse input handling when entering savefile description.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_v2.cpp

Modified: scummvm/trunk/engines/kyra/gui_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_v2.cpp	2008-04-06 15:29:09 UTC (rev 31435)
+++ scummvm/trunk/engines/kyra/gui_v2.cpp	2008-04-06 15:31:57 UTC (rev 31436)
@@ -1966,7 +1966,7 @@
 
 	_keyPressed.reset();
 	_cancelNameInput = _finishNameInput = false;
-	while (running) {
+	while (running && !_vm->quit()) {
 		processHighlights(_savenameMenu, _vm->_mouseX, _vm->_mouseY);
 		checkTextfieldInput();
 		if (_keyPressed.keycode == Common::KEYCODE_RETURN || _keyPressed.keycode == Common::KEYCODE_KP_ENTER || _finishNameInput) {
@@ -2057,11 +2057,12 @@
 			running = false;
 			break;
 
+		case Common::EVENT_LBUTTONDOWN:
 		case Common::EVENT_LBUTTONUP: {
 			Common::Point pos = _vm->getMousePos();
 			_vm->_mouseX = pos.x;
 			_vm->_mouseY = pos.y;
-			keys = 199;
+			keys = event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800);
 			running = false;
 			} 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