diff options
author | Marisa-Chan | 2014-07-12 21:44:10 +0000 |
---|---|---|
committer | Marisa-Chan | 2014-07-12 21:44:10 +0000 |
commit | 7f2d4d9a6c72b4f0e88c86d5fe04eb059ec107a8 (patch) | |
tree | fff866519c14dc725e9cfbc4539672a81d590306 /engines | |
parent | ce248644b813d7a722f2c6250f723331fd119e55 (diff) | |
download | scummvm-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.cpp | 4 | ||||
-rw-r--r-- | engines/zvision/scripting/script_manager.h | 2 |
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); |