aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CEActions.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2004-01-28 01:06:29 +0000
committerNicolas Bacca2004-01-28 01:06:29 +0000
commit4793b48326a111e05deb76d61b5bbbcc965d861d (patch)
treef6004d43b803b9e196e9765c6ed065044008210b /backends/wince/CEActions.cpp
parent7b05525823416ee1dd95022a666933dba2d01f41 (diff)
downloadscummvm-rg350-4793b48326a111e05deb76d61b5bbbcc965d861d.tar.gz
scummvm-rg350-4793b48326a111e05deb76d61b5bbbcc965d861d.tar.bz2
scummvm-rg350-4793b48326a111e05deb76d61b5bbbcc965d861d.zip
Add needsHideToolbarMapping
svn-id: r12643
Diffstat (limited to 'backends/wince/CEActions.cpp')
-rw-r--r--backends/wince/CEActions.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/backends/wince/CEActions.cpp b/backends/wince/CEActions.cpp
index ed5b1b47c2..367671ac5d 100644
--- a/backends/wince/CEActions.cpp
+++ b/backends/wince/CEActions.cpp
@@ -57,7 +57,9 @@ int CEActions::size() {
}
CEActions::CEActions(OSystem_WINCE3 *mainSystem, GameDetector &detector) :
- _mainSystem(mainSystem), _mapping_active(false), _right_click_needed(false) {
+ _mainSystem(mainSystem), _mapping_active(false), _right_click_needed(false),
+ _hide_toolbar_needed(false)
+{
int i;
bool is_simon = (strcmp(detector._targetName.c_str(), "simon") == 0);
bool is_sword1 = (detector._targetName == "sword1");
@@ -73,6 +75,10 @@ CEActions::CEActions(OSystem_WINCE3 *mainSystem, GameDetector &detector) :
detector._targetName == "samnmax")
_right_click_needed = true;
+ // See if a "hide toolbar" mapping could be needed
+ if (is_sword1 || is_sword2 || is_queen)
+ _hide_toolbar_needed = true;
+
// Initialize keys for different actions
// Pause
_key_action[ACTION_PAUSE].setAscii(VK_SPACE);
@@ -247,4 +253,11 @@ bool CEActions::needsRightClickMapping() {
return (_action_mapping[ACTION_RIGHTCLICK] == 0);
}
-CEActions *CEActions::_instance = NULL; \ No newline at end of file
+bool CEActions::needsHideToolbarMapping() {
+ if (!_hide_toolbar_needed)
+ return false;
+ else
+ return (_action_mapping[ACTION_HIDE] == 0);
+}
+
+CEActions *CEActions::_instance = NULL; \ No newline at end of file