From 6ca906d7aa4e515d0b0ce9c6a5a38500721d2483 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 6 Oct 2008 11:28:09 +0000 Subject: Fix warnings about Event::synthetic being undefined svn-id: r34754 --- common/events.h | 3 +++ 1 file changed, 3 insertions(+) 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) {} }; -- cgit v1.2.3