include/SDL_events.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 15 Dec 2009 18:00:16 +0000
changeset 3567 fb9ea4b549c3
parent 3407 d3baf5ac4e37
child 3572 6bb9952d5029
permissions -rw-r--r--
Added a warning comment to SDL_putenv().

"Fixes" Bugzilla #779.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /**
    24  *  \file SDL_events.h
    25  *  
    26  *  Include file for SDL event handling.
    27  */
    28 
    29 #ifndef _SDL_events_h
    30 #define _SDL_events_h
    31 
    32 #include "SDL_stdinc.h"
    33 #include "SDL_error.h"
    34 #include "SDL_video.h"
    35 #include "SDL_keyboard.h"
    36 #include "SDL_mouse.h"
    37 #include "SDL_joystick.h"
    38 #include "SDL_quit.h"
    39 
    40 #include "begin_code.h"
    41 /* Set up for C function definitions, even when using C++ */
    42 #ifdef __cplusplus
    43 /* *INDENT-OFF* */
    44 extern "C" {
    45 /* *INDENT-ON* */
    46 #endif
    47 
    48 /* General keyboard/mouse state definitions */
    49 #define SDL_RELEASED	0
    50 #define SDL_PRESSED	1
    51 
    52 /**
    53  * \brief The types of events that can be delivered.
    54  */
    55 typedef enum
    56 {
    57     SDL_NOEVENT = 0,            /**< Unused (do not remove) */
    58     SDL_WINDOWEVENT,            /**< Window state change */
    59     SDL_KEYDOWN,                /**< Keys pressed */
    60     SDL_KEYUP,                  /**< Keys released */
    61     SDL_TEXTEDITING,            /**< Keyboard text editing (composition) */
    62     SDL_TEXTINPUT,              /**< Keyboard text input */
    63     SDL_MOUSEMOTION,            /**< Mouse moved */
    64     SDL_MOUSEBUTTONDOWN,        /**< Mouse button pressed */
    65     SDL_MOUSEBUTTONUP,          /**< Mouse button released */
    66     SDL_MOUSEWHEEL,             /**< Mouse wheel motion */
    67     SDL_JOYAXISMOTION,          /**< Joystick axis motion */
    68     SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
    69     SDL_JOYHATMOTION,           /**< Joystick hat position change */
    70     SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
    71     SDL_JOYBUTTONUP,            /**< Joystick button released */
    72     SDL_QUIT,                   /**< User-requested quit */
    73     SDL_SYSWMEVENT,             /**< System specific event */
    74     SDL_PROXIMITYIN,            /**< Proximity In event */
    75     SDL_PROXIMITYOUT,           /**< Proximity Out event */
    76     SDL_EVENT_RESERVED1,        /**< Reserved for future use... */
    77     SDL_EVENT_RESERVED2,        /**< Reserved for future use... */
    78     SDL_EVENT_RESERVED3,        /**< Reserved for future use... */
    79     /** Events ::SDL_USEREVENT through ::SDL_MAXEVENTS-1 are for your use */
    80     SDL_USEREVENT = 24,
    81     /**
    82      *  This last event is only for bounding internal arrays
    83      *  It is the number of bits in the event mask datatype -- Uint32
    84      */
    85     SDL_NUMEVENTS = 32
    86 } SDL_EventType;
    87 
    88 /*@{*/
    89 #define SDL_EVENTMASK(X)	(1<<(X))
    90 /**
    91  * \brief Predefined event masks
    92  */
    93 typedef enum
    94 {
    95     SDL_WINDOWEVENTMASK = SDL_EVENTMASK(SDL_WINDOWEVENT),
    96     SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN),
    97     SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP),
    98     SDL_KEYEVENTMASK = SDL_EVENTMASK(SDL_KEYDOWN) | SDL_EVENTMASK(SDL_KEYUP),
    99     SDL_TEXTEDITINGMASK = SDL_EVENTMASK(SDL_TEXTEDITING),
   100     SDL_TEXTINPUTMASK = SDL_EVENTMASK(SDL_TEXTINPUT),
   101     SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION),
   102     SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),
   103     SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
   104     SDL_MOUSEWHEELMASK = SDL_EVENTMASK(SDL_MOUSEWHEEL),
   105     SDL_MOUSEEVENTMASK = SDL_EVENTMASK(SDL_MOUSEMOTION) |
   106         SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN) | SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
   107     SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION),
   108     SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK(SDL_JOYBALLMOTION),
   109     SDL_JOYHATMOTIONMASK = SDL_EVENTMASK(SDL_JOYHATMOTION),
   110     SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK(SDL_JOYBUTTONDOWN),
   111     SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP),
   112     SDL_JOYEVENTMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION) |
   113         SDL_EVENTMASK(SDL_JOYBALLMOTION) |
   114         SDL_EVENTMASK(SDL_JOYHATMOTION) |
   115         SDL_EVENTMASK(SDL_JOYBUTTONDOWN) | SDL_EVENTMASK(SDL_JOYBUTTONUP),
   116     SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT),
   117     SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT),
   118     SDL_PROXIMITYINMASK = SDL_EVENTMASK(SDL_PROXIMITYIN),
   119     SDL_PROXIMITYOUTMASK = SDL_EVENTMASK(SDL_PROXIMITYOUT)
   120 } SDL_EventMask;
   121 #define SDL_ALLEVENTS		0xFFFFFFFF
   122 /*@}*/
   123 
   124 /**
   125  *  \brief Window state change event data (event.window.*)
   126  */
   127 typedef struct SDL_WindowEvent
   128 {
   129     Uint8 type;             /**< ::SDL_WINDOWEVENT */
   130     SDL_WindowID windowID;  /**< The associated window */
   131     Uint8 event;            /**< ::SDL_WindowEventID */
   132     int data1;              /**< event dependent data */
   133     int data2;              /**< event dependent data */
   134 } SDL_WindowEvent;
   135 
   136 /**
   137  *  \brief Keyboard button event structure (event.key.*)
   138  */
   139 typedef struct SDL_KeyboardEvent
   140 {
   141     Uint8 type;             /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
   142     SDL_WindowID windowID;  /**< The window with keyboard focus, if any */
   143     Uint8 which;            /**< The keyboard device index */
   144     Uint8 state;            /**< ::SDL_PRESSED or ::SDL_RELEASED */
   145     SDL_keysym keysym;      /**< The key that was pressed or released */
   146 } SDL_KeyboardEvent;
   147 
   148 #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
   149 /**
   150  *  \brief Keyboard text editing event structure (event.edit.*)
   151  */
   152 typedef struct SDL_TextEditingEvent
   153 {
   154     Uint8 type;                                 /**< ::SDL_TEXTEDITING */
   155     char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];  /**< The editing text */
   156     int start;                                  /**< The start cursor of selected editing text */
   157     int length;                                 /**< The length of selected editing text */
   158 } SDL_TextEditingEvent;
   159 
   160 
   161 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
   162 /**
   163  *  \brief Keyboard text input event structure (event.text.*)
   164  */
   165 typedef struct SDL_TextInputEvent
   166 {
   167     Uint8 type;                               /**< ::SDL_TEXTINPUT */
   168     SDL_WindowID windowID;                    /**< The window with keyboard focus, if any */
   169     Uint8 which;                              /**< The keyboard device index */
   170     char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];  /**< The input text */
   171 } SDL_TextInputEvent;
   172 
   173 /**
   174  *  \brief Mouse motion event structure (event.motion.*)
   175  */
   176 typedef struct SDL_MouseMotionEvent
   177 {
   178     Uint8 type;             /**< ::SDL_MOUSEMOTION */
   179     SDL_WindowID windowID;  /**< The window with mouse focus, if any */
   180     Uint8 which;            /**< The mouse device index */
   181     Uint8 state;            /**< The current button state */
   182     int x;                  /**< X coordinate, relative to window */
   183     int y;                  /**< Y coordinate, relative to window */
   184     int z;                  /**< Z coordinate, for future use */
   185     int pressure;           /**< Pressure reported by tablets */
   186     int pressure_max;       /**< Maximum value of the pressure reported by the device */
   187     int pressure_min;       /**< Minimum value of the pressure reported by the device */
   188     int rotation;           /**< For future use */
   189     int tilt;               /**< For future use */
   190     int cursor;             /**< The cursor being used in the event */
   191     int xrel;               /**< The relative motion in the X direction */
   192     int yrel;               /**< The relative motion in the Y direction */
   193 } SDL_MouseMotionEvent;
   194 
   195 /**
   196  *  \brief Mouse button event structure (event.button.*)
   197  */
   198 typedef struct SDL_MouseButtonEvent
   199 {
   200     Uint8 type;             /**< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP */
   201     SDL_WindowID windowID;  /**< The window with mouse focus, if any */
   202     Uint8 which;            /**< The mouse device index */
   203     Uint8 button;           /**< The mouse button index */
   204     Uint8 state;            /**< ::SDL_PRESSED or ::SDL_RELEASED */
   205     int x;                  /**< X coordinate, relative to window */
   206     int y;                  /**< Y coordinate, relative to window */
   207 } SDL_MouseButtonEvent;
   208 
   209 /**
   210  *  \brief Mouse wheel event structure (event.wheel.*)
   211  */
   212 typedef struct SDL_MouseWheelEvent
   213 {
   214     Uint8 type;             /**< ::SDL_MOUSEWHEEL */
   215     SDL_WindowID windowID;  /**< The window with mouse focus, if any */
   216     Uint8 which;            /**< The mouse device index */
   217     int x;                  /**< The amount scrolled horizontally */
   218     int y;                  /**< The amount scrolled vertically */
   219 } SDL_MouseWheelEvent;
   220 
   221 /**
   222  *  \brief Joystick axis motion event structure (event.jaxis.*)
   223  */
   224 typedef struct SDL_JoyAxisEvent
   225 {
   226     Uint8 type;         /**< ::SDL_JOYAXISMOTION */
   227     Uint8 which;        /**< The joystick device index */
   228     Uint8 axis;         /**< The joystick axis index */
   229     int value;          /**< The axis value (range: -32768 to 32767) */
   230 } SDL_JoyAxisEvent;
   231 
   232 /**
   233  *  \brief Joystick trackball motion event structure (event.jball.*)
   234  */
   235 typedef struct SDL_JoyBallEvent
   236 {
   237     Uint8 type;         /**< ::SDL_JOYBALLMOTION */
   238     Uint8 which;        /**< The joystick device index */
   239     Uint8 ball;         /**< The joystick trackball index */
   240     int xrel;           /**< The relative motion in the X direction */
   241     int yrel;           /**< The relative motion in the Y direction */
   242 } SDL_JoyBallEvent;
   243 
   244 /**
   245  *  \brief Joystick hat position change event structure (event.jhat.*)
   246  */
   247 typedef struct SDL_JoyHatEvent
   248 {
   249     Uint8 type;         /**< ::SDL_JOYHATMOTION */
   250     Uint8 which;        /**< The joystick device index */
   251     Uint8 hat;          /**< The joystick hat index */
   252     Uint8 value;        /**< The hat position value.
   253                          *   \sa ::SDL_HAT_LEFTUP ::SDL_HAT_UP ::SDL_HAT_RIGHTUP
   254                          *   \sa ::SDL_HAT_LEFT ::SDL_HAT_CENTERED ::SDL_HAT_RIGHT
   255                          *   \sa ::SDL_HAT_LEFTDOWN ::SDL_HAT_DOWN ::SDL_HAT_RIGHTDOWN
   256                          *   
   257                          *   Note that zero means the POV is centered.
   258                          */
   259 } SDL_JoyHatEvent;
   260 
   261 /**
   262  *  \brief Joystick button event structure (event.jbutton.*)
   263  */
   264 typedef struct SDL_JoyButtonEvent
   265 {
   266     Uint8 type;         /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */
   267     Uint8 which;        /**< The joystick device index */
   268     Uint8 button;       /**< The joystick button index */
   269     Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
   270 } SDL_JoyButtonEvent;
   271 
   272 /**
   273  *  \brief The "quit requested" event
   274  */
   275 typedef struct SDL_QuitEvent
   276 {
   277     Uint8 type;         /**< ::SDL_QUIT */
   278 } SDL_QuitEvent;
   279 
   280 /**
   281  *  \brief A user-defined event type (event.user.*)
   282  */
   283 typedef struct SDL_UserEvent
   284 {
   285     Uint8 type;             /**< ::SDL_USEREVENT through ::SDL_NUMEVENTS-1 */
   286     SDL_WindowID windowID;  /**< The associated window if any*/
   287     int code;               /**< User defined event code */
   288     void *data1;            /**< User defined data pointer */
   289     void *data2;            /**< User defined data pointer */
   290 } SDL_UserEvent;
   291 
   292 struct SDL_SysWMmsg;
   293 typedef struct SDL_SysWMmsg SDL_SysWMmsg;
   294 
   295 /**
   296  *  \brief A video driver dependent system event (event.syswm.*)
   297  *  
   298  *  \note If you want to use this event, you should include SDL_syswm.h.
   299  */
   300 typedef struct SDL_SysWMEvent
   301 {
   302     Uint8 type;         /**< ::SDL_SYSWMEVENT */
   303     SDL_SysWMmsg *msg;  /**< driver dependent data, defined in SDL_syswm.h */
   304 } SDL_SysWMEvent;
   305 
   306 typedef struct SDL_ProximityEvent
   307 {
   308     Uint8 type;
   309     SDL_WindowID windowID;  /**< The associated window */
   310     Uint8 which;
   311     int cursor;
   312     int x;
   313     int y;
   314 } SDL_ProximityEvent;
   315 
   316 #ifndef SDL_NO_COMPAT
   317 /**
   318  *  \addtogroup Compatibility 
   319  */
   320 /*@{*/
   321 
   322 /**
   323  *  \name Typedefs for backwards compatibility
   324  */
   325 /*@{*/
   326 typedef struct SDL_ActiveEvent
   327 {
   328     Uint8 type;
   329     Uint8 gain;
   330     Uint8 state;
   331 } SDL_ActiveEvent;
   332 
   333 typedef struct SDL_ResizeEvent
   334 {
   335     Uint8 type;
   336     int w;
   337     int h;
   338 } SDL_ResizeEvent;
   339 /*@}*/
   340 
   341 /*@}*//*Compatibility*/
   342 #endif
   343 
   344 /**
   345  *  \brief General event structure
   346  */
   347 typedef union SDL_Event
   348 {
   349     Uint8 type;                     /**< Event type, shared with all events */
   350     SDL_WindowEvent window;         /**< Window event data */
   351     SDL_KeyboardEvent key;          /**< Keyboard event data */
   352     SDL_TextEditingEvent edit;      /**< Text editing event data */
   353     SDL_TextInputEvent text;        /**< Text input event data */
   354     SDL_MouseMotionEvent motion;    /**< Mouse motion event data */
   355     SDL_MouseButtonEvent button;    /**< Mouse button event data */
   356     SDL_MouseWheelEvent wheel;      /**< Mouse wheel event data */
   357     SDL_JoyAxisEvent jaxis;         /**< Joystick axis event data */
   358     SDL_JoyBallEvent jball;         /**< Joystick ball event data */
   359     SDL_JoyHatEvent jhat;           /**< Joystick hat event data */
   360     SDL_JoyButtonEvent jbutton;     /**< Joystick button event data */
   361     SDL_QuitEvent quit;             /**< Quit request event data */
   362     SDL_UserEvent user;             /**< Custom event data */
   363     SDL_SysWMEvent syswm;           /**< System dependent window event data */
   364     SDL_ProximityEvent proximity;   /**< Proximity In or Out event */
   365 
   366     /** Temporarily here for backwards compatibility */
   367     /*@{*/
   368 #ifndef SDL_NO_COMPAT
   369     SDL_ActiveEvent active;
   370     SDL_ResizeEvent resize;
   371 #endif
   372     /*@}*/
   373 } SDL_Event;
   374 
   375 
   376 /* Function prototypes */
   377 
   378 /**
   379  *  Pumps the event loop, gathering events from the input devices.
   380  *  
   381  *  This function updates the event queue and internal input device state.
   382  *  
   383  *  This should only be run in the thread that sets the video mode.
   384  */
   385 extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
   386 
   387 /*@{*/
   388 typedef enum
   389 {
   390     SDL_ADDEVENT,
   391     SDL_PEEKEVENT,
   392     SDL_GETEVENT
   393 } SDL_eventaction;
   394 
   395 /**
   396  *  Checks the event queue for messages and optionally returns them.
   397  *  
   398  *  If \c action is ::SDL_ADDEVENT, up to \c numevents events will be added to
   399  *  the back of the event queue.
   400  *  
   401  *  If \c action is ::SDL_PEEKEVENT, up to \c numevents events at the front
   402  *  of the event queue, matching \c mask, will be returned and will not
   403  *  be removed from the queue.
   404  *  
   405  *  If \c action is ::SDL_GETEVENT, up to \c numevents events at the front 
   406  *  of the event queue, matching \c mask, will be returned and will be
   407  *  removed from the queue.
   408  *  
   409  *  \return The number of events actually stored, or -1 if there was an error.
   410  *  
   411  *  This function is thread-safe.
   412  */
   413 extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
   414                                            SDL_eventaction action,
   415                                            Uint32 mask);
   416 /*@}*/
   417 
   418 /**
   419  *  Checks to see if certain event types are in the event queue.
   420  */
   421 extern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 mask);
   422 
   423 /**
   424  *  \brief Polls for currently pending events.
   425  *  
   426  *  \return 1 if there are any pending events, or 0 if there are none available.
   427  *  
   428  *  \param event If not NULL, the next event is removed from the queue and 
   429  *               stored in that area.
   430  */
   431 extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
   432 
   433 /**
   434  *  \brief Waits indefinitely for the next available event.
   435  *  
   436  *  \return 1, or 0 if there was an error while waiting for events.
   437  *   
   438  *  \param event If not NULL, the next event is removed from the queue and 
   439  *               stored in that area.
   440  */
   441 extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
   442 
   443 /**
   444  *  \brief Waits until the specified timeout (in milliseconds) for the next 
   445  *         available event.
   446  *  
   447  *  \return 1, or 0 if there was an error while waiting for events.
   448  *  
   449  *  \param event If not NULL, the next event is removed from the queue and 
   450  *               stored in that area.
   451  */
   452 extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
   453                                                  int timeout);
   454 
   455 /**
   456  *  \brief Add an event to the event queue.
   457  *  
   458  *  \return 1 on success, 0 if the event was filtered, or -1 if the event queue 
   459  *          was full or there was some other error.
   460  */
   461 extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
   462 
   463 typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
   464 
   465 /**
   466  *  Sets up a filter to process all events before they change internal state and
   467  *  are posted to the internal event queue.
   468  *  
   469  *  The filter is protypted as:
   470  *  \code
   471  *      int SDL_EventFilter(void *userdata, SDL_Event * event);
   472  *  \endcode
   473  *
   474  *  If the filter returns 1, then the event will be added to the internal queue.
   475  *  If it returns 0, then the event will be dropped from the queue, but the 
   476  *  internal state will still be updated.  This allows selective filtering of
   477  *  dynamically arriving events.
   478  *  
   479  *  \warning  Be very careful of what you do in the event filter function, as 
   480  *            it may run in a different thread!
   481  *  
   482  *  There is one caveat when dealing with the ::SDL_QUITEVENT event type.  The
   483  *  event filter is only called when the window manager desires to close the
   484  *  application window.  If the event filter returns 1, then the window will
   485  *  be closed, otherwise the window will remain open if possible.
   486  *
   487  *  If the quit event is generated by an interrupt signal, it will bypass the
   488  *  internal queue and be delivered to the application at the next event poll.
   489  */
   490 extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,
   491                                                 void *userdata);
   492 
   493 /**
   494  *  Return the current event filter - can be used to "chain" filters.
   495  *  If there is no event filter set, this function returns SDL_FALSE.
   496  */
   497 extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
   498                                                     void **userdata);
   499 
   500 /**
   501  *  Run the filter function on the current event queue, removing any
   502  *  events for which the filter returns 0.
   503  */
   504 extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
   505                                               void *userdata);
   506 
   507 /*@{*/
   508 #define SDL_QUERY	-1
   509 #define SDL_IGNORE	 0
   510 #define SDL_DISABLE	 0
   511 #define SDL_ENABLE	 1
   512 
   513 /**
   514  *  This function allows you to set the state of processing certain events.
   515  *   - If \c state is set to ::SDL_IGNORE, that event will be automatically 
   516  *     dropped from the event queue and will not event be filtered.
   517  *   - If \c state is set to ::SDL_ENABLE, that event will be processed 
   518  *     normally.
   519  *   - If \c state is set to ::SDL_QUERY, SDL_EventState() will return the 
   520  *     current processing state of the specified event.
   521  */
   522 extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state);
   523 /*@}*/
   524 
   525 /* Ends C function definitions when using C++ */
   526 #ifdef __cplusplus
   527 /* *INDENT-OFF* */
   528 }
   529 /* *INDENT-ON* */
   530 #endif
   531 #include "close_code.h"
   532 
   533 #endif /* _SDL_events_h */
   534 
   535 /* vi: set ts=4 sw=4 expandtab: */