aboutsummaryrefslogtreecommitdiff
path: root/common/events.h
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-25 00:59:30 +0000
committerJohannes Schickel2009-07-25 00:59:30 +0000
commitb4a1bceeacd0e29f04ceccb01c836dc8cd315951 (patch)
tree63dd543840873d32fb0ae1acbc096ab2bfc52d86 /common/events.h
parent7905bbbc5b845854654d75a69876af87f78cdda0 (diff)
downloadscummvm-rg350-b4a1bceeacd0e29f04ceccb01c836dc8cd315951.tar.gz
scummvm-rg350-b4a1bceeacd0e29f04ceccb01c836dc8cd315951.tar.bz2
scummvm-rg350-b4a1bceeacd0e29f04ceccb01c836dc8cd315951.zip
Add function "allowMapping" to EventSource, for testing whether the event source allows mapping (via the Keymapper for example.)
svn-id: r42720
Diffstat (limited to 'common/events.h')
-rw-r--r--common/events.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index 684b87bc5f..e38b1f4ca2 100644
--- a/common/events.h
+++ b/common/events.h
@@ -146,6 +146,16 @@ public:
* @return true if an event was polled, false otherwise.
*/
virtual bool pollEvent(Event &event) = 0;
+
+ /**
+ * Checks whether events from this source are allowed to be mapped.
+ *
+ * Possible event sources not allowing mapping are: the event recorder/player and/or
+ * the EventManager, which allows user events to be pushed.
+ *
+ * By default we allow mapping for every event source.
+ */
+ virtual bool allowMapping() const { return true; }
};
/**