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.
This commit is contained in:
Johannes Schickel 2012-02-13 01:23:07 +01:00
parent d811240a9d
commit d127843859

View File

@ -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) {}
};