My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros 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 {
59  /* Application events */
60  SDL_QUIT = 0x100,
62  /* These application events have special meaning on iOS, see README-ios.txt for details */
88  /* Window events */
89  SDL_WINDOWEVENT = 0x200,
92  /* Keyboard events */
93  SDL_KEYDOWN = 0x300,
98  /* Mouse events */
99  SDL_MOUSEMOTION = 0x400,
104  /* Joystick events */
113  /* Game controller events */
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 */
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;
156 
160 typedef struct SDL_WindowEvent
161 {
163  Uint32 timestamp;
166  Uint8 padding1;
167  Uint8 padding2;
168  Uint8 padding3;
172 
176 typedef struct SDL_KeyboardEvent
177 {
179  Uint32 timestamp;
183  Uint8 padding2;
184  Uint8 padding3;
187 
188 #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
189 
192 typedef struct SDL_TextEditingEvent
193 {
195  Uint32 timestamp;
197  char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
201 
202 
203 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
204 
207 typedef struct SDL_TextInputEvent
208 {
210  Uint32 timestamp;
212  char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
214 
218 typedef struct SDL_MouseMotionEvent
219 {
221  Uint32 timestamp;
230 
234 typedef struct SDL_MouseButtonEvent
235 {
237  Uint32 timestamp;
242  Uint8 padding1;
243  Uint8 padding2;
247 
251 typedef struct SDL_MouseWheelEvent
252 {
254  Uint32 timestamp;
260 
264 typedef struct SDL_JoyAxisEvent
265 {
267  Uint32 timestamp;
268  SDL_JoystickID which;
270  Uint8 padding1;
271  Uint8 padding2;
272  Uint8 padding3;
274  Uint16 padding4;
276 
280 typedef struct SDL_JoyBallEvent
281 {
283  Uint32 timestamp;
284  SDL_JoystickID which;
286  Uint8 padding1;
287  Uint8 padding2;
288  Uint8 padding3;
292 
296 typedef struct SDL_JoyHatEvent
297 {
299  Uint32 timestamp;
300  SDL_JoystickID which;
309  Uint8 padding1;
310  Uint8 padding2;
312 
316 typedef struct SDL_JoyButtonEvent
317 {
319  Uint32 timestamp;
320  SDL_JoystickID which;
323  Uint8 padding1;
324  Uint8 padding2;
326 
330 typedef struct SDL_JoyDeviceEvent
331 {
333  Uint32 timestamp;
336 
337 
342 {
344  Uint32 timestamp;
345  SDL_JoystickID which;
347  Uint8 padding1;
348  Uint8 padding2;
349  Uint8 padding3;
351  Uint16 padding4;
353 
354 
359 {
361  Uint32 timestamp;
362  SDL_JoystickID which;
365  Uint8 padding1;
366  Uint8 padding2;
368 
369 
374 {
376  Uint32 timestamp;
379 
380 
384 typedef struct SDL_TouchFingerEvent
385 {
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;
396 
397 
401 typedef struct SDL_MultiGestureEvent
402 {
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;
413 
414 
419 {
421  Uint32 timestamp;
422  SDL_TouchID touchId;
423  SDL_GestureID gestureId;
424  Uint32 numFingers;
425  float error;
426  float x;
427  float y;
429 
430 
436 typedef struct SDL_DropEvent
437 {
439  Uint32 timestamp;
440  char *file;
441 } SDL_DropEvent;
442 
443 
447 typedef struct SDL_QuitEvent
448 {
450  Uint32 timestamp;
451 } SDL_QuitEvent;
452 
456 typedef struct SDL_OSEvent
457 {
459  Uint32 timestamp;
460 } SDL_OSEvent;
461 
465 typedef struct SDL_UserEvent
466 {
468  Uint32 timestamp;
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 {
488  Uint32 timestamp;
491 
495 typedef union SDL_Event
496 {
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: */
struct SDL_JoyButtonEvent SDL_JoyButtonEvent
Joystick button event structure (event.jbutton.*)
DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)
typedef int(SDLCALL *SDL_EventFilter)(void *userdata
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
Uint8 state
Definition: SDL_events.h:241
Uint32 type
Definition: SDL_events.h:449
DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event)
Waits indefinitely for the next available event.
Definition: SDL_events.h:79
struct SDL_ControllerAxisEvent SDL_ControllerAxisEvent
Game controller axis motion event structure (event.caxis.*)
Uint8 ball
Definition: SDL_events.h:285
Uint8 axis
Definition: SDL_events.h:269
SDL_WindowEvent window
Definition: SDL_events.h:499
Game controller button event structure (event.cbutton.*)
Definition: SDL_events.h:358
struct SDL_KeyboardEvent SDL_KeyboardEvent
Keyboard button event structure (event.key.*)
struct SDL_OSEvent SDL_OSEvent
OS Specific event.
Joystick trackball motion event structure (event.jball.*)
Definition: SDL_events.h:280
SDL_KeyboardEvent key
Definition: SDL_events.h:500
Mouse motion event structure (event.motion.*)
Definition: SDL_events.h:218
Uint32 state
Definition: SDL_events.h:224
SDL_JoyAxisEvent jaxis
Definition: SDL_events.h:506
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
Joystick button event structure (event.jbutton.*)
Definition: SDL_events.h:316
struct SDL_JoyBallEvent SDL_JoyBallEvent
Joystick trackball motion event structure (event.jball.*)
Sint32 y
Definition: SDL_events.h:226
Uint32 type
Definition: SDL_events.h:332
Definition: SDL_events.h:99
struct SDL_JoyDeviceEvent SDL_JoyDeviceEvent
Joystick device event structure (event.jdevice.*)
Uint32 type
Definition: SDL_events.h:298
Uint32 windowID
Definition: SDL_events.h:180
Sint16 xrel
Definition: SDL_events.h:289
Definition: SDL_events.h:105
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
struct SDL_TextEditingEvent SDL_TextEditingEvent
Keyboard text editing event structure (event.edit.*)
SDL_CommonEvent common
Definition: SDL_events.h:498
Sint32 x
Definition: SDL_events.h:225
Sint32 y
Definition: SDL_events.h:245
Sint32 length
Definition: SDL_events.h:199
Definition: SDL_events.h:63
Uint32 type
Definition: SDL_events.h:194
Joystick hat position change event structure (event.jhat.*)
Definition: SDL_events.h:296
struct SDL_MultiGestureEvent SDL_MultiGestureEvent
Multiple Finger Gesture Event (event.mgesture.*)
union SDL_Event SDL_Event
General event structure.
SDL_EventType
The types of events that can be delivered.
Definition: SDL_events.h:55
Uint32 type
Definition: SDL_events.h:458
Uint8 value
Definition: SDL_events.h:302
struct SDL_JoyAxisEvent SDL_JoyAxisEvent
Joystick axis motion event structure (event.jaxis.*)
The SDL keysym structure, used in key events.
Definition: SDL_keyboard.h:47
DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state)
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]
Definition: SDL_events.h:197
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()
Uint32 type
Definition: SDL_events.h:467
Definition: SDL_events.h:114
Uint32 type
Definition: SDL_events.h:162
Dollar Gesture Event (event.dgesture.*)
Definition: SDL_events.h:418
DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter, void **userdata)
Definition: SDL_events.h:100
SDL_Keysym keysym
Definition: SDL_events.h:185
Sint16 yrel
Definition: SDL_events.h:290
Definition: SDL_events.h:117
void * data2
Definition: SDL_events.h:472
Definition: SDL_events.h:71
Uint8 button
Definition: SDL_events.h:321
Uint32 type
Definition: SDL_events.h:178
DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type)
Touch finger event structure (event.tfinger.*)
Definition: SDL_events.h:384
Definition: SDL_events.h:94
Definition: SDL_events.h:109
Definition: SDL_events.h:107
Definition: SDL_events.h:116
SDL_MouseMotionEvent motion
Definition: SDL_events.h:503
SDL_QuitEvent quit
Definition: SDL_events.h:514
Uint8 state
Definition: SDL_events.h:364
Definition: SDL_events.h:102
Definition: SDL_events.h:89
SDL_TouchID touchId
Definition: SDL_events.h:405
Uint32 type
Definition: SDL_events.h:438
Definition: SDL_events.h:145
float x
Definition: SDL_events.h:426
Sint32 yrel
Definition: SDL_events.h:228
General event structure.
Definition: SDL_events.h:495
SDL_TouchID touchId
Definition: SDL_events.h:422
The &quot;quit requested&quot; event.
Definition: SDL_events.h:447
Definition: SDL_events.h:57
Uint8 button
Definition: SDL_events.h:363
Definition: SDL_events.h:108
Definition: SDL_events.h:60
Joystick device event structure (event.jdevice.*)
Definition: SDL_events.h:330
Definition: SDL_events.h:140
Uint32 windowID
Definition: SDL_events.h:255
struct SDL_ControllerDeviceEvent SDL_ControllerDeviceEvent
Controller device event structure (event.cdevice.*)
Uint8 hat
Definition: SDL_events.h:301
float x
Definition: SDL_events.h:390
struct SDL_MouseButtonEvent SDL_MouseButtonEvent
Mouse button event structure (event.button.*)
Joystick axis motion event structure (event.jaxis.*)
Definition: SDL_events.h:264
SDL_MouseWheelEvent wheel
Definition: SDL_events.h:505
Uint32 type
Definition: SDL_events.h:253
SDL_MouseButtonEvent button
Definition: SDL_events.h:504
SDL_TouchFingerEvent tfinger
Definition: SDL_events.h:517
Uint32 type
Definition: SDL_events.h:209
struct SDL_ControllerButtonEvent SDL_ControllerButtonEvent
Game controller button event structure (event.cbutton.*)
DECLSPEC void SDLCALL SDL_PumpEvents(void)
Uint8 event
Definition: SDL_events.h:165
Sint32 data2
Definition: SDL_events.h:170
float dx
Definition: SDL_events.h:392
Definition: SDL_events.h:67
SDL_JoystickID which
Definition: SDL_events.h:268
Uint32 type
Definition: SDL_events.h:266
float pressure
Definition: SDL_events.h:394
Sint32 start
Definition: SDL_events.h:198
Uint32 type
Definition: SDL_events.h:343
Uint32 windowID
Definition: SDL_events.h:211
DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents)
Definition: SDL_events.h:83
A user-defined event type (event.user.*)
Definition: SDL_events.h:465
Uint32 windowID
Definition: SDL_events.h:196
DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event)
Polls for currently pending events.
Multiple Finger Gesture Event (event.mgesture.*)
Definition: SDL_events.h:401
struct SDL_UserEvent SDL_UserEvent
A user-defined event type (event.user.*)
SDL_JoystickID which
Definition: SDL_events.h:362
SDL_DollarGestureEvent dgesture
Definition: SDL_events.h:519
DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type)
Uint32 type
Definition: SDL_events.h:360
SDL_TextInputEvent text
Definition: SDL_events.h:502
Uint32 type
Definition: SDL_events.h:497
SDL_JoystickID which
Definition: SDL_events.h:300
DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.h:119
SDL_ControllerButtonEvent cbutton
Definition: SDL_events.h:512
char * file
Definition: SDL_events.h:440
Uint32 type
Definition: SDL_events.h:375
int32_t Sint32
A signed 32-bit integer type.
Definition: SDL_stdinc.h:141
SDL_JoystickID which
Definition: SDL_events.h:320
struct SDL_TouchFingerEvent SDL_TouchFingerEvent
Touch finger event structure (event.tfinger.*)
Fields shared by every event.
Definition: SDL_events.h:151
struct SDL_QuitEvent SDL_QuitEvent
The &quot;quit requested&quot; event.
Uint32 type
Definition: SDL_events.h:236
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]
Definition: SDL_events.h:212
Keyboard button event structure (event.key.*)
Definition: SDL_events.h:176
Game controller axis motion event structure (event.caxis.*)
Definition: SDL_events.h:341
struct SDL_WindowEvent SDL_WindowEvent
Window state change event data (event.window.*)
SDL_ControllerDeviceEvent cdevice
Definition: SDL_events.h:513
Sint32 x
Definition: SDL_events.h:257
struct SDL_MouseWheelEvent SDL_MouseWheelEvent
Mouse wheel event structure (event.wheel.*)
Definition: SDL_events.h:111
Uint8 axis
Definition: SDL_events.h:346
float y
Definition: SDL_events.h:427
Keyboard text input event structure (event.text.*)
Definition: SDL_events.h:207
SDL_TextEditingEvent edit
Definition: SDL_events.h:501
SDL_JoyButtonEvent jbutton
Definition: SDL_events.h:509
DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
Uint32 which
Definition: SDL_events.h:239
Uint8 repeat
Definition: SDL_events.h:182
float dy
Definition: SDL_events.h:393
Sint32 x
Definition: SDL_events.h:244
struct SDL_TextInputEvent SDL_TextInputEvent
Keyboard text input event structure (event.text.*)
struct SDL_CommonEvent SDL_CommonEvent
Fields shared by every event.
Definition: SDL_events.h:93
struct SDL_DollarGestureEvent SDL_DollarGestureEvent
Dollar Gesture Event (event.dgesture.*)
struct SDL_JoyHatEvent SDL_JoyHatEvent
Joystick hat position change event structure (event.jhat.*)
Definition: SDL_events.h:96
SDL_ControllerAxisEvent caxis
Definition: SDL_events.h:511
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
Definition: SDL_events.h:436
Sint32 y
Definition: SDL_events.h:258
struct SDL_MouseMotionEvent SDL_MouseMotionEvent
Mouse motion event structure (event.motion.*)
DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event *event, int timeout)
Waits until the specified timeout (in milliseconds) for the next available event. ...
Mouse wheel event structure (event.wheel.*)
Definition: SDL_events.h:251
Uint32 which
Definition: SDL_events.h:256
Uint32 windowID
Definition: SDL_events.h:164
Controller device event structure (event.cdevice.*)
Definition: SDL_events.h:373
Uint32 type
Definition: SDL_events.h:487
Definition: SDL_syswm.h:112
Uint32 type
Definition: SDL_events.h:420
Definition: SDL_events.h:101
Uint32 type
Definition: SDL_events.h:220
Uint32 which
Definition: SDL_events.h:223
OS Specific event.
Definition: SDL_events.h:456
SDL_JoystickID which
Definition: SDL_events.h:284
Definition: SDL_events.h:95
SDL_JoyHatEvent jhat
Definition: SDL_events.h:508
Keyboard text editing event structure (event.edit.*)
Definition: SDL_events.h:192
SDL_SysWMmsg * msg
Definition: SDL_events.h:489
SDL_UserEvent user
Definition: SDL_events.h:515
Definition: SDL_events.h:110
SDL_SysWMEvent syswm
Definition: SDL_events.h:516
Uint8 state
Definition: SDL_events.h:322
Sint32 which
Definition: SDL_events.h:377
Uint32 type
Definition: SDL_events.h:386
SDL_TouchID touchId
Definition: SDL_events.h:388
Uint32 windowID
Definition: SDL_events.h:238
SDL_JoyDeviceEvent jdevice
Definition: SDL_events.h:510
Sint16 value
Definition: SDL_events.h:350
Uint32 type
Definition: SDL_events.h:403
Mouse button event structure (event.button.*)
Definition: SDL_events.h:234
SDL_JoyBallEvent jball
Definition: SDL_events.h:507
Definition: SDL_events.h:75
Definition: SDL_events.h:132
Definition: SDL_events.h:135
Uint8 state
Definition: SDL_events.h:181
int16_t Sint16
A signed 16-bit integer type.
Definition: SDL_stdinc.h:133
SDL_DropEvent drop
Definition: SDL_events.h:520
Sint32 which
Definition: SDL_events.h:334
Window state change event data (event.window.*)
Definition: SDL_events.h:160
Uint32 windowID
Definition: SDL_events.h:222
float y
Definition: SDL_events.h:391
Definition: SDL_events.h:90
Sint32 xrel
Definition: SDL_events.h:227
DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event)
Add an event to the event queue.
SDL_JoystickID which
Definition: SDL_events.h:345
Uint8 button
Definition: SDL_events.h:240
Sint32 data1
Definition: SDL_events.h:169
struct SDL_DropEvent SDL_DropEvent
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
Uint32 type
Definition: SDL_events.h:318
SDL_MultiGestureEvent mgesture
Definition: SDL_events.h:518
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
Definition: SDL_events.h:115
Uint32 type
Definition: SDL_events.h:282
void * data1
Definition: SDL_events.h:471
Sint16 value
Definition: SDL_events.h:273
DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType)
Definition: SDL_events.h:106
Sint32 code
Definition: SDL_events.h:470
DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.h:118
Uint32 windowID
Definition: SDL_events.h:469