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-2014 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,
137  /* Render events */
143  SDL_USEREVENT = 0x8000,
144 
148  SDL_LASTEVENT = 0xFFFF
149 } SDL_EventType;
150 
154 typedef struct SDL_CommonEvent
155 {
156  Uint32 type;
157  Uint32 timestamp;
159 
163 typedef struct SDL_WindowEvent
164 {
166  Uint32 timestamp;
169  Uint8 padding1;
170  Uint8 padding2;
171  Uint8 padding3;
175 
179 typedef struct SDL_KeyboardEvent
180 {
182  Uint32 timestamp;
186  Uint8 padding2;
187  Uint8 padding3;
190 
191 #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
192 
195 typedef struct SDL_TextEditingEvent
196 {
198  Uint32 timestamp;
200  char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
204 
205 
206 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
207 
210 typedef struct SDL_TextInputEvent
211 {
213  Uint32 timestamp;
215  char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
217 
221 typedef struct SDL_MouseMotionEvent
222 {
224  Uint32 timestamp;
233 
237 typedef struct SDL_MouseButtonEvent
238 {
240  Uint32 timestamp;
246  Uint8 padding1;
250 
254 typedef struct SDL_MouseWheelEvent
255 {
257  Uint32 timestamp;
263 
267 typedef struct SDL_JoyAxisEvent
268 {
270  Uint32 timestamp;
271  SDL_JoystickID which;
273  Uint8 padding1;
274  Uint8 padding2;
275  Uint8 padding3;
277  Uint16 padding4;
279 
283 typedef struct SDL_JoyBallEvent
284 {
286  Uint32 timestamp;
287  SDL_JoystickID which;
289  Uint8 padding1;
290  Uint8 padding2;
291  Uint8 padding3;
295 
299 typedef struct SDL_JoyHatEvent
300 {
302  Uint32 timestamp;
303  SDL_JoystickID which;
312  Uint8 padding1;
313  Uint8 padding2;
315 
319 typedef struct SDL_JoyButtonEvent
320 {
322  Uint32 timestamp;
323  SDL_JoystickID which;
326  Uint8 padding1;
327  Uint8 padding2;
329 
333 typedef struct SDL_JoyDeviceEvent
334 {
336  Uint32 timestamp;
339 
340 
345 {
347  Uint32 timestamp;
348  SDL_JoystickID which;
350  Uint8 padding1;
351  Uint8 padding2;
352  Uint8 padding3;
354  Uint16 padding4;
356 
357 
362 {
364  Uint32 timestamp;
365  SDL_JoystickID which;
368  Uint8 padding1;
369  Uint8 padding2;
371 
372 
377 {
379  Uint32 timestamp;
382 
383 
387 typedef struct SDL_TouchFingerEvent
388 {
390  Uint32 timestamp;
391  SDL_TouchID touchId;
392  SDL_FingerID fingerId;
393  float x;
394  float y;
395  float dx;
396  float dy;
397  float pressure;
399 
400 
404 typedef struct SDL_MultiGestureEvent
405 {
407  Uint32 timestamp;
408  SDL_TouchID touchId;
409  float dTheta;
410  float dDist;
411  float x;
412  float y;
413  Uint16 numFingers;
414  Uint16 padding;
416 
417 
422 {
424  Uint32 timestamp;
425  SDL_TouchID touchId;
426  SDL_GestureID gestureId;
427  Uint32 numFingers;
428  float error;
429  float x;
430  float y;
432 
433 
439 typedef struct SDL_DropEvent
440 {
442  Uint32 timestamp;
443  char *file;
444 } SDL_DropEvent;
445 
446 
450 typedef struct SDL_QuitEvent
451 {
453  Uint32 timestamp;
454 } SDL_QuitEvent;
455 
459 typedef struct SDL_OSEvent
460 {
462  Uint32 timestamp;
463 } SDL_OSEvent;
464 
468 typedef struct SDL_UserEvent
469 {
471  Uint32 timestamp;
474  void *data1;
475  void *data2;
476 } SDL_UserEvent;
477 
478 
479 struct SDL_SysWMmsg;
480 typedef struct SDL_SysWMmsg SDL_SysWMmsg;
481 
488 typedef struct SDL_SysWMEvent
489 {
491  Uint32 timestamp;
494 
498 typedef union SDL_Event
499 {
525  /* This is necessary for ABI compatibility between Visual C++ and GCC
526  Visual C++ will respect the push pack pragma and use 52 bytes for
527  this structure, and GCC will use the alignment of the largest datatype
528  within the union, which is 8 bytes.
529 
530  So... we'll add padding to force the size to be 56 bytes for both.
531  */
532  Uint8 padding[56];
533 } SDL_Event;
534 
535 
536 /* Function prototypes */
537 
545 extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
546 
547 /* @{ */
548 typedef enum
549 {
550  SDL_ADDEVENT,
551  SDL_PEEKEVENT,
552  SDL_GETEVENT
553 } SDL_eventaction;
554 
573 extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
574  SDL_eventaction action,
575  Uint32 minType, Uint32 maxType);
576 /* @} */
577 
581 extern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type);
582 extern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);
583 
587 extern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);
588 extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
589 
598 extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
599 
608 extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
609 
620 extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
621  int timeout);
622 
629 extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
630 
631 typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
632 
658 extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,
659  void *userdata);
660 
665 extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
666  void **userdata);
667 
671 extern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,
672  void *userdata);
673 
677 extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
678  void *userdata);
679 
684 extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
685  void *userdata);
686 
687 /* @{ */
688 #define SDL_QUERY -1
689 #define SDL_IGNORE 0
690 #define SDL_DISABLE 0
691 #define SDL_ENABLE 1
692 
702 extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);
703 /* @} */
704 #define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)
705 
713 extern DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents);
714 
715 /* Ends C function definitions when using C++ */
716 #ifdef __cplusplus
717 }
718 #endif
719 #include "close_code.h"
720 
721 #endif /* _SDL_events_h */
722 
723 /* 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:139
Uint8 state
Definition: SDL_events.h:244
Uint32 type
Definition: SDL_events.h:452
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:288
Uint8 axis
Definition: SDL_events.h:272
SDL_WindowEvent window
Definition: SDL_events.h:502
Game controller button event structure (event.cbutton.*)
Definition: SDL_events.h:361
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:283
SDL_KeyboardEvent key
Definition: SDL_events.h:503
Mouse motion event structure (event.motion.*)
Definition: SDL_events.h:221
Uint32 state
Definition: SDL_events.h:227
SDL_JoyAxisEvent jaxis
Definition: SDL_events.h:509
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:155
Joystick button event structure (event.jbutton.*)
Definition: SDL_events.h:319
struct SDL_JoyBallEvent SDL_JoyBallEvent
Joystick trackball motion event structure (event.jball.*)
Sint32 y
Definition: SDL_events.h:229
Uint32 type
Definition: SDL_events.h:335
Definition: SDL_events.h:99
struct SDL_JoyDeviceEvent SDL_JoyDeviceEvent
Joystick device event structure (event.jdevice.*)
Uint32 type
Definition: SDL_events.h:301
Uint32 windowID
Definition: SDL_events.h:183
Sint16 xrel
Definition: SDL_events.h:292
Definition: SDL_events.h:105
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:147
struct SDL_TextEditingEvent SDL_TextEditingEvent
Keyboard text editing event structure (event.edit.*)
SDL_CommonEvent common
Definition: SDL_events.h:501
Sint32 x
Definition: SDL_events.h:228
Sint32 y
Definition: SDL_events.h:248
Sint32 length
Definition: SDL_events.h:202
Definition: SDL_events.h:63
Uint32 type
Definition: SDL_events.h:197
Joystick hat position change event structure (event.jhat.*)
Definition: SDL_events.h:299
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
Definition: SDL_events.h:138
Uint32 type
Definition: SDL_events.h:461
Uint8 value
Definition: SDL_events.h:305
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:200
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:470
Definition: SDL_events.h:114
Uint32 type
Definition: SDL_events.h:165
Dollar Gesture Event (event.dgesture.*)
Definition: SDL_events.h:421
DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter, void **userdata)
Definition: SDL_events.h:100
SDL_Keysym keysym
Definition: SDL_events.h:188
Sint16 yrel
Definition: SDL_events.h:293
Definition: SDL_events.h:117
void * data2
Definition: SDL_events.h:475
Definition: SDL_events.h:71
Uint8 clicks
Definition: SDL_events.h:245
Uint8 button
Definition: SDL_events.h:324
Uint32 type
Definition: SDL_events.h:181
DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type)
Touch finger event structure (event.tfinger.*)
Definition: SDL_events.h:387
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:506
SDL_QuitEvent quit
Definition: SDL_events.h:517
Uint8 state
Definition: SDL_events.h:367
Definition: SDL_events.h:102
Definition: SDL_events.h:89
SDL_TouchID touchId
Definition: SDL_events.h:408
Uint32 type
Definition: SDL_events.h:441
Definition: SDL_events.h:148
float x
Definition: SDL_events.h:429
Sint32 yrel
Definition: SDL_events.h:231
General event structure.
Definition: SDL_events.h:498
SDL_TouchID touchId
Definition: SDL_events.h:425
The "quit requested" event.
Definition: SDL_events.h:450
Definition: SDL_events.h:57
Uint8 button
Definition: SDL_events.h:366
Definition: SDL_events.h:108
Definition: SDL_events.h:60
Joystick device event structure (event.jdevice.*)
Definition: SDL_events.h:333
Definition: SDL_events.h:143
Uint32 windowID
Definition: SDL_events.h:258
struct SDL_ControllerDeviceEvent SDL_ControllerDeviceEvent
Controller device event structure (event.cdevice.*)
Uint8 hat
Definition: SDL_events.h:304
float x
Definition: SDL_events.h:393
struct SDL_MouseButtonEvent SDL_MouseButtonEvent
Mouse button event structure (event.button.*)
Joystick axis motion event structure (event.jaxis.*)
Definition: SDL_events.h:267
SDL_MouseWheelEvent wheel
Definition: SDL_events.h:508
Uint32 type
Definition: SDL_events.h:256
SDL_MouseButtonEvent button
Definition: SDL_events.h:507
SDL_TouchFingerEvent tfinger
Definition: SDL_events.h:520
Uint32 type
Definition: SDL_events.h:212
struct SDL_ControllerButtonEvent SDL_ControllerButtonEvent
Game controller button event structure (event.cbutton.*)
DECLSPEC void SDLCALL SDL_PumpEvents(void)
Uint8 event
Definition: SDL_events.h:168
Sint32 data2
Definition: SDL_events.h:173
float dx
Definition: SDL_events.h:395
Definition: SDL_events.h:67
SDL_JoystickID which
Definition: SDL_events.h:271
Uint32 type
Definition: SDL_events.h:269
float pressure
Definition: SDL_events.h:397
Sint32 start
Definition: SDL_events.h:201
Uint32 type
Definition: SDL_events.h:346
Uint32 windowID
Definition: SDL_events.h:214
DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents)
Definition: SDL_events.h:83
A user-defined event type (event.user.*)
Definition: SDL_events.h:468
Uint32 windowID
Definition: SDL_events.h:199
DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event)
Polls for currently pending events.
Multiple Finger Gesture Event (event.mgesture.*)
Definition: SDL_events.h:404
struct SDL_UserEvent SDL_UserEvent
A user-defined event type (event.user.*)
SDL_JoystickID which
Definition: SDL_events.h:365
SDL_DollarGestureEvent dgesture
Definition: SDL_events.h:522
DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type)
Uint32 type
Definition: SDL_events.h:363
SDL_TextInputEvent text
Definition: SDL_events.h:505
Uint32 type
Definition: SDL_events.h:500
SDL_JoystickID which
Definition: SDL_events.h:303
DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.h:119
SDL_ControllerButtonEvent cbutton
Definition: SDL_events.h:515
char * file
Definition: SDL_events.h:443
Uint32 type
Definition: SDL_events.h:378
int32_t Sint32
A signed 32-bit integer type.
Definition: SDL_stdinc.h:151
SDL_JoystickID which
Definition: SDL_events.h:323
struct SDL_TouchFingerEvent SDL_TouchFingerEvent
Touch finger event structure (event.tfinger.*)
Fields shared by every event.
Definition: SDL_events.h:154
struct SDL_QuitEvent SDL_QuitEvent
The "quit requested" event.
Uint32 type
Definition: SDL_events.h:239
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]
Definition: SDL_events.h:215
Keyboard button event structure (event.key.*)
Definition: SDL_events.h:179
Game controller axis motion event structure (event.caxis.*)
Definition: SDL_events.h:344
struct SDL_WindowEvent SDL_WindowEvent
Window state change event data (event.window.*)
SDL_ControllerDeviceEvent cdevice
Definition: SDL_events.h:516
Sint32 x
Definition: SDL_events.h:260
struct SDL_MouseWheelEvent SDL_MouseWheelEvent
Mouse wheel event structure (event.wheel.*)
Definition: SDL_events.h:111
Uint8 axis
Definition: SDL_events.h:349
float y
Definition: SDL_events.h:430
Keyboard text input event structure (event.text.*)
Definition: SDL_events.h:210
SDL_TextEditingEvent edit
Definition: SDL_events.h:504
SDL_JoyButtonEvent jbutton
Definition: SDL_events.h:512
DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
Uint32 which
Definition: SDL_events.h:242
Uint8 repeat
Definition: SDL_events.h:185
float dy
Definition: SDL_events.h:396
Sint32 x
Definition: SDL_events.h:247
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:514
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
Definition: SDL_events.h:439
Sint32 y
Definition: SDL_events.h:261
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:254
Uint32 which
Definition: SDL_events.h:259
Uint32 windowID
Definition: SDL_events.h:167
Controller device event structure (event.cdevice.*)
Definition: SDL_events.h:376
Uint32 type
Definition: SDL_events.h:490
Definition: SDL_syswm.h:125
Uint32 type
Definition: SDL_events.h:423
Definition: SDL_events.h:101
Uint32 type
Definition: SDL_events.h:223
Uint32 which
Definition: SDL_events.h:226
OS Specific event.
Definition: SDL_events.h:459
SDL_JoystickID which
Definition: SDL_events.h:287
Definition: SDL_events.h:95
SDL_JoyHatEvent jhat
Definition: SDL_events.h:511
Keyboard text editing event structure (event.edit.*)
Definition: SDL_events.h:195
SDL_SysWMmsg * msg
Definition: SDL_events.h:492
SDL_UserEvent user
Definition: SDL_events.h:518
Definition: SDL_events.h:110
SDL_SysWMEvent syswm
Definition: SDL_events.h:519
Uint8 state
Definition: SDL_events.h:325
Sint32 which
Definition: SDL_events.h:380
Uint32 type
Definition: SDL_events.h:389
SDL_TouchID touchId
Definition: SDL_events.h:391
Uint32 windowID
Definition: SDL_events.h:241
SDL_JoyDeviceEvent jdevice
Definition: SDL_events.h:513
Sint16 value
Definition: SDL_events.h:353
Uint32 type
Definition: SDL_events.h:406
Mouse button event structure (event.button.*)
Definition: SDL_events.h:237
SDL_JoyBallEvent jball
Definition: SDL_events.h:510
Definition: SDL_events.h:75
Definition: SDL_events.h:132
Definition: SDL_events.h:135
Uint8 state
Definition: SDL_events.h:184
int16_t Sint16
A signed 16-bit integer type.
Definition: SDL_stdinc.h:143
SDL_DropEvent drop
Definition: SDL_events.h:523
Sint32 which
Definition: SDL_events.h:337
Window state change event data (event.window.*)
Definition: SDL_events.h:163
Uint32 windowID
Definition: SDL_events.h:225
float y
Definition: SDL_events.h:394
Definition: SDL_events.h:90
Sint32 xrel
Definition: SDL_events.h:230
DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event)
Add an event to the event queue.
SDL_JoystickID which
Definition: SDL_events.h:348
Uint8 button
Definition: SDL_events.h:243
Sint32 data1
Definition: SDL_events.h:172
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:321
SDL_MultiGestureEvent mgesture
Definition: SDL_events.h:521
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:488
Definition: SDL_events.h:115
Uint32 type
Definition: SDL_events.h:285
void * data1
Definition: SDL_events.h:474
Sint16 value
Definition: SDL_events.h:276
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:473
DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter, void *userdata)
Definition: SDL_events.h:118
Uint32 windowID
Definition: SDL_events.h:472