zenilib: zenilib/jni/external/sdl/SDL/SDL_events.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_events.h
Go to the documentation of this file.
1 /*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20 */
21
28 #ifndef _SDL_events_h
29 #define _SDL_events_h
30
31 #include "SDL_stdinc.h"
32 #include "SDL_error.h"
33 #include "SDL_video.h"
34 #include "SDL_keyboard.h"
35 #include "SDL_mouse.h"
36 #include "SDL_joystick.h"
37 #include "SDL_gamecontroller.h"
38 #include "SDL_quit.h"
39 #include "SDL_gesture.h"
40 #include "SDL_touch.h"
41
42 #include "begin_code.h"
43 /* Set up for C function definitions, even when using C++ */
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48 /* General keyboard/mouse state definitions */
49 #define SDL_RELEASED 0
50 #define SDL_PRESSED 1
51
55 typedef enum
56 {
57 SDL_FIRSTEVENT = 0,
59 /* Application events */
60 SDL_QUIT = 0x100,
62 /* These application events have special meaning on iOS, see README-ios.txt for details */
63 SDL_APP_TERMINATING,
67 SDL_APP_LOWMEMORY,
71 SDL_APP_WILLENTERBACKGROUND,
75 SDL_APP_DIDENTERBACKGROUND,
79 SDL_APP_WILLENTERFOREGROUND,
83 SDL_APP_DIDENTERFOREGROUND,
88 /* Window events */
89 SDL_WINDOWEVENT = 0x200,
90 SDL_SYSWMEVENT,
92 /* Keyboard events */
93 SDL_KEYDOWN = 0x300,
94 SDL_KEYUP,
95 SDL_TEXTEDITING,
96 SDL_TEXTINPUT,
98 /* Mouse events */
99 SDL_MOUSEMOTION = 0x400,
100 SDL_MOUSEBUTTONDOWN,
101 SDL_MOUSEBUTTONUP,
102 SDL_MOUSEWHEEL,
104 /* Joystick events */
105 SDL_JOYAXISMOTION = 0x600,
106 SDL_JOYBALLMOTION,
107 SDL_JOYHATMOTION,
108 SDL_JOYBUTTONDOWN,
109 SDL_JOYBUTTONUP,
110 SDL_JOYDEVICEADDED,
111 SDL_JOYDEVICEREMOVED,
113 /* Game controller events */
114 SDL_CONTROLLERAXISMOTION = 0x650,
115 SDL_CONTROLLERBUTTONDOWN,
116 SDL_CONTROLLERBUTTONUP,
117 SDL_CONTROLLERDEVICEADDED,
118 SDL_CONTROLLERDEVICEREMOVED,
119 SDL_CONTROLLERDEVICEREMAPPED,
121 /* Touch events */
122 SDL_FINGERDOWN = 0x700,
123 SDL_FINGERUP,
124 SDL_FINGERMOTION,
125
126 /* Gesture events */
127 SDL_DOLLARGESTURE = 0x800,
128 SDL_DOLLARRECORD,
129 SDL_MULTIGESTURE,
130
131 /* Clipboard events */
132 SDL_CLIPBOARDUPDATE = 0x900,
134 /* Drag and drop events */
135 SDL_DROPFILE = 0x1000,
140 SDL_USEREVENT = 0x8000,
141
145 SDL_LASTEVENT = 0xFFFF
146 } SDL_EventType;
147
151 typedef struct SDL_CommonEvent
152 {
153 Uint32 type;
154 Uint32 timestamp;
155 } SDL_CommonEvent;
156
160 typedef struct SDL_WindowEvent
161 {
162 Uint32 type;
163 Uint32 timestamp;
164 Uint32 windowID;
165 Uint8 event;
166 Uint8 padding1;
167 Uint8 padding2;
168 Uint8 padding3;
169 Sint32 data1;
170 Sint32 data2;
171 } SDL_WindowEvent;
172
176 typedef struct SDL_KeyboardEvent
177 {
178 Uint32 type;
179 Uint32 timestamp;
180 Uint32 windowID;
181 Uint8 state;
182 Uint8 repeat;
183 Uint8 padding2;
184 Uint8 padding3;
185 SDL_Keysym keysym;
186 } SDL_KeyboardEvent;
187
188 #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
189
192 typedef struct SDL_TextEditingEvent
193 {
194 Uint32 type;
195 Uint32 timestamp;
196 Uint32 windowID;
197 char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
198 Sint32 start;
199 Sint32 length;
200 } SDL_TextEditingEvent;
201
202
203 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
204
207 typedef struct SDL_TextInputEvent
208 {
209 Uint32 type;
210 Uint32 timestamp;
211 Uint32 windowID;
212 char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
213 } SDL_TextInputEvent;
214
218 typedef struct SDL_MouseMotionEvent
219 {
220 Uint32 type;
221 Uint32 timestamp;
222 Uint32 windowID;
223 Uint32 which;
224 Uint32 state;
225 Sint32 x;
226 Sint32 y;
227 Sint32 xrel;
228 Sint32 yrel;
229 } SDL_MouseMotionEvent;
230
234 typedef struct SDL_MouseButtonEvent
235 {
236 Uint32 type;
237 Uint32 timestamp;
238 Uint32 windowID;
239 Uint32 which;
240 Uint8 button;
241 Uint8 state;
242 Uint8 padding1;
243 Uint8 padding2;
244 Sint32 x;
245 Sint32 y;
246 } SDL_MouseButtonEvent;
247
251 typedef struct SDL_MouseWheelEvent
252 {
253 Uint32 type;
254 Uint32 timestamp;
255 Uint32 windowID;
256 Uint32 which;
257 Sint32 x;
258 Sint32 y;
259 } SDL_MouseWheelEvent;
260
264 typedef struct SDL_JoyAxisEvent
265 {
266 Uint32 type;
267 Uint32 timestamp;
268 SDL_JoystickID which;
269 Uint8 axis;
270 Uint8 padding1;
271 Uint8 padding2;
272 Uint8 padding3;
273 Sint16 value;
274 Uint16 padding4;
275 } SDL_JoyAxisEvent;
276
280 typedef struct SDL_JoyBallEvent
281 {
282 Uint32 type;
283 Uint32 timestamp;
284 SDL_JoystickID which;
285 Uint8 ball;
286 Uint8 padding1;
287 Uint8 padding2;
288 Uint8 padding3;
289 Sint16 xrel;
290 Sint16 yrel;
291 } SDL_JoyBallEvent;
292
296 typedef struct SDL_JoyHatEvent
297 {
298 Uint32 type;
299 Uint32 timestamp;
300 SDL_JoystickID which;
301 Uint8 hat;
302 Uint8 value;
309 Uint8 padding1;
310 Uint8 padding2;
311 } SDL_JoyHatEvent;
312
316 typedef struct SDL_JoyButtonEvent
317 {
318 Uint32 type;
319 Uint32 timestamp;
320 SDL_JoystickID which;
321 Uint8 button;
322 Uint8 state;
323 Uint8 padding1;
324 Uint8 padding2;
325 } SDL_JoyButtonEvent;
326
330 typedef struct SDL_JoyDeviceEvent
331 {
332 Uint32 type;
333 Uint32 timestamp;
334 Sint32 which;
335 } SDL_JoyDeviceEvent;
336
337
341 typedef struct SDL_ControllerAxisEvent
342 {
343 Uint32 type;
344 Uint32 timestamp;
345 SDL_JoystickID which;
346 Uint8 axis;
347 Uint8 padding1;
348 Uint8 padding2;
349 Uint8 padding3;
350 Sint16 value;
351 Uint16 padding4;
352 } SDL_ControllerAxisEvent;
353
354
358 typedef struct SDL_ControllerButtonEvent
359 {
360 Uint32 type;
361 Uint32 timestamp;
362 SDL_JoystickID which;
363 Uint8 button;
364 Uint8 state;
365 Uint8 padding1;
366 Uint8 padding2;
367 } SDL_ControllerButtonEvent;
368
369
373 typedef struct SDL_ControllerDeviceEvent
374 {
375 Uint32 type;
376 Uint32 timestamp;
377 Sint32 which;
378 } SDL_ControllerDeviceEvent;
379
380
384 typedef struct SDL_TouchFingerEvent
385 {
386 Uint32 type;
387 Uint32 timestamp;
388 SDL_TouchID touchId;
389 SDL_FingerID fingerId;
390 float x;
391 float y;
392 float dx;
393 float dy;
394 float pressure;
395 } SDL_TouchFingerEvent;
396
397
401 typedef struct SDL_MultiGestureEvent
402 {
403 Uint32 type;
404 Uint32 timestamp;
405 SDL_TouchID touchId;
406 float dTheta;
407 float dDist;
408 float x;
409 float y;
410 Uint16 numFingers;
411 Uint16 padding;
412 } SDL_MultiGestureEvent;
413
414
418 typedef struct SDL_DollarGestureEvent
419 {
420 Uint32 type;
421 Uint32 timestamp;
422 SDL_TouchID touchId;
423 SDL_GestureID gestureId;
424 Uint32 numFingers;
425 float error;
426 float x;
427 float y;
428 } SDL_DollarGestureEvent;
429
430
436 typedef struct SDL_DropEvent
437 {
438 Uint32 type;
439 Uint32 timestamp;
440 char *file;
441 } SDL_DropEvent;
442
443
447 typedef struct SDL_QuitEvent
448 {
449 Uint32 type;
450 Uint32 timestamp;
451 } SDL_QuitEvent;
452
456 typedef struct SDL_OSEvent
457 {
458 Uint32 type;
459 Uint32 timestamp;
460 } SDL_OSEvent;
461
465 typedef struct SDL_UserEvent
466 {
467 Uint32 type;
468 Uint32 timestamp;
469 Uint32 windowID;
470 Sint32 code;
471 void *data1;
472 void *data2;
473 } SDL_UserEvent;
474
475
476 struct SDL_SysWMmsg;
477 typedef struct SDL_SysWMmsg SDL_SysWMmsg;
478
485 typedef struct SDL_SysWMEvent
486 {
487 Uint32 type;
488 Uint32 timestamp;
489 SDL_SysWMmsg *msg;
490 } SDL_SysWMEvent;
491
495 typedef union SDL_Event
496 {
497 Uint32 type;
498 SDL_CommonEvent common;
499 SDL_WindowEvent window;
500 SDL_KeyboardEvent key;
501 SDL_TextEditingEvent edit;
502 SDL_TextInputEvent text;
503 SDL_MouseMotionEvent motion;
504 SDL_MouseButtonEvent button;
505 SDL_MouseWheelEvent wheel;
506 SDL_JoyAxisEvent jaxis;
507 SDL_JoyBallEvent jball;
508 SDL_JoyHatEvent jhat;
509 SDL_JoyButtonEvent jbutton;
510 SDL_JoyDeviceEvent jdevice;
511 SDL_ControllerAxisEvent caxis;
512 SDL_ControllerButtonEvent cbutton;
513 SDL_ControllerDeviceEvent cdevice;
514 SDL_QuitEvent quit;
515 SDL_UserEvent user;
516 SDL_SysWMEvent syswm;
517 SDL_TouchFingerEvent tfinger;
518 SDL_MultiGestureEvent mgesture;
519 SDL_DollarGestureEvent dgesture;
520 SDL_DropEvent drop;
522 /* This is necessary for ABI compatibility between Visual C++ and GCC
523 Visual C++ will respect the push pack pragma and use 52 bytes for
524 this structure, and GCC will use the alignment of the largest datatype
525 within the union, which is 8 bytes.
526
527 So... we'll add padding to force the size to be 56 bytes for both.
528 */
529 Uint8 padding[56];
530 } SDL_Event;
531
532
533 /* Function prototypes */
534
542 extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
543
544 /* @{ */
545 typedef enum
546 {
547 SDL_ADDEVENT,
548 SDL_PEEKEVENT,
549 SDL_GETEVENT
550 } SDL_eventaction;
551
570 extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
571 SDL_eventaction action,
572 Uint32 minType, Uint32 maxType);
573 /* @} */
574
578 extern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type);
579 extern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);
580
584 extern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);
585 extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
586
595 extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
596
605 extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
606
617 extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
618 int timeout);
619
626 extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
627
628 typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
629
655 extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,
656 void *userdata);
657
662 extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
663 void **userdata);
664
668 extern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,
669 void *userdata);
670
674 extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
675 void *userdata);
676
681 extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
682 void *userdata);
683
684 /* @{ */
685 #define SDL_QUERY -1
686 #define SDL_IGNORE 0
687 #define SDL_DISABLE 0
688 #define SDL_ENABLE 1
689
699 extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);
700 /* @} */
701 #define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)
702
710 extern DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents);
711
712 /* Ends C function definitions when using C++ */
713 #ifdef __cplusplus
714 }
715 #endif
716 #include "close_code.h"
717
718 #endif /* _SDL_events_h */
719
720 /* vi: set ts=4 sw=4 expandtab: */
SDL_WindowEvent::padding3
Uint8 padding3
Definition: SDL_events.h:168
SDL_MultiGestureEvent::padding
Uint16 padding
Definition: SDL_events.h:411
SDL_JOYBUTTONUP
Definition: SDL_events.h:109
SDL_UserEvent::data1
void * data1
Definition: SDL_events.h:471
SDL_ControllerAxisEvent::which
SDL_JoystickID which
Definition: SDL_events.h:345
SDL_JoyBallEvent::padding1
Uint8 padding1
Definition: SDL_events.h:286
SDL_JoyAxisEvent::type
Uint32 type
Definition: SDL_events.h:266
SDL_JoyAxisEvent::value
Sint16 value
Definition: SDL_events.h:273
SDL_eventaction
SDL_eventaction
Definition: SDL_events.h:545
SDL_Event::motion
SDL_MouseMotionEvent motion
Definition: SDL_events.h:503
SDL_JoyButtonEvent::which
SDL_JoystickID which
Definition: SDL_events.h:320
SDL_DollarGestureEvent
struct SDL_DollarGestureEvent SDL_DollarGestureEvent
Dollar Gesture Event (event.dgesture.*)
SDL_MouseMotionEvent::which
Uint32 which
Definition: SDL_events.h:223
SDL_FlushEvents
DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType)
Definition: SDL_events.c:364
SDL_APP_DIDENTERFOREGROUND
Definition: SDL_events.h:83
SDL_TextEditingEvent::windowID
Uint32 windowID
Definition: SDL_events.h:196
SDL_JOYHATMOTION
Definition: SDL_events.h:107
SDL_APP_WILLENTERFOREGROUND
Definition: SDL_events.h:79
SDL_TextEditingEvent::start
Sint32 start
Definition: SDL_events.h:198
SDL_TouchFingerEvent
struct SDL_TouchFingerEvent SDL_TouchFingerEvent
Touch finger event structure (event.tfinger.*)
SDL_KEYDOWN
Definition: SDL_events.h:93
SDL_Event::padding
Uint8 padding[56]
Definition: SDL_events.h:529
SDL_Event::caxis
SDL_ControllerAxisEvent caxis
Definition: SDL_events.h:511
SDL_PushEvent
DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event)
Add an event to the event queue.
Definition: SDL_events.c:457
SDL_Event::jdevice
SDL_JoyDeviceEvent jdevice
Definition: SDL_events.h:510
SDL_QuitEvent
The &quot;quit requested&quot; event.
Definition: SDL_events.h:447
SDL_joystick.h
SDL_ControllerDeviceEvent
Controller device event structure (event.cdevice.*)
Definition: SDL_events.h:373
SDL_JoyAxisEvent::axis
Uint8 axis
Definition: SDL_events.h:269
SDL_MouseWheelEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:254
Sint32
int32_t Sint32
A signed 32-bit integer type.
Definition: SDL_stdinc.h:141
SDL_TextEditingEvent::type
Uint32 type
Definition: SDL_events.h:194
type
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
SDL_Event::dgesture
SDL_DollarGestureEvent dgesture
Definition: SDL_events.h:519
SDL_quit.h
SDL_JoyButtonEvent
Joystick button event structure (event.jbutton.*)
Definition: SDL_events.h:316
SDL_APP_LOWMEMORY
Definition: SDL_events.h:67
SDL_MouseMotionEvent::y
Sint32 y
Definition: SDL_events.h:226
SDL_TouchID
Sint64 SDL_TouchID
Definition: SDL_touch.h:41
SDL_MOUSEBUTTONUP
Definition: SDL_events.h:101
filter
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: gl2ext.h:961
SDL_ControllerAxisEvent::value
Sint16 value
Definition: SDL_events.h:350
SDL_CONTROLLERDEVICEREMOVED
Definition: SDL_events.h:118
SDL_UserEvent::data2
void * data2
Definition: SDL_events.h:472
SDL_Event::cdevice
SDL_ControllerDeviceEvent cdevice
Definition: SDL_events.h:513
SDL_gesture.h
SDL_MultiGestureEvent::type
Uint32 type
Definition: SDL_events.h:403
SDL_Event::jbutton
SDL_JoyButtonEvent jbutton
Definition: SDL_events.h:509
SDL_MouseButtonEvent::y
Sint32 y
Definition: SDL_events.h:245
SDL_WaitEvent
DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event)
Waits indefinitely for the next available event.
Definition: SDL_events.c:421
SDL_ControllerDeviceEvent
struct SDL_ControllerDeviceEvent SDL_ControllerDeviceEvent
Controller device event structure (event.cdevice.*)
SDL_DollarGestureEvent::y
float y
Definition: SDL_events.h:427
SDL_FingerID
Sint64 SDL_FingerID
Definition: SDL_touch.h:42
SDL_JoyButtonEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:319
SDL_bool
SDL_bool
Definition: SDL_stdinc.h:116
SDL_JoyAxisEvent
Joystick axis motion event structure (event.jaxis.*)
Definition: SDL_events.h:264
SDL_JoyDeviceEvent
struct SDL_JoyDeviceEvent SDL_JoyDeviceEvent
Joystick device event structure (event.jdevice.*)
SDL_JoyBallEvent::ball
Uint8 ball
Definition: SDL_events.h:285
SDL_TouchFingerEvent::dx
float dx
Definition: SDL_events.h:392
SDL_MouseButtonEvent::type
Uint32 type
Definition: SDL_events.h:236
SDL_SysWMEvent::msg
SDL_SysWMmsg * msg
Definition: SDL_events.h:489
SDL_TouchFingerEvent::pressure
float pressure
Definition: SDL_events.h:394
SDL_JOYDEVICEADDED
Definition: SDL_events.h:110
SDL_SYSWMEVENT
Definition: SDL_events.h:90
SDL_DropEvent::type
Uint32 type
Definition: SDL_events.h:438
SDL_JoystickID
Sint32 SDL_JoystickID
Definition: SDL_joystick.h:72
SDL_UserEvent
struct SDL_UserEvent SDL_UserEvent
A user-defined event type (event.user.*)
SDL_PEEKEVENT
Definition: SDL_events.h:548
SDL_ControllerAxisEvent
struct SDL_ControllerAxisEvent SDL_ControllerAxisEvent
Game controller axis motion event structure (event.caxis.*)
SDL_PollEvent
DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event)
Polls for currently pending events.
Definition: SDL_events.c:415
SDL_MOUSEBUTTONDOWN
Definition: SDL_events.h:100
SDL_JoyAxisEvent::padding4
Uint16 padding4
Definition: SDL_events.h:274
SDL_Event::jball
SDL_JoyBallEvent jball
Definition: SDL_events.h:507
SDL_QUIT
Definition: SDL_events.h:60
SDL_JoyAxisEvent::which
SDL_JoystickID which
Definition: SDL_events.h:268
SDL_TouchFingerEvent::touchId
SDL_TouchID touchId
Definition: SDL_events.h:388
SDL_MouseButtonEvent::which
Uint32 which
Definition: SDL_events.h:239
SDL_QuitEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:450
SDL_USEREVENT
Definition: SDL_events.h:140
SDL_MouseMotionEvent::x
Sint32 x
Definition: SDL_events.h:225
SDL_JoyBallEvent::xrel
Sint16 xrel
Definition: SDL_events.h:289
SDL_WindowEvent::type
Uint32 type
Definition: SDL_events.h:162
SDL_KeyboardEvent::state
Uint8 state
Definition: SDL_events.h:181
SDL_MouseWheelEvent
struct SDL_MouseWheelEvent SDL_MouseWheelEvent
Mouse wheel event structure (event.wheel.*)
SDL_TextEditingEvent
Keyboard text editing event structure (event.edit.*)
Definition: SDL_events.h:192
DECLSPEC
#define DECLSPEC
Definition: begin_code.h:62
SDL_Keysym
The SDL keysym structure, used in key events.
Definition: SDL_keyboard.h:47
SDL_EventState
DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state)
Definition: SDL_events.c:555
SDL_PumpEvents
DECLSPEC void SDLCALL SDL_PumpEvents(void)
Definition: SDL_events.c:396
SDL_JOYBALLMOTION
Definition: SDL_events.h:106
SDL_JoyButtonEvent::state
Uint8 state
Definition: SDL_events.h:322
SDL_MultiGestureEvent::dDist
float dDist
Definition: SDL_events.h:407
SDL_SysWMEvent::type
Uint32 type
Definition: SDL_events.h:487
SDL_MultiGestureEvent::y
float y
Definition: SDL_events.h:409
SDL_ControllerAxisEvent
Game controller axis motion event structure (event.caxis.*)
Definition: SDL_events.h:341
SDL_Event::quit
SDL_QuitEvent quit
Definition: SDL_events.h:514
SDLCALL
#define SDLCALL
Definition: begin_code.h:72
SDL_JOYAXISMOTION
Definition: SDL_events.h:105
SDL_DollarGestureEvent::gestureId
SDL_GestureID gestureId
Definition: SDL_events.h:423
SDL_UserEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:468
SDL_MOUSEWHEEL
Definition: SDL_events.h:102
begin_code.h
SDL_MultiGestureEvent
struct SDL_MultiGestureEvent SDL_MultiGestureEvent
Multiple Finger Gesture Event (event.mgesture.*)
SDL_CONTROLLERDEVICEADDED
Definition: SDL_events.h:117
SDL_DollarGestureEvent::error
float error
Definition: SDL_events.h:425
SDL_ControllerButtonEvent::padding1
Uint8 padding1
Definition: SDL_events.h:365
SDL_DollarGestureEvent
Dollar Gesture Event (event.dgesture.*)
Definition: SDL_events.h:418
SDL_ControllerButtonEvent::which
SDL_JoystickID which
Definition: SDL_events.h:362
SDL_TextEditingEvent::length
Sint32 length
Definition: SDL_events.h:199
SDL_KeyboardEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:179
SDL_JoyDeviceEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:333
SDL_JoyAxisEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:267
SDL_OSEvent
OS Specific event.
Definition: SDL_events.h:456
SDL_TextInputEvent
Keyboard text input event structure (event.text.*)
Definition: SDL_events.h:207
SDL_ControllerButtonEvent::state
Uint8 state
Definition: SDL_events.h:364
SDL_Event::wheel
SDL_MouseWheelEvent wheel
Definition: SDL_events.h:505
SDL_ControllerDeviceEvent::which
Sint32 which
Definition: SDL_events.h:377
SDL_MouseMotionEvent::type
Uint32 type
Definition: SDL_events.h:220
SDL_JoyBallEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:283
SDL_JoyBallEvent
Joystick trackball motion event structure (event.jball.*)
Definition: SDL_events.h:280
SDL_KeyboardEvent::windowID
Uint32 windowID
Definition: SDL_events.h:180
SDL_gamecontroller.h
SDL_CONTROLLERBUTTONUP
Definition: SDL_events.h:116
SDL_Event
union SDL_Event SDL_Event
General event structure.
SDL_TouchFingerEvent::dy
float dy
Definition: SDL_events.h:393
SDL_MouseButtonEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:237
SDL_PeepEvents
DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType)
Definition: SDL_events.c:265
SDL_JOYDEVICEREMOVED
Definition: SDL_events.h:111
SDL_DOLLARGESTURE
Definition: SDL_events.h:127
SDL_touch.h
SDL_Event::window
SDL_WindowEvent window
Definition: SDL_events.h:499
Uint32
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
SDL_SysWMEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:488
SDL_MouseWheelEvent::type
Uint32 type
Definition: SDL_events.h:253
SDL_ControllerButtonEvent::type
Uint32 type
Definition: SDL_events.h:360
SDL_UserEvent
A user-defined event type (event.user.*)
Definition: SDL_events.h:465
SDL_DropEvent
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
Definition: SDL_events.h:436
SDL_CommonEvent
Fields shared by every event.
Definition: SDL_events.h:151
SDL_TextInputEvent
struct SDL_TextInputEvent SDL_TextInputEvent
Keyboard text input event structure (event.text.*)
SDL_MouseButtonEvent::state
Uint8 state
Definition: SDL_events.h:241
SDL_MouseMotionEvent::yrel
Sint32 yrel
Definition: SDL_events.h:228
SDL_DollarGestureEvent::touchId
SDL_TouchID touchId
Definition: SDL_events.h:422
SDL_WindowEvent
struct SDL_WindowEvent SDL_WindowEvent
Window state change event data (event.window.*)
SDL_JoyBallEvent::which
SDL_JoystickID which
Definition: SDL_events.h:284
SDL_MouseButtonEvent::button
Uint8 button
Definition: SDL_events.h:240
SDL_ControllerButtonEvent::padding2
Uint8 padding2
Definition: SDL_events.h:366
SDL_FINGERDOWN
Definition: SDL_events.h:122
SDL_KeyboardEvent
Keyboard button event structure (event.key.*)
Definition: SDL_events.h:176
SDL_Event::text
SDL_TextInputEvent text
Definition: SDL_events.h:502
SDL_video.h
SDL_JoyHatEvent::padding2
Uint8 padding2
Definition: SDL_events.h:310
SDL_TextInputEvent::type
Uint32 type
Definition: SDL_events.h:209
SDL_MouseMotionEvent::xrel
Sint32 xrel
Definition: SDL_events.h:227
SDL_TextInputEvent::text
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]
Definition: SDL_events.h:212
SDL_JoyHatEvent::padding1
Uint8 padding1
Definition: SDL_events.h:309
SDL_JoyAxisEvent::padding1
Uint8 padding1
Definition: SDL_events.h:270
SDL_ControllerDeviceEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:376
SDL_DropEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:439
int
int
Definition: SDL_systhread.c:37
SDL_MouseButtonEvent::padding1
Uint8 padding1
Definition: SDL_events.h:242
SDL_DollarGestureEvent::x
float x
Definition: SDL_events.h:426
close_code.h
SDL_JOYBUTTONDOWN
Definition: SDL_events.h:108
SDL_JoyHatEvent::type
Uint32 type
Definition: SDL_events.h:298
SDL_Event::jaxis
SDL_JoyAxisEvent jaxis
Definition: SDL_events.h:506
SDL_TouchFingerEvent::x
float x
Definition: SDL_events.h:390
SDL_TouchFingerEvent
Touch finger event structure (event.tfinger.*)
Definition: SDL_events.h:384
SDL_MultiGestureEvent::numFingers
Uint16 numFingers
Definition: SDL_events.h:410
SDL_Event::mgesture
SDL_MultiGestureEvent mgesture
Definition: SDL_events.h:518
SDL_GestureID
Sint64 SDL_GestureID
Definition: SDL_gesture.h:44
SDL_KEYUP
Definition: SDL_events.h:94
SDL_mouse.h
SDL_WindowEvent::padding2
Uint8 padding2
Definition: SDL_events.h:167
SDL_ControllerButtonEvent
struct SDL_ControllerButtonEvent SDL_ControllerButtonEvent
Game controller button event structure (event.cbutton.*)
SDL_SysWMEvent
struct SDL_SysWMEvent SDL_SysWMEvent
A video driver dependent system event (event.syswm.*) This event is disabled by default, you can enable it with SDL_EventState()
SDL_ControllerAxisEvent::padding4
Uint16 padding4
Definition: SDL_events.h:351
SDL_JoyHatEvent
struct SDL_JoyHatEvent SDL_JoyHatEvent
Joystick hat position change event structure (event.jhat.*)
SDL_SysWMmsg
Definition: SDL_syswm.h:112
SDL_WindowEvent::data2
Sint32 data2
Definition: SDL_events.h:170
SDL_MouseWheelEvent::windowID
Uint32 windowID
Definition: SDL_events.h:255
SDL_TextInputEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:210
SDL_stdinc.h
SDL_TextEditingEvent
struct SDL_TextEditingEvent SDL_TextEditingEvent
Keyboard text editing event structure (event.edit.*)
SDL_EventType
SDL_EventType
The types of events that can be delivered.
Definition: SDL_events.h:55
SDL_WINDOWEVENT
Definition: SDL_events.h:89
SDL_TextEditingEvent::text
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]
Definition: SDL_events.h:197
SDL_MouseWheelEvent::which
Uint32 which
Definition: SDL_events.h:256
SDL_KeyboardEvent
struct SDL_KeyboardEvent SDL_KeyboardEvent
Keyboard button event structure (event.key.*)
SDL_ControllerAxisEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:344
SDL_UserEvent::windowID
Uint32 windowID
Definition: SDL_events.h:469
SDL_CONTROLLERBUTTONDOWN
Definition: SDL_events.h:115
SDL_OSEvent
struct SDL_OSEvent SDL_OSEvent
OS Specific event.
SDL_JoyButtonEvent::type
Uint32 type
Definition: SDL_events.h:318
SDL_KeyboardEvent::repeat
Uint8 repeat
Definition: SDL_events.h:182
SDL_TextInputEvent::windowID
Uint32 windowID
Definition: SDL_events.h:211
SDL_JoyBallEvent::type
Uint32 type
Definition: SDL_events.h:282
SDL_JoyHatEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:299
SDL_ControllerDeviceEvent::type
Uint32 type
Definition: SDL_events.h:375
SDL_WindowEvent::event
Uint8 event
Definition: SDL_events.h:165
SDL_KeyboardEvent::keysym
SDL_Keysym keysym
Definition: SDL_events.h:185
SDL_UserEvent::code
Sint32 code
Definition: SDL_events.h:470
SDL_TouchFingerEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:387
SDL_FINGERMOTION
Definition: SDL_events.h:124
SDL_CONTROLLERDEVICEREMAPPED
Definition: SDL_events.h:119
timeout
GLbitfield GLuint64 timeout
Definition: glew.h:5938
SDL_JoyBallEvent
struct SDL_JoyBallEvent SDL_JoyBallEvent
Joystick trackball motion event structure (event.jball.*)
SDL_MouseWheelEvent
Mouse wheel event structure (event.wheel.*)
Definition: SDL_events.h:251
SDL_KeyboardEvent::padding3
Uint8 padding3
Definition: SDL_events.h:184
SDL_TextEditingEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:195
SDL_WaitEventTimeout
DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event *event, int timeout)
Waits until the specified timeout (in milliseconds) for the next available event. ...
Definition: SDL_events.c:427
SDL_AddEventWatch
DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.c:504
SDL_QuitEvent::type
Uint32 type
Definition: SDL_events.h:449
SDL_WindowEvent
Window state change event data (event.window.*)
Definition: SDL_events.h:160
SDL_DROPFILE
Definition: SDL_events.h:135
SDL_JoyButtonEvent::padding1
Uint8 padding1
Definition: SDL_events.h:323
SDL_GetEventFilter
DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter, void **userdata)
Definition: SDL_events.c:491
SDL_FIRSTEVENT
Definition: SDL_events.h:57
SDL_WindowEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:163
SDL_OSEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:459
SDL_ControllerButtonEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:361
SDL_HasEvent
DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type)
Definition: SDL_events.c:346
SDL_CommonEvent::type
Uint32 type
Definition: SDL_events.h:153
SDL_MultiGestureEvent::dTheta
float dTheta
Definition: SDL_events.h:406
SDL_Event::edit
SDL_TextEditingEvent edit
Definition: SDL_events.h:501
SDL_JoyBallEvent::padding3
Uint8 padding3
Definition: SDL_events.h:288
SDL_ControllerButtonEvent::button
Uint8 button
Definition: SDL_events.h:363
SDL_KeyboardEvent::padding2
Uint8 padding2
Definition: SDL_events.h:183
SDL_SetEventFilter
DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.c:481
SDL_DropEvent::file
char * file
Definition: SDL_events.h:440
SDL_FINGERUP
Definition: SDL_events.h:123
SDL_Event::syswm
SDL_SysWMEvent syswm
Definition: SDL_events.h:516
SDL_DollarGestureEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:421
SDL_MOUSEMOTION
Definition: SDL_events.h:99
SDL_DollarGestureEvent::numFingers
Uint32 numFingers
Definition: SDL_events.h:424
SDL_DelEventWatch
DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.c:521
SDL_ControllerAxisEvent::padding2
Uint8 padding2
Definition: SDL_events.h:348
SDL_MouseMotionEvent
Mouse motion event structure (event.motion.*)
Definition: SDL_events.h:218
SDL_HasEvents
DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType)
Definition: SDL_events.c:352
SDL_JoyHatEvent::hat
Uint8 hat
Definition: SDL_events.h:301
SDL_JoyDeviceEvent::which
Sint32 which
Definition: SDL_events.h:334
SDL_TEXTINPUT
Definition: SDL_events.h:96
SDL_keyboard.h
SDL_KeyboardEvent::type
Uint32 type
Definition: SDL_events.h:178
SDL_ControllerButtonEvent
Game controller button event structure (event.cbutton.*)
Definition: SDL_events.h:358
SDL_Event::key
SDL_KeyboardEvent key
Definition: SDL_events.h:500
SDL_JoyHatEvent
Joystick hat position change event structure (event.jhat.*)
Definition: SDL_events.h:296
SDL_WindowEvent::padding1
Uint8 padding1
Definition: SDL_events.h:166
SDL_Event::cbutton
SDL_ControllerButtonEvent cbutton
Definition: SDL_events.h:512
SDL_JoyDeviceEvent::type
Uint32 type
Definition: SDL_events.h:332
SDL_ControllerAxisEvent::axis
Uint8 axis
Definition: SDL_events.h:346
Uint8
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
SDL_MultiGestureEvent::x
float x
Definition: SDL_events.h:408
SDL_MouseButtonEvent
Mouse button event structure (event.button.*)
Definition: SDL_events.h:234
SDL_MouseMotionEvent::windowID
Uint32 windowID
Definition: SDL_events.h:222
SDL_MouseMotionEvent::state
Uint32 state
Definition: SDL_events.h:224
SDL_TouchFingerEvent::y
float y
Definition: SDL_events.h:391
SDL_TouchFingerEvent::type
Uint32 type
Definition: SDL_events.h:386
SDL_MouseWheelEvent::x
Sint32 x
Definition: SDL_events.h:257
SDL_SysWMEvent
A video driver dependent system event (event.syswm.*) This event is disabled by default, you can enable it with SDL_EventState()
Definition: SDL_events.h:485
SDL_JoyHatEvent::value
Uint8 value
Definition: SDL_events.h:302
SDL_CommonEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:154
Sint16
int16_t Sint16
A signed 16-bit integer type.
Definition: SDL_stdinc.h:133
SDL_TouchFingerEvent::fingerId
SDL_FingerID fingerId
Definition: SDL_events.h:389
SDL_MouseMotionEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:221
SDL_Event::button
SDL_MouseButtonEvent button
Definition: SDL_events.h:504
SDL_MouseButtonEvent::x
Sint32 x
Definition: SDL_events.h:244
SDL_MultiGestureEvent::timestamp
Uint32 timestamp
Definition: SDL_events.h:404
SDL_RegisterEvents
DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents)
Definition: SDL_events.c:596
SDL_FlushEvent
DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type)
Definition: SDL_events.c:358
SDL_CommonEvent
struct SDL_CommonEvent SDL_CommonEvent
Fields shared by every event.
Uint16
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
SDL_Event
General event structure.
Definition: SDL_events.h:495
SDL_MouseWheelEvent::y
Sint32 y
Definition: SDL_events.h:258
SDL_JoyAxisEvent::padding2
Uint8 padding2
Definition: SDL_events.h:271
SDL_Event::user
SDL_UserEvent user
Definition: SDL_events.h:515
SDL_APP_WILLENTERBACKGROUND
Definition: SDL_events.h:71
SDL_TEXTINPUTEVENT_TEXT_SIZE
#define SDL_TEXTINPUTEVENT_TEXT_SIZE
Definition: SDL_events.h:203
SDL_OSEvent::type
Uint32 type
Definition: SDL_events.h:458
SDL_APP_TERMINATING
Definition: SDL_events.h:63
SDL_UserEvent::type
Uint32 type
Definition: SDL_events.h:467
SDL_GETEVENT
Definition: SDL_events.h:549
SDL_JoyAxisEvent
struct SDL_JoyAxisEvent SDL_JoyAxisEvent
Joystick axis motion event structure (event.jaxis.*)
SDL_MouseMotionEvent
struct SDL_MouseMotionEvent SDL_MouseMotionEvent
Mouse motion event structure (event.motion.*)
SDL_JoyBallEvent::yrel
Sint16 yrel
Definition: SDL_events.h:290
SDL_ADDEVENT
Definition: SDL_events.h:547
SDL_Event::jhat
SDL_JoyHatEvent jhat
Definition: SDL_events.h:508
SDL_JoyButtonEvent::button
Uint8 button
Definition: SDL_events.h:321
SDL_Event::common
SDL_CommonEvent common
Definition: SDL_events.h:498
SDL_JoyButtonEvent::padding2
Uint8 padding2
Definition: SDL_events.h:324
SDL_FilterEvents
DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.c:540
SDL_WindowEvent::data1
Sint32 data1
Definition: SDL_events.h:169
SDL_MouseButtonEvent::windowID
Uint32 windowID
Definition: SDL_events.h:238
SDL_APP_DIDENTERBACKGROUND
Definition: SDL_events.h:75
SDL_CLIPBOARDUPDATE
Definition: SDL_events.h:132
SDL_ControllerAxisEvent::padding3
Uint8 padding3
Definition: SDL_events.h:349
SDL_CONTROLLERAXISMOTION
Definition: SDL_events.h:114
SDL_DollarGestureEvent::type
Uint32 type
Definition: SDL_events.h:420
SDL_ControllerAxisEvent::type
Uint32 type
Definition: SDL_events.h:343
SDL_error.h
SDL_JoyDeviceEvent
Joystick device event structure (event.jdevice.*)
Definition: SDL_events.h:330
SDL_DropEvent
struct SDL_DropEvent SDL_DropEvent
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
SDL_JoyBallEvent::padding2
Uint8 padding2
Definition: SDL_events.h:287
SDL_JoyHatEvent::which
SDL_JoystickID which
Definition: SDL_events.h:300
SDL_WindowEvent::windowID
Uint32 windowID
Definition: SDL_events.h:164
SDL_DOLLARRECORD
Definition: SDL_events.h:128
SDL_TEXTEDITING
Definition: SDL_events.h:95
SDL_LASTEVENT
Definition: SDL_events.h:145
SDL_JoyAxisEvent::padding3
Uint8 padding3
Definition: SDL_events.h:272
SDL_MultiGestureEvent::touchId
SDL_TouchID touchId
Definition: SDL_events.h:405
SDL_Event::drop
SDL_DropEvent drop
Definition: SDL_events.h:520
SDL_Event::type
Uint32 type
Definition: SDL_events.h:497
SDL_MouseButtonEvent::padding2
Uint8 padding2
Definition: SDL_events.h:243
SDL_ControllerAxisEvent::padding1
Uint8 padding1
Definition: SDL_events.h:347
SDL_MouseButtonEvent
struct SDL_MouseButtonEvent SDL_MouseButtonEvent
Mouse button event structure (event.button.*)
SDL_TEXTEDITINGEVENT_TEXT_SIZE
#define SDL_TEXTEDITINGEVENT_TEXT_SIZE
Definition: SDL_events.h:188
event
cl_event event
Definition: glew.h:3556
SDL_MULTIGESTURE
Definition: SDL_events.h:129
SDL_JoyButtonEvent
struct SDL_JoyButtonEvent SDL_JoyButtonEvent
Joystick button event structure (event.jbutton.*)
SDL_QuitEvent
struct SDL_QuitEvent SDL_QuitEvent
The &quot;quit requested&quot; event.
SDL_MultiGestureEvent
Multiple Finger Gesture Event (event.mgesture.*)
Definition: SDL_events.h:401
SDL_Event::tfinger
SDL_TouchFingerEvent tfinger
Definition: SDL_events.h:517