[Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActionsPocket.cpp,1.8,1.9 CEActionsPocket.h,1.3,1.4 CEActionsSmartphone.cpp,1.5,1.6 CEActionsSmartphone.h,1.3,1.4

Nicolas Bacca arisme at users.sourceforge.net
Sat Mar 26 05:29:48 CET 2005


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

Modified Files:
	CEActionsPocket.cpp CEActionsPocket.h CEActionsSmartphone.cpp 
	CEActionsSmartphone.h 
Log Message:
Add Insane Cheat action

Index: CEActionsPocket.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEActionsPocket.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CEActionsPocket.cpp	28 Jan 2005 23:45:51 -0000	1.8
+++ CEActionsPocket.cpp	26 Mar 2005 13:29:04 -0000	1.9
@@ -42,7 +42,8 @@
 	"Cursor",
 	"Free look",
 	"Zoom up",
-	"Zoom down"
+	"Zoom down",
+	"FT Cheat"
 };
 
 void CEActionsPocket::init(GameDetector &detector) {
@@ -153,6 +154,9 @@
 		_action_enabled[POCKET_ACTION_ZOOM_UP] = true;
 		_action_enabled[POCKET_ACTION_ZOOM_DOWN] = true;
 	}
+	// FT Cheat
+	_action_enabled[POCKET_ACTION_FT_CHEAT] = true;
+	_key_action[POCKET_ACTION_FT_CHEAT].setAscii(86); // shift-V
 }
 
 
@@ -168,6 +172,7 @@
 		case POCKET_ACTION_PAUSE:
 		case POCKET_ACTION_SAVE:
 		case POCKET_ACTION_SKIP:
+		case POCKET_ACTION_FT_CHEAT:
 			EventsBuffer::simulateKey(&_key_action[action], false);
 			return true;
 
@@ -179,6 +184,7 @@
 		case POCKET_ACTION_PAUSE:
 		case POCKET_ACTION_SAVE:
 		case POCKET_ACTION_SKIP:
+		case POCKET_ACTION_FT_CHEAT:
 			EventsBuffer::simulateKey(&_key_action[action], true);
 			return true;
 		case POCKET_ACTION_KEYBOARD:

Index: CEActionsPocket.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEActionsPocket.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CEActionsPocket.h	1 Jan 2005 16:08:48 -0000	1.3
+++ CEActionsPocket.h	26 Mar 2005 13:29:04 -0000	1.4
@@ -33,7 +33,7 @@
 
 #include "CEActions.h"
 
-#define POCKET_ACTION_VERSION 3
+#define POCKET_ACTION_VERSION 4 
 
 enum pocketActionType {
         POCKET_ACTION_PAUSE = 0,
@@ -46,10 +46,11 @@
         POCKET_ACTION_RIGHTCLICK,
         POCKET_ACTION_CURSOR,
         POCKET_ACTION_FREELOOK,
-		POCKET_ACTION_ZOOM_UP,
-		POCKET_ACTION_ZOOM_DOWN,
+	POCKET_ACTION_ZOOM_UP,
+	POCKET_ACTION_ZOOM_DOWN,
+	POCKET_ACTION_FT_CHEAT,
 
-		POCKET_ACTION_LAST
+	POCKET_ACTION_LAST
 };
 
 class CEActionsPocket : public CEActions {
@@ -80,4 +81,4 @@
 		bool _zoom_needed;
 	};	
 
-#endif
\ No newline at end of file
+#endif

Index: CEActionsSmartphone.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEActionsSmartphone.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CEActionsSmartphone.cpp	28 Jan 2005 23:45:51 -0000	1.5
+++ CEActionsSmartphone.cpp	26 Mar 2005 13:29:04 -0000	1.6
@@ -42,13 +42,14 @@
 	"Right Click",
 	"Save",
 	"Skip",
-	"Zone"
+	"Zone",
+	"FT Cheat"
 };
 
 #ifdef SIMU_SMARTPHONE
-const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8 };
+const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8, 0 };
 #else
-const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9' };
+const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9', 0 };
 #endif
 
 void CEActionsSmartphone::init(GameDetector &detector) {
@@ -138,6 +139,9 @@
 		_key_action[SMARTPHONE_ACTION_SKIP].setAscii(Scumm::KEY_ALL_SKIP);
 	// Zone
 	_action_enabled[SMARTPHONE_ACTION_ZONE] = true;
+	// FT Cheat
+	_action_enabled[SMARTPHONE_ACTION_FT_CHEAT] = true;
+	_key_action[SMARTPHONE_ACTION_FT_CHEAT].setAscii(86); // shift-V
 }
 
 
@@ -155,6 +159,7 @@
 				return true;
 			case SMARTPHONE_ACTION_SAVE:
 			case SMARTPHONE_ACTION_SKIP:
+			case SMARTPHONE_ACTION_FT_CHEAT:
 				EventsBuffer::simulateKey(&_key_action[action], false);
 				return true;
 		}
@@ -164,6 +169,7 @@
 	switch (action) {
 		case SMARTPHONE_ACTION_SAVE:
 		case SMARTPHONE_ACTION_SKIP:
+		case SMARTPHONE_ACTION_FT_CHEAT:
 			EventsBuffer::simulateKey(&_key_action[action], true);
 			return true;
 		case SMARTPHONE_ACTION_RIGHTCLICK:

Index: CEActionsSmartphone.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEActionsSmartphone.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CEActionsSmartphone.h	1 Jan 2005 16:08:48 -0000	1.3
+++ CEActionsSmartphone.h	26 Mar 2005 13:29:04 -0000	1.4
@@ -35,7 +35,7 @@
 
 #include "CEActions.h"
 
-#define SMARTPHONE_ACTION_VERSION 3
+#define SMARTPHONE_ACTION_VERSION 4 
 
 enum smartphoneActionType {
         SMARTPHONE_ACTION_UP = 0,
@@ -47,8 +47,9 @@
         SMARTPHONE_ACTION_SAVE,
         SMARTPHONE_ACTION_SKIP,
         SMARTPHONE_ACTION_ZONE,
+	SMARTPHONE_ACTION_FT_CHEAT,
 
-		SMARTPHONE_ACTION_LAST
+	SMARTPHONE_ACTION_LAST
 };
 
 
@@ -74,4 +75,4 @@
 
 #endif
 
-//#endif
\ No newline at end of file
+//#endif





More information about the Scummvm-git-logs mailing list