diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/events.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/events.h b/common/events.h index 673ccb6d10..04dfd39584 100644 --- a/common/events.h +++ b/common/events.h @@ -72,9 +72,11 @@ 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, + EVENT_CUSTOM_BACKEND = 13 }; +typedef uint32 CustomEventType; /** * Data structure for an event. A pointer to an instance of Event * can be passed to pollEvent. @@ -99,6 +101,8 @@ struct Event { */ Point mouse; + CustomEventType customType; + Event() : type(EVENT_INVALID), synthetic(false) {} }; |