aboutsummaryrefslogtreecommitdiff
path: root/common/events.h
diff options
context:
space:
mode:
authorThierry Crozat2017-07-25 09:33:32 +0100
committerThierry Crozat2017-07-26 21:39:31 +0100
commitb8142ff362668bdf3880a0de2e1531a292cbc785 (patch)
tree81951e8e1495c20347476c1fa9ed9196dae5abaf /common/events.h
parent4c27396aaae3ee31849a2934ca932149414f1290 (diff)
downloadscummvm-rg350-b8142ff362668bdf3880a0de2e1531a292cbc785.tar.gz
scummvm-rg350-b8142ff362668bdf3880a0de2e1531a292cbc785.tar.bz2
scummvm-rg350-b8142ff362668bdf3880a0de2e1531a292cbc785.zip
COMMON: Add method in EventManager to clear the event queue
Diffstat (limited to 'common/events.h')
-rw-r--r--common/events.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index 484564e3db..21a65a642b 100644
--- a/common/events.h
+++ b/common/events.h
@@ -282,6 +282,12 @@ public:
void dispatch();
/**
+ * Clear all events currently in the event queue.
+ * The cleared events are not dispatched and are simply discarded.
+ */
+ void clearEvents();
+
+ /**
* Registers an event mapper with the dispatcher.
*
* The ownership of the "mapper" variable will pass