aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-07-12 21:44:10 +0000
committerMarisa-Chan2014-07-12 21:44:10 +0000
commit7f2d4d9a6c72b4f0e88c86d5fe04eb059ec107a8 (patch)
treefff866519c14dc725e9cfbc4539672a81d590306 /engines
parentce248644b813d7a722f2c6250f723331fd119e55 (diff)
downloadscummvm-rg350-7f2d4d9a6c72b4f0e88c86d5fe04eb059ec107a8.tar.gz
scummvm-rg350-7f2d4d9a6c72b4f0e88c86d5fe04eb059ec107a8.tar.bz2
scummvm-rg350-7f2d4d9a6c72b4f0e88c86d5fe04eb059ec107a8.zip
ZVISION: Implement fuctionality for change focus without of calling focus/unfocus
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/script_manager.cpp4
-rw-r--r--engines/zvision/scripting/script_manager.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index 25fa13866a..ada06a5b51 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -373,6 +373,10 @@ void ScriptManager::focusControl(uint32 key) {
_currentlyFocusedControl = key;
}
+void ScriptManager::setFocusControlKey(uint32 key) {
+ _currentlyFocusedControl = key;
+}
+
void ScriptManager::addSideFX(SideFX *fx) {
_activeSideFx.push_back(fx);
}
diff --git a/engines/zvision/scripting/script_manager.h b/engines/zvision/scripting/script_manager.h
index 316b50ab26..6cc957874b 100644
--- a/engines/zvision/scripting/script_manager.h
+++ b/engines/zvision/scripting/script_manager.h
@@ -188,6 +188,8 @@ public:
void disableControl(uint32 key);
void focusControl(uint32 key);
+ // Only change focus control without call focus/unfocus.
+ void setFocusControlKey(uint32 key);
void addSideFX(SideFX *fx);
SideFX *getSideFX(uint32 key);