From f4262a1bbbf8e26b913e4da717e617ded2667466 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 10 Apr 2005 21:11:02 +0000 Subject: [PATCH] Gobliiins tweaks svn-id: r17528 --- backends/wince/CEActionsPocket.cpp | 7 ++++--- backends/wince/CEActionsSmartphone.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/backends/wince/CEActionsPocket.cpp b/backends/wince/CEActionsPocket.cpp index 0098961bfb0..8ed93e341b5 100644 --- a/backends/wince/CEActionsPocket.cpp +++ b/backends/wince/CEActionsPocket.cpp @@ -95,11 +95,12 @@ void CEActionsPocket::initInstanceGame() { bool is_queen = (_detector->_targetName == "queen"); bool is_sky = (_detector->_targetName == "sky"); bool is_comi = (strncmp(_detector->_targetName.c_str(), "comi", 4) == 0); + bool is_gob = (strncmp(_detector->_targetName.c_str(), "gob", 3) == 0); CEActions::initInstanceGame(); // See if a right click mapping could be needed - if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || + if (is_sword1 || is_sword2 || is_sky || is_queen || is_comi || is_gob || _detector->_targetName == "samnmax") _right_click_needed = true; @@ -112,7 +113,7 @@ void CEActionsPocket::initInstanceGame() { _key_action[POCKET_ACTION_PAUSE].setAscii(VK_SPACE); _action_enabled[POCKET_ACTION_PAUSE] = true; // Save - if (is_simon || is_sword2) + if (is_simon || is_sword2 || is_gob) _action_enabled[POCKET_ACTION_SAVE] = false; else if (is_queen) { @@ -132,7 +133,7 @@ void CEActionsPocket::initInstanceGame() { _action_enabled[POCKET_ACTION_QUIT] = true; // Skip _action_enabled[POCKET_ACTION_SKIP] = true; - if (is_simon || is_sky || is_sword2 || is_queen || is_sword1) + if (is_simon || is_sky || is_sword2 || is_queen || is_sword1 || is_gob) _key_action[POCKET_ACTION_SKIP].setAscii(VK_ESCAPE); else _key_action[POCKET_ACTION_SKIP].setAscii(Scumm::KEY_ALL_SKIP); diff --git a/backends/wince/CEActionsSmartphone.cpp b/backends/wince/CEActionsSmartphone.cpp index c2e59132a02..9ded7cc8acc 100644 --- a/backends/wince/CEActionsSmartphone.cpp +++ b/backends/wince/CEActionsSmartphone.cpp @@ -106,16 +106,17 @@ void CEActionsSmartphone::initInstanceGame() { bool is_simon = (strncmp(_detector->_targetName.c_str(), "simon", 5) == 0); bool is_sky = (_detector->_targetName == "sky"); bool is_queen = (_detector->_targetName == "queen"); + bool is_gob = (strncmp(_detector->_targetName.c_str(), "gob", 3) == 0); CEActions::initInstanceGame(); // See if a right click mapping could be needed - if (is_sky || _detector->_targetName == "samnmax") + if (is_sky || _detector->_targetName == "samnmax" || is_gob) _right_click_needed = true; // Initialize keys for different actions // Save - if (is_simon) + if (is_simon || is_gob) _action_enabled[SMARTPHONE_ACTION_SAVE] = false; else if (is_queen) { @@ -133,7 +134,7 @@ void CEActionsSmartphone::initInstanceGame() { } // Skip _action_enabled[SMARTPHONE_ACTION_SKIP] = true; - if (is_simon || is_sky) + if (is_simon || is_sky || is_gob) _key_action[SMARTPHONE_ACTION_SKIP].setAscii(VK_ESCAPE); else _key_action[SMARTPHONE_ACTION_SKIP].setAscii(Scumm::KEY_ALL_SKIP);