diff options
author | Marisa-Chan | 2014-11-08 12:59:58 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-11-08 12:59:58 +0600 |
commit | 66d2cb46989537d80855952cff2c0be1b5d6c320 (patch) | |
tree | bf5bcf0881e0c5a1e961fa9dd0ce7b04b842bb90 /engines/zvision/scripting/actions.cpp | |
parent | b8ef942f692d7354fed3fd889994c499db714ba7 (diff) | |
download | scummvm-rg350-66d2cb46989537d80855952cff2c0be1b5d6c320.tar.gz scummvm-rg350-66d2cb46989537d80855952cff2c0be1b5d6c320.tar.bz2 scummvm-rg350-66d2cb46989537d80855952cff2c0be1b5d6c320.zip |
ZVISION: Implement action:flush_mouse_events
Diffstat (limited to 'engines/zvision/scripting/actions.cpp')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 96411e2c3d..42b71ea5cc 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -272,6 +272,20 @@ bool ActionEnableControl::execute() { } ////////////////////////////////////////////////////////////////////////////// +// ActionFlushMouseEvents +////////////////////////////////////////////////////////////////////////////// + +ActionFlushMouseEvents::ActionFlushMouseEvents(ZVision *engine, int32 slotkey) : + ResultAction(engine, slotkey) { +} + +bool ActionFlushMouseEvents::execute() { + _engine->getScriptManager()->flushEvent(Common::EVENT_LBUTTONUP); + _engine->getScriptManager()->flushEvent(Common::EVENT_LBUTTONDOWN); + return true; +} + +////////////////////////////////////////////////////////////////////////////// // ActionInventory ////////////////////////////////////////////////////////////////////////////// |