diff options
author | Johannes Schickel | 2012-02-13 01:23:07 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-13 01:23:07 +0100 |
commit | d127843859b9cba52aee9c1d9a4944a7eb247c1f (patch) | |
tree | 02fc1ca38a15e26117059fb100f23044c865e29e /common/events.h | |
parent | d811240a9d38098f5b1f77b7d8dbef7a947f9a67 (diff) | |
download | scummvm-rg350-d127843859b9cba52aee9c1d9a4944a7eb247c1f.tar.gz scummvm-rg350-d127843859b9cba52aee9c1d9a4944a7eb247c1f.tar.bz2 scummvm-rg350-d127843859b9cba52aee9c1d9a4944a7eb247c1f.zip |
COMMON: Enable backend specific custom events only when the Keymapper is enabled.
Otherwise there is no way of generating these events, thus it's better to make
people really aware of this.
I furthermore added some nots that its part of a WIP API, thus it should only
be used after checking up.
Diffstat (limited to 'common/events.h')
-rw-r--r-- | common/events.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/common/events.h b/common/events.h index 04dfd39584..d3c7064499 100644 --- a/common/events.h +++ b/common/events.h @@ -72,8 +72,14 @@ enum EventType { * use events to ask for the save game dialog or to pause the engine. * An associated enumerated type can accomplish this. **/ - EVENT_PREDICTIVE_DIALOG = 12, + EVENT_PREDICTIVE_DIALOG = 12 + +#ifdef ENABLE_KEYMAPPER + , + // IMPORTANT NOTE: This is part of the WIP Keymapper. If you plan to use + // this, please talk to tsoliman and/or LordHoto. EVENT_CUSTOM_BACKEND = 13 +#endif }; typedef uint32 CustomEventType; @@ -101,7 +107,11 @@ struct Event { */ Point mouse; +#ifdef ENABLE_KEYMAPPER + // IMPORTANT NOTE: This is part of the WIP Keymapper. If you plan to use + // this, please talk to tsoliman and/or LordHoto. CustomEventType customType; +#endif Event() : type(EVENT_INVALID), synthetic(false) {} }; |