aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/actions.cpp
diff options
context:
space:
mode:
authorMarisa-Chan2014-11-08 12:59:58 +0600
committerMarisa-Chan2014-11-08 12:59:58 +0600
commit66d2cb46989537d80855952cff2c0be1b5d6c320 (patch)
treebf5bcf0881e0c5a1e961fa9dd0ce7b04b842bb90 /engines/zvision/scripting/actions.cpp
parentb8ef942f692d7354fed3fd889994c499db714ba7 (diff)
downloadscummvm-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.cpp14
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
//////////////////////////////////////////////////////////////////////////////