Mercurial > molko
comparison src/event.h @ 40:2a087210c0b8
misc: invalid indent
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 14 Jan 2020 13:40:26 +0100 |
parents | 5519ad48822e |
children | b815621df3e3 |
comparison
equal
deleted
inserted
replaced
39:9d1421c09dfb | 40:2a087210c0b8 |
---|---|
46 * \brief Store events. | 46 * \brief Store events. |
47 */ | 47 */ |
48 union event { | 48 union event { |
49 enum event_type type; /*!< Which kind of event */ | 49 enum event_type type; /*!< Which kind of event */ |
50 | 50 |
51 /** | 51 /** |
52 * Store key down/up event. | 52 * Store key down/up event. |
53 */ | 53 */ |
54 struct { | 54 struct { |
55 enum event_type type; /*!< EVENT_KEYDOWN or EVENT_KEYUP */ | 55 enum event_type type; /*!< EVENT_KEYDOWN or EVENT_KEYUP */ |
56 enum key key; /*!< Which key */ | 56 enum key key; /*!< Which key */ |
57 } key; | 57 } key; |
58 | 58 |
59 /** | 59 /** |
60 * Store mouse motion event. | 60 * Store mouse motion event. |
61 */ | 61 */ |
62 struct { | 62 struct { |
63 enum event_type type; /*!< EVENT_MOUSE */ | 63 enum event_type type; /*!< EVENT_MOUSE */ |
64 enum mouse_button buttons; /*!< OR'ed buttons that are pressed */ | 64 enum mouse_button buttons; /*!< OR'ed buttons that are pressed */ |
65 int32_t x; /*!< Mouse position in x */ | 65 int32_t x; /*!< Mouse position in x */ |
66 int32_t y; /*!< Mouse position in y */ | 66 int32_t y; /*!< Mouse position in y */ |
67 } mouse; | 67 } mouse; |
68 | 68 |
69 /** | 69 /** |
70 * Store mouse click event. | 70 * Store mouse click event. |
71 */ | 71 */ |
72 struct { | 72 struct { |
73 enum event_type type; /*!< EVENT_CLICKDOWN or EVENT_CLICKUP */ | 73 enum event_type type; /*!< EVENT_CLICKDOWN or EVENT_CLICKUP */ |
74 enum mouse_button button; /*!< Unique button that was pressed */ | 74 enum mouse_button button; /*!< Unique button that was pressed */ |
75 int32_t x; /*!< Mouse position in x */ | 75 int32_t x; /*!< Mouse position in x */ |
76 int32_t y; /*!< Mouse position in y */ | 76 int32_t y; /*!< Mouse position in y */ |