aboutsummaryrefslogtreecommitdiff
path: root/backends/wince
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wince')
-rw-r--r--backends/wince/CEActionsPocket.cpp8
-rw-r--r--backends/wince/CEActionsPocket.h11
-rw-r--r--backends/wince/CEActionsSmartphone.cpp12
-rw-r--r--backends/wince/CEActionsSmartphone.h7
4 files changed, 26 insertions, 12 deletions
diff --git a/backends/wince/CEActionsPocket.cpp b/backends/wince/CEActionsPocket.cpp
index 339d37fd7b..0098961bfb 100644
--- a/backends/wince/CEActionsPocket.cpp
+++ b/backends/wince/CEActionsPocket.cpp
@@ -42,7 +42,8 @@ const String pocketActionNames[] = {
"Cursor",
"Free look",
"Zoom up",
- "Zoom down"
+ "Zoom down",
+ "FT Cheat"
};
void CEActionsPocket::init(GameDetector &detector) {
@@ -153,6 +154,9 @@ void CEActionsPocket::initInstanceGame() {
_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 @@ bool CEActionsPocket::perform(ActionType action, bool pushed) {
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 @@ bool CEActionsPocket::perform(ActionType action, bool pushed) {
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:
diff --git a/backends/wince/CEActionsPocket.h b/backends/wince/CEActionsPocket.h
index 3f1d64ac3c..a473371a60 100644
--- a/backends/wince/CEActionsPocket.h
+++ b/backends/wince/CEActionsPocket.h
@@ -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 @@ enum pocketActionType {
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 @@ class CEActionsPocket : public CEActions {
bool _zoom_needed;
};
-#endif \ No newline at end of file
+#endif
diff --git a/backends/wince/CEActionsSmartphone.cpp b/backends/wince/CEActionsSmartphone.cpp
index 4d7cb447a8..c2e59132a0 100644
--- a/backends/wince/CEActionsSmartphone.cpp
+++ b/backends/wince/CEActionsSmartphone.cpp
@@ -42,13 +42,14 @@ const String smartphoneActionNames[] = {
"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 @@ void CEActionsSmartphone::initInstanceGame() {
_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 @@ bool CEActionsSmartphone::perform(ActionType action, bool pushed) {
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 @@ bool CEActionsSmartphone::perform(ActionType action, bool pushed) {
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:
diff --git a/backends/wince/CEActionsSmartphone.h b/backends/wince/CEActionsSmartphone.h
index e83e6773f2..5a48b4c762 100644
--- a/backends/wince/CEActionsSmartphone.h
+++ b/backends/wince/CEActionsSmartphone.h
@@ -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 @@ enum smartphoneActionType {
SMARTPHONE_ACTION_SAVE,
SMARTPHONE_ACTION_SKIP,
SMARTPHONE_ACTION_ZONE,
+ SMARTPHONE_ACTION_FT_CHEAT,
- SMARTPHONE_ACTION_LAST
+ SMARTPHONE_ACTION_LAST
};
@@ -74,4 +75,4 @@ class CEActionsSmartphone : public CEActions {
#endif
-//#endif \ No newline at end of file
+//#endif