aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/events.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h
index f01282765a..dd45ca18c1 100644
--- a/common/events.h
+++ b/common/events.h
@@ -44,6 +44,7 @@ namespace Common {
* indicates which button was pressed.
*/
enum EventType {
+ EVENT_INVALID = 0,
/** A key was pressed, details in Event::kbd. */
EVENT_KEYDOWN = 1,
/** A key was released, details in Event::kbd. */
@@ -121,6 +122,8 @@ struct Event {
* screen area as defined by the most recent call to initSize().
*/
Common::Point mouse;
+
+ Event() : type(EVENT_INVALID), synthetic(false) {}
};