diff options
author | Tarek Soliman | 2012-02-09 01:26:38 -0600 |
---|---|---|
committer | Tarek Soliman | 2012-02-12 13:28:13 -0600 |
commit | 883f9ae07338cd044604c7821a22485d9e1f5683 (patch) | |
tree | 528f80df418d7af8c9bdc3c2ea6fec59ada022d5 /common | |
parent | 8c245af35cc2ac3666b631be12e1f130bfbad503 (diff) | |
download | scummvm-rg350-883f9ae07338cd044604c7821a22485d9e1f5683.tar.gz scummvm-rg350-883f9ae07338cd044604c7821a22485d9e1f5683.tar.bz2 scummvm-rg350-883f9ae07338cd044604c7821a22485d9e1f5683.zip |
COMMON: Add custom backend event
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) {} }; |