aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-03-23 11:26:41 +0100
committerMax Horn2011-03-23 15:25:46 +0100
commit4172414e358099bb937044629d6d9c794637629c (patch)
tree873f9230e7b2729a18b81433373e398c24ff799d
parent649a5adb10eb5c28cd1db9110a6a1a7d05f57d97 (diff)
downloadscummvm-rg350-4172414e358099bb937044629d6d9c794637629c.tar.gz
scummvm-rg350-4172414e358099bb937044629d6d9c794637629c.tar.bz2
scummvm-rg350-4172414e358099bb937044629d6d9c794637629c.zip
COMMON: Remove TODO from struct Event
I moved this TODO to the Wiki TODO page and extended it there. Yet while I originally wrote it, I now think that we are probably best off keeping things as they are.
-rw-r--r--common/events.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/common/events.h b/common/events.h
index f9ebce7d64..120d7d9dea 100644
--- a/common/events.h
+++ b/common/events.h
@@ -81,30 +81,6 @@ enum EventType {
/**
* Data structure for an event. A pointer to an instance of Event
* can be passed to pollEvent.
- * @todo Rework/document this structure. It should be made 100% clear which
- * field is valid for which event type.
- * Implementation wise, we might want to use the classic
- * union-of-structs trick. It goes roughly like this:
- * struct BasicEvent {
- * EventType type;
- * };
- * struct MouseMovedEvent : BasicEvent {
- * Common::Point pos;
- * };
- * struct MouseButtonEvent : MouseMovedEvent {
- * int button;
- * };
- * struct KeyEvent : BasicEvent {
- * ...
- * };
- * ...
- * union Event {
- * EventType type;
- * MouseMovedEvent mouse;
- * MouseButtonEvent button;
- * KeyEvent key;
- * ...
- * };
*/
struct Event {
/** The type of the event. */