aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-25 00:59:39 +0000
committerJohannes Schickel2009-07-25 00:59:39 +0000
commitf03753672665aea4015646045bbe255de7f55021 (patch)
treed6b5b432e7e91feb41fb637c26ea5f14879eda3a /common
parentb4a1bceeacd0e29f04ceccb01c836dc8cd315951 (diff)
downloadscummvm-rg350-f03753672665aea4015646045bbe255de7f55021.tar.gz
scummvm-rg350-f03753672665aea4015646045bbe255de7f55021.tar.bz2
scummvm-rg350-f03753672665aea4015646045bbe255de7f55021.zip
Prevent EventMapper events from being mapped.
svn-id: r42721
Diffstat (limited to 'common')
-rw-r--r--common/events.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index e38b1f4ca2..be269e1969 100644
--- a/common/events.h
+++ b/common/events.h
@@ -188,6 +188,9 @@ public:
* An example for this is the Keymapper.
*/
class EventMapper : public EventSource, public EventObserver {
+public:
+ /** For event mappers resulting events should never be mapped */
+ bool allowMapping() const { return false; }
};
/**