aboutsummaryrefslogtreecommitdiff
path: root/common/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/events.h')
-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. */