mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
Gobliiins tweaks
svn-id: r17528
This commit is contained in:
parent
ee6deedb03
commit
f4262a1bbb
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user