aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostas Nakos2006-07-30 09:03:10 +0000
committerKostas Nakos2006-07-30 09:03:10 +0000
commitc1a24c9cdb270b6b65c2618d51abdc6dca3bc6c4 (patch)
tree0946dd9591ed6fbc68c01050f1b898a6b6b5b264
parent6cc1a57d3bf11f84b78bdb0e72b5e6036a19be50 (diff)
downloadscummvm-rg350-c1a24c9cdb270b6b65c2618d51abdc6dca3bc6c4.tar.gz
scummvm-rg350-c1a24c9cdb270b6b65c2618d51abdc6dca3bc6c4.tar.bz2
scummvm-rg350-c1a24c9cdb270b6b65c2618d51abdc6dca3bc6c4.zip
CinE Engine support (backport)
svn-id: r23625
-rw-r--r--backends/platform/wince/CEActionsPocket.cpp22
-rw-r--r--backends/platform/wince/CEActionsSmartphone.cpp18
2 files changed, 22 insertions, 18 deletions
diff --git a/backends/platform/wince/CEActionsPocket.cpp b/backends/platform/wince/CEActionsPocket.cpp
index ee76245ef3..7f9b353159 100644
--- a/backends/platform/wince/CEActionsPocket.cpp
+++ b/backends/platform/wince/CEActionsPocket.cpp
@@ -125,12 +125,14 @@ void CEActionsPocket::initInstanceGame() {
bool is_ite = ((strncmp(gameid.c_str(), "ite", 3) == 0) ||
(strncmp(gameid.c_str(), "ihnm", 4) == 0));
bool is_kyra = (gameid == "kyra1");
+ bool is_samnmax = (gameid == "samnmax");
+ bool is_fw = (gameid == "fw");
+ bool is_os = (gameid == "os");
GUI_Actions::initInstanceGame();
// See if a right click mapping could be needed
- if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || is_gob ||
- gameid == "samnmax")
+ if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || is_gob || is_samnmax || is_fw || is_os)
_right_click_needed = true;
// See if a "hide toolbar" mapping could be needed
@@ -144,24 +146,24 @@ void CEActionsPocket::initInstanceGame() {
// Save
if (is_simon || is_sword2 || is_gob || is_kyra)
_action_enabled[POCKET_ACTION_SAVE] = false;
- else
- if (is_queen || is_ite) {
+ else if (is_queen || is_ite) {
_action_enabled[POCKET_ACTION_SAVE] = true;
_key_action[POCKET_ACTION_SAVE].setAscii(286); // F5 key for FOTAQ & ITE
- }
- else
- if (is_sky) {
+ } else if (is_sky) {
_action_enabled[POCKET_ACTION_SAVE] = true;
_key_action[POCKET_ACTION_SAVE].setAscii(63);
- }
- else {
+ } else if (is_fw || is_os) {
+ _action_enabled[POCKET_ACTION_SAVE] = true;
+ _key_action[POCKET_ACTION_SAVE].setAscii(291); // F10
+ } else {
_action_enabled[POCKET_ACTION_SAVE] = true;
_key_action[POCKET_ACTION_SAVE].setAscii(319); // F5 key
}
// Quit
_action_enabled[POCKET_ACTION_QUIT] = true;
// Skip
- _action_enabled[POCKET_ACTION_SKIP] = true;
+ if (!is_fw && !is_os)
+ _action_enabled[POCKET_ACTION_SKIP] = true;
if (is_simon || is_sky || is_sword2 || is_queen || is_sword1 || is_gob || is_ite || is_kyra)
_key_action[POCKET_ACTION_SKIP].setAscii(VK_ESCAPE);
else
diff --git a/backends/platform/wince/CEActionsSmartphone.cpp b/backends/platform/wince/CEActionsSmartphone.cpp
index 306d72f52b..0a2d1937e5 100644
--- a/backends/platform/wince/CEActionsSmartphone.cpp
+++ b/backends/platform/wince/CEActionsSmartphone.cpp
@@ -125,28 +125,30 @@ void CEActionsSmartphone::initInstanceGame() {
bool is_ite = ((strncmp(gameid.c_str(), "ite", 3) == 0) ||
(strncmp(gameid.c_str(), "ihnm", 4) == 0));
bool is_kyra = (gameid == "kyra1");
+ bool is_samnmax = (gameid == "samnmax");
+ bool is_fw = (gameid == "fw");
+ bool is_os = (gameid == "os");
GUI_Actions::initInstanceGame();
// See if a right click mapping could be needed
- if (is_sky || gameid == "samnmax" || is_gob)
+ if (is_sky || is_samnmax || is_gob || is_fw || is_os)
_right_click_needed = true;
// Initialize keys for different actions
// Save
if (is_simon || is_gob)
_action_enabled[SMARTPHONE_ACTION_SAVE] = false;
- else
- if (is_queen || is_ite) {
+ else if (is_queen || is_ite) {
_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
_key_action[SMARTPHONE_ACTION_SAVE].setAscii(286); // F1 key for FOTAQ and ITE
- }
- else
- if (is_sky) {
+ } else if (is_sky) {
_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
_key_action[SMARTPHONE_ACTION_SAVE].setAscii(63);
- }
- else {
+ } else if (is_fw || is_os) {
+ _action_enabled[SMARTPHONE_ACTION_SAVE] = true;
+ _key_action[SMARTPHONE_ACTION_SAVE].setAscii(291); //F10
+ } else {
_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
_key_action[SMARTPHONE_ACTION_SAVE].setAscii(319); // F5 key
}