diff options
author | Max Horn | 2008-10-06 11:28:09 +0000 |
---|---|---|
committer | Max Horn | 2008-10-06 11:28:09 +0000 |
commit | 6ca906d7aa4e515d0b0ce9c6a5a38500721d2483 (patch) | |
tree | 3f689d273d370323d36a34dfa53bce6390aa2196 | |
parent | 03d8f7e196c5e951055da4c646c097b8219ea346 (diff) | |
download | scummvm-rg350-6ca906d7aa4e515d0b0ce9c6a5a38500721d2483.tar.gz scummvm-rg350-6ca906d7aa4e515d0b0ce9c6a5a38500721d2483.tar.bz2 scummvm-rg350-6ca906d7aa4e515d0b0ce9c6a5a38500721d2483.zip |
Fix warnings about Event::synthetic being undefined
svn-id: r34754
-rw-r--r-- | common/events.h | 3 |
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) {} }; |