[Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActionsSmartphone.cpp,1.11,1.12

Nicolas Bacca arisme at users.sourceforge.net
Sun Oct 16 15:51:51 CEST 2005


Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11552/backends/wince

Modified Files:
	CEActionsSmartphone.cpp 
Log Message:
Support for Gobliiins and ITE engines

Index: CEActionsSmartphone.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEActionsSmartphone.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CEActionsSmartphone.cpp	30 Jul 2005 21:10:55 -0000	1.11
+++ CEActionsSmartphone.cpp	16 Oct 2005 22:48:53 -0000	1.12
@@ -91,6 +91,7 @@
 
 void CEActionsSmartphone::initInstanceMain(OSystem *mainSystem) {
 	_CESystem = static_cast<OSystem_WINCE3*>(mainSystem);
+
 	GUI_Actions::initInstanceMain(mainSystem);
 	// Mouse Up
 	_action_enabled[SMARTPHONE_ACTION_UP] = true;
@@ -111,6 +112,8 @@
 	bool is_sky = (_detector->_targetName == "sky");
 	bool is_queen = (_detector->_targetName == "queen");
 	bool is_gob = (strncmp(_detector->_targetName.c_str(), "gob", 3) == 0);
+	bool is_ite = ((strncmp(_detector->_targetName.c_str(), "ite", 3) == 0) ||
+				  (strncmp(_detector->_targetName.c_str(), "ihnm", 4) == 0));
 
 	GUI_Actions::initInstanceGame();
 
@@ -123,9 +126,9 @@
 	if (is_simon || is_gob)
 		_action_enabled[SMARTPHONE_ACTION_SAVE] = false;
 	else
-	if (is_queen) {
+	if (is_queen || is_ite) {
 		_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
-		_key_action[SMARTPHONE_ACTION_SAVE].setAscii(286); // F1 key for FOTAQ
+		_key_action[SMARTPHONE_ACTION_SAVE].setAscii(286); // F1 key for FOTAQ and ITE
 	}
 	else
 	if (is_sky) {
@@ -138,7 +141,7 @@
 	}
 	// Skip
 	_action_enabled[SMARTPHONE_ACTION_SKIP] = true;
-	if (is_simon || is_sky || is_gob)
+	if (is_simon || is_sky || is_gob || is_ite)
 		_key_action[SMARTPHONE_ACTION_SKIP].setAscii(VK_ESCAPE);
 	else
 		_key_action[SMARTPHONE_ACTION_SKIP].setAscii(KEY_ALL_SKIP);
@@ -194,7 +197,7 @@
 			return true;
 		case SMARTPHONE_ACTION_RIGHT:
 			_CESystem->move_cursor_right();
-			return true;
+			return true; 
 		case SMARTPHONE_ACTION_ZONE:
 			_CESystem->switch_zone();
 			return true;





More information about the Scummvm-git-logs mailing list