Mercurial > sdl-ios-xcode
comparison include/SDL_events.h @ 1914:051df511279c
Added a test program framework for easy initialization.
Started work on multi-window OpenGL demo
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 18 Jul 2006 07:49:51 +0000 |
parents | c121d94672cb |
children | c7803e4c21d3 |
comparison
equal
deleted
inserted
replaced
1913:83420da906a5 | 1914:051df511279c |
---|---|
117 #define SDL_ALLEVENTS 0xFFFFFFFF | 117 #define SDL_ALLEVENTS 0xFFFFFFFF |
118 | 118 |
119 /** | 119 /** |
120 * \struct SDL_WindowEvent | 120 * \struct SDL_WindowEvent |
121 * | 121 * |
122 * \brief Window state change event data | 122 * \brief Window state change event data (event.window.*) |
123 */ | 123 */ |
124 typedef struct SDL_WindowEvent | 124 typedef struct SDL_WindowEvent |
125 { | 125 { |
126 Uint8 type; /**< SDL_WINDOWEVENT */ | 126 Uint8 type; /**< SDL_WINDOWEVENT */ |
127 Uint8 event; /**< SDL_WindowEventID */ | 127 Uint8 event; /**< SDL_WindowEventID */ |
131 } SDL_WindowEvent; | 131 } SDL_WindowEvent; |
132 | 132 |
133 /** | 133 /** |
134 * \struct SDL_KeyboardEvent | 134 * \struct SDL_KeyboardEvent |
135 * | 135 * |
136 * \brief Keyboard button event structure | 136 * \brief Keyboard button event structure (event.key.*) |
137 */ | 137 */ |
138 typedef struct SDL_KeyboardEvent | 138 typedef struct SDL_KeyboardEvent |
139 { | 139 { |
140 Uint8 type; /**< SDL_KEYDOWN or SDL_KEYUP */ | 140 Uint8 type; /**< SDL_KEYDOWN or SDL_KEYUP */ |
141 Uint8 which; /**< The keyboard device index */ | 141 Uint8 which; /**< The keyboard device index */ |
145 } SDL_KeyboardEvent; | 145 } SDL_KeyboardEvent; |
146 | 146 |
147 /** | 147 /** |
148 * \struct SDL_TextInputEvent | 148 * \struct SDL_TextInputEvent |
149 * | 149 * |
150 * \brief Keyboard text input event structure | 150 * \brief Keyboard text input event structure (event.text.*) |
151 */ | 151 */ |
152 typedef struct SDL_TextInputEvent | 152 typedef struct SDL_TextInputEvent |
153 { | 153 { |
154 Uint8 type; /**< SDL_TEXTINPUT */ | 154 Uint8 type; /**< SDL_TEXTINPUT */ |
155 Uint8 which; /**< The keyboard device index */ | 155 Uint8 which; /**< The keyboard device index */ |
158 } SDL_TextInputEvent; | 158 } SDL_TextInputEvent; |
159 | 159 |
160 /** | 160 /** |
161 * \struct SDL_MouseMotionEvent | 161 * \struct SDL_MouseMotionEvent |
162 * | 162 * |
163 * \brief Mouse motion event structure | 163 * \brief Mouse motion event structure (event.motion.*) |
164 */ | 164 */ |
165 typedef struct SDL_MouseMotionEvent | 165 typedef struct SDL_MouseMotionEvent |
166 { | 166 { |
167 Uint8 type; /**< SDL_MOUSEMOTION */ | 167 Uint8 type; /**< SDL_MOUSEMOTION */ |
168 Uint8 which; /**< The mouse device index */ | 168 Uint8 which; /**< The mouse device index */ |
175 } SDL_MouseMotionEvent; | 175 } SDL_MouseMotionEvent; |
176 | 176 |
177 /** | 177 /** |
178 * \struct SDL_MouseButtonEvent | 178 * \struct SDL_MouseButtonEvent |
179 * | 179 * |
180 * \brief Mouse button event structure | 180 * \brief Mouse button event structure (event.button.*) |
181 */ | 181 */ |
182 typedef struct SDL_MouseButtonEvent | 182 typedef struct SDL_MouseButtonEvent |
183 { | 183 { |
184 Uint8 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */ | 184 Uint8 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */ |
185 Uint8 which; /**< The mouse device index */ | 185 Uint8 which; /**< The mouse device index */ |
191 } SDL_MouseButtonEvent; | 191 } SDL_MouseButtonEvent; |
192 | 192 |
193 /** | 193 /** |
194 * \struct SDL_MouseWheelEvent | 194 * \struct SDL_MouseWheelEvent |
195 * | 195 * |
196 * \brief Mouse wheel event structure | 196 * \brief Mouse wheel event structure (event.wheel.*) |
197 */ | 197 */ |
198 typedef struct SDL_MouseWheelEvent | 198 typedef struct SDL_MouseWheelEvent |
199 { | 199 { |
200 Uint8 type; /**< SDL_MOUSEWHEEL */ | 200 Uint8 type; /**< SDL_MOUSEWHEEL */ |
201 Uint8 which; /**< The mouse device index */ | 201 Uint8 which; /**< The mouse device index */ |
202 int motion; /**< The direction and distance scrolled */ | 202 int motion; /**< The direction and distance scrolled */ |
203 SDL_WindowID windowID; /**< The window with mouse focus, if any */ | 203 SDL_WindowID windowID; /**< The window with mouse focus, if any */ |
204 } SDL_MouseWheelEvent; | 204 } SDL_MouseWheelEvent; |
205 | 205 |
206 /** | 206 /** |
207 * \struct SDL_JoyAxisEvent | 207 * \struct SDL_JoyAxisEvent |
208 * | 208 * |
209 * \brief Joystick axis motion event structure | 209 * \brief Joystick axis motion event structure (event.jaxis.*) |
210 */ | 210 */ |
211 typedef struct SDL_JoyAxisEvent | 211 typedef struct SDL_JoyAxisEvent |
212 { | 212 { |
213 Uint8 type; /**< SDL_JOYAXISMOTION */ | 213 Uint8 type; /**< SDL_JOYAXISMOTION */ |
214 Uint8 which; /**< The joystick device index */ | 214 Uint8 which; /**< The joystick device index */ |
217 } SDL_JoyAxisEvent; | 217 } SDL_JoyAxisEvent; |
218 | 218 |
219 /** | 219 /** |
220 * \struct SDL_JoyBallEvent | 220 * \struct SDL_JoyBallEvent |
221 * | 221 * |
222 * \brief Joystick trackball motion event structure | 222 * \brief Joystick trackball motion event structure (event.jball.*) |
223 */ | 223 */ |
224 typedef struct SDL_JoyBallEvent | 224 typedef struct SDL_JoyBallEvent |
225 { | 225 { |
226 Uint8 type; /**< SDL_JOYBALLMOTION */ | 226 Uint8 type; /**< SDL_JOYBALLMOTION */ |
227 Uint8 which; /**< The joystick device index */ | 227 Uint8 which; /**< The joystick device index */ |
231 } SDL_JoyBallEvent; | 231 } SDL_JoyBallEvent; |
232 | 232 |
233 /** | 233 /** |
234 * \struct SDL_JoyHatEvent | 234 * \struct SDL_JoyHatEvent |
235 * | 235 * |
236 * \brief Joystick hat position change event structure | 236 * \brief Joystick hat position change event structure (event.jhat.*) |
237 */ | 237 */ |
238 typedef struct SDL_JoyHatEvent | 238 typedef struct SDL_JoyHatEvent |
239 { | 239 { |
240 Uint8 type; /**< SDL_JOYHATMOTION */ | 240 Uint8 type; /**< SDL_JOYHATMOTION */ |
241 Uint8 which; /**< The joystick device index */ | 241 Uint8 which; /**< The joystick device index */ |
249 } SDL_JoyHatEvent; | 249 } SDL_JoyHatEvent; |
250 | 250 |
251 /** | 251 /** |
252 * \struct SDL_JoyButtonEvent | 252 * \struct SDL_JoyButtonEvent |
253 * | 253 * |
254 * \brief Joystick button event structure | 254 * \brief Joystick button event structure (event.jbutton.*) |
255 */ | 255 */ |
256 typedef struct SDL_JoyButtonEvent | 256 typedef struct SDL_JoyButtonEvent |
257 { | 257 { |
258 Uint8 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */ | 258 Uint8 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */ |
259 Uint8 which; /**< The joystick device index */ | 259 Uint8 which; /**< The joystick device index */ |
272 } SDL_QuitEvent; | 272 } SDL_QuitEvent; |
273 | 273 |
274 /** | 274 /** |
275 * \struct SDL_UserEvent | 275 * \struct SDL_UserEvent |
276 * | 276 * |
277 * \brief A user-defined event type | 277 * \brief A user-defined event type (event.user.*) |
278 */ | 278 */ |
279 typedef struct SDL_UserEvent | 279 typedef struct SDL_UserEvent |
280 { | 280 { |
281 Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ | 281 Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ |
282 int code; /**< User defined event code */ | 282 int code; /**< User defined event code */ |
285 } SDL_UserEvent; | 285 } SDL_UserEvent; |
286 | 286 |
287 /** | 287 /** |
288 * \struct SDL_SysWMEvent | 288 * \struct SDL_SysWMEvent |
289 * | 289 * |
290 * \brief A video driver dependent system event | 290 * \brief A video driver dependent system event (event.syswm.*) |
291 * | 291 * |
292 * \note If you want to use this event, you should include SDL_syswm.h | 292 * \note If you want to use this event, you should include SDL_syswm.h |
293 */ | 293 */ |
294 struct SDL_SysWMmsg; | 294 struct SDL_SysWMmsg; |
295 typedef struct SDL_SysWMmsg SDL_SysWMmsg; | 295 typedef struct SDL_SysWMmsg SDL_SysWMmsg; |