misc/winutils/include/SDL_events.h
author unc0rr
Tue, 13 Mar 2018 23:19:24 +0100
changeset 13188 16b375b21af1
parent 10017 de822cd3df3a
permissions -rw-r--r--
Merge qt5transition into default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     1
/*
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
     3
    Copyright (C) 1997-2012 Sam Lantinga
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     4
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     9
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    13
    Lesser General Public License for more details.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    14
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    18
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    19
    Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    20
    slouken@libsdl.org
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    21
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    22
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    23
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    24
 *  @file SDL_events.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    25
 *  Include file for SDL event handling
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    26
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    27
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    28
#ifndef _SDL_events_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    29
#define _SDL_events_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    30
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    31
#include "SDL_stdinc.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    32
#include "SDL_error.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    33
#include "SDL_active.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    34
#include "SDL_keyboard.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    35
#include "SDL_mouse.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    36
#include "SDL_joystick.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    37
#include "SDL_quit.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    38
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    39
#include "begin_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    40
/* Set up for C function definitions, even when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    41
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    42
extern "C" {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    43
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    44
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    45
/** @name General keyboard/mouse state definitions */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    46
/*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    47
#define SDL_RELEASED    0
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    48
#define SDL_PRESSED 1
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    49
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    50
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    51
/** Event enumerations */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    52
typedef enum {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    53
       SDL_NOEVENT = 0,         /**< Unused (do not remove) */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    54
       SDL_ACTIVEEVENT,         /**< Application loses/gains visibility */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    55
       SDL_KEYDOWN,         /**< Keys pressed */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    56
       SDL_KEYUP,           /**< Keys released */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    57
       SDL_MOUSEMOTION,         /**< Mouse moved */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    58
       SDL_MOUSEBUTTONDOWN,     /**< Mouse button pressed */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    59
       SDL_MOUSEBUTTONUP,       /**< Mouse button released */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    60
       SDL_JOYAXISMOTION,       /**< Joystick axis motion */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    61
       SDL_JOYBALLMOTION,       /**< Joystick trackball motion */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    62
       SDL_JOYHATMOTION,        /**< Joystick hat position change */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    63
       SDL_JOYBUTTONDOWN,       /**< Joystick button pressed */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    64
       SDL_JOYBUTTONUP,         /**< Joystick button released */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    65
       SDL_QUIT,            /**< User-requested quit */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    66
       SDL_SYSWMEVENT,          /**< System specific event */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    67
       SDL_EVENT_RESERVEDA,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    68
       SDL_EVENT_RESERVEDB,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    69
       SDL_VIDEORESIZE,         /**< User resized video mode */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    70
       SDL_VIDEOEXPOSE,         /**< Screen needs to be redrawn */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    71
       SDL_EVENT_RESERVED2,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    72
       SDL_EVENT_RESERVED3,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    73
       SDL_EVENT_RESERVED4,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    74
       SDL_EVENT_RESERVED5,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    75
       SDL_EVENT_RESERVED6,     /**< Reserved for future use.. */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    76
       SDL_EVENT_RESERVED7,     /**< Reserved for future use.. */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    77
       /** Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    78
       SDL_USEREVENT = 24,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    79
       /** This last event is only for bounding internal arrays
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    80
    *  It is the number of bits in the event mask datatype -- Uint32
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    81
        */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    82
       SDL_NUMEVENTS = 32
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    83
} SDL_EventType;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    84
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    85
/** @name Predefined event masks */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    86
/*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    87
#define SDL_EVENTMASK(X)    (1<<(X))
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    88
typedef enum {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    89
    SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    90
    SDL_KEYDOWNMASK     = SDL_EVENTMASK(SDL_KEYDOWN),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    91
    SDL_KEYUPMASK       = SDL_EVENTMASK(SDL_KEYUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    92
    SDL_KEYEVENTMASK    = SDL_EVENTMASK(SDL_KEYDOWN)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    93
                              SDL_EVENTMASK(SDL_KEYUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    94
    SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    95
    SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    96
    SDL_MOUSEBUTTONUPMASK   = SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    97
    SDL_MOUSEEVENTMASK  = SDL_EVENTMASK(SDL_MOUSEMOTION)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    98
                              SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    99
                              SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   100
    SDL_JOYAXISMOTIONMASK   = SDL_EVENTMASK(SDL_JOYAXISMOTION),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   101
    SDL_JOYBALLMOTIONMASK   = SDL_EVENTMASK(SDL_JOYBALLMOTION),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   102
    SDL_JOYHATMOTIONMASK    = SDL_EVENTMASK(SDL_JOYHATMOTION),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   103
    SDL_JOYBUTTONDOWNMASK   = SDL_EVENTMASK(SDL_JOYBUTTONDOWN),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   104
    SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   105
    SDL_JOYEVENTMASK    = SDL_EVENTMASK(SDL_JOYAXISMOTION)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   106
                              SDL_EVENTMASK(SDL_JOYBALLMOTION)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   107
                              SDL_EVENTMASK(SDL_JOYHATMOTION)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   108
                              SDL_EVENTMASK(SDL_JOYBUTTONDOWN)|
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   109
                              SDL_EVENTMASK(SDL_JOYBUTTONUP),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   110
    SDL_VIDEORESIZEMASK = SDL_EVENTMASK(SDL_VIDEORESIZE),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   111
    SDL_VIDEOEXPOSEMASK = SDL_EVENTMASK(SDL_VIDEOEXPOSE),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   112
    SDL_QUITMASK        = SDL_EVENTMASK(SDL_QUIT),
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   113
    SDL_SYSWMEVENTMASK  = SDL_EVENTMASK(SDL_SYSWMEVENT)
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   114
} SDL_EventMask ;
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   115
#define SDL_ALLEVENTS       0xFFFFFFFF
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   116
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   117
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   118
/** Application visibility event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   119
typedef struct SDL_ActiveEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   120
    Uint8 type; /**< SDL_ACTIVEEVENT */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   121
    Uint8 gain; /**< Whether given states were gained or lost (1/0) */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   122
    Uint8 state;    /**< A mask of the focus states */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   123
} SDL_ActiveEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   124
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   125
/** Keyboard event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   126
typedef struct SDL_KeyboardEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   127
    Uint8 type; /**< SDL_KEYDOWN or SDL_KEYUP */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   128
    Uint8 which;    /**< The keyboard device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   129
    Uint8 state;    /**< SDL_PRESSED or SDL_RELEASED */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   130
    SDL_keysym keysym;
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   131
} SDL_KeyboardEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   132
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   133
/** Mouse motion event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   134
typedef struct SDL_MouseMotionEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   135
    Uint8 type; /**< SDL_MOUSEMOTION */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   136
    Uint8 which;    /**< The mouse device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   137
    Uint8 state;    /**< The current button state */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   138
    Uint16 x, y;    /**< The X/Y coordinates of the mouse */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   139
    Sint16 xrel;    /**< The relative motion in the X direction */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   140
    Sint16 yrel;    /**< The relative motion in the Y direction */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   141
} SDL_MouseMotionEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   142
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   143
/** Mouse button event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   144
typedef struct SDL_MouseButtonEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   145
    Uint8 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   146
    Uint8 which;    /**< The mouse device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   147
    Uint8 button;   /**< The mouse button index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   148
    Uint8 state;    /**< SDL_PRESSED or SDL_RELEASED */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   149
    Uint16 x, y;    /**< The X/Y coordinates of the mouse at press time */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   150
} SDL_MouseButtonEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   151
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   152
/** Joystick axis motion event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   153
typedef struct SDL_JoyAxisEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   154
    Uint8 type; /**< SDL_JOYAXISMOTION */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   155
    Uint8 which;    /**< The joystick device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   156
    Uint8 axis; /**< The joystick axis index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   157
    Sint16 value;   /**< The axis value (range: -32768 to 32767) */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   158
} SDL_JoyAxisEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   159
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   160
/** Joystick trackball motion event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   161
typedef struct SDL_JoyBallEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   162
    Uint8 type; /**< SDL_JOYBALLMOTION */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   163
    Uint8 which;    /**< The joystick device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   164
    Uint8 ball; /**< The joystick trackball index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   165
    Sint16 xrel;    /**< The relative motion in the X direction */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   166
    Sint16 yrel;    /**< The relative motion in the Y direction */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   167
} SDL_JoyBallEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   168
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   169
/** Joystick hat position change event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   170
typedef struct SDL_JoyHatEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   171
    Uint8 type; /**< SDL_JOYHATMOTION */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   172
    Uint8 which;    /**< The joystick device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   173
    Uint8 hat;  /**< The joystick hat index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   174
    Uint8 value;    /**< The hat position value:
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   175
             *   SDL_HAT_LEFTUP   SDL_HAT_UP       SDL_HAT_RIGHTUP
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   176
             *   SDL_HAT_LEFT     SDL_HAT_CENTERED SDL_HAT_RIGHT
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   177
             *   SDL_HAT_LEFTDOWN SDL_HAT_DOWN     SDL_HAT_RIGHTDOWN
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   178
             *  Note that zero means the POV is centered.
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   179
             */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   180
} SDL_JoyHatEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   181
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   182
/** Joystick button event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   183
typedef struct SDL_JoyButtonEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   184
    Uint8 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   185
    Uint8 which;    /**< The joystick device index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   186
    Uint8 button;   /**< The joystick button index */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   187
    Uint8 state;    /**< SDL_PRESSED or SDL_RELEASED */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   188
} SDL_JoyButtonEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   189
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   190
/** The "window resized" event
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   191
 *  When you get this event, you are responsible for setting a new video
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   192
 *  mode with the new width and height.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   193
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   194
typedef struct SDL_ResizeEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   195
    Uint8 type; /**< SDL_VIDEORESIZE */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   196
    int w;      /**< New width */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   197
    int h;      /**< New height */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   198
} SDL_ResizeEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   199
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   200
/** The "screen redraw" event */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   201
typedef struct SDL_ExposeEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   202
    Uint8 type; /**< SDL_VIDEOEXPOSE */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   203
} SDL_ExposeEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   204
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   205
/** The "quit requested" event */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   206
typedef struct SDL_QuitEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   207
    Uint8 type; /**< SDL_QUIT */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   208
} SDL_QuitEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   209
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   210
/** A user-defined event type */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   211
typedef struct SDL_UserEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   212
    Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   213
    int code;   /**< User defined event code */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   214
    void *data1;    /**< User defined data pointer */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   215
    void *data2;    /**< User defined data pointer */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   216
} SDL_UserEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   217
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   218
/** If you want to use this event, you should include SDL_syswm.h */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   219
struct SDL_SysWMmsg;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   220
typedef struct SDL_SysWMmsg SDL_SysWMmsg;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   221
typedef struct SDL_SysWMEvent {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   222
    Uint8 type;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   223
    SDL_SysWMmsg *msg;
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   224
} SDL_SysWMEvent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   225
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   226
/** General event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   227
typedef union SDL_Event {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   228
    Uint8 type;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   229
    SDL_ActiveEvent active;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   230
    SDL_KeyboardEvent key;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   231
    SDL_MouseMotionEvent motion;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   232
    SDL_MouseButtonEvent button;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   233
    SDL_JoyAxisEvent jaxis;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   234
    SDL_JoyBallEvent jball;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   235
    SDL_JoyHatEvent jhat;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   236
    SDL_JoyButtonEvent jbutton;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   237
    SDL_ResizeEvent resize;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   238
    SDL_ExposeEvent expose;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   239
    SDL_QuitEvent quit;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   240
    SDL_UserEvent user;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   241
    SDL_SysWMEvent syswm;
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   242
} SDL_Event;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   243
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   244
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   245
/* Function prototypes */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   246
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   247
/** Pumps the event loop, gathering events from the input devices.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   248
 *  This function updates the event queue and internal input device state.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   249
 *  This should only be run in the thread that sets the video mode.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   250
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   251
extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   252
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   253
typedef enum {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   254
    SDL_ADDEVENT,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   255
    SDL_PEEKEVENT,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   256
    SDL_GETEVENT
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   257
} SDL_eventaction;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   258
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   259
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   260
 *  Checks the event queue for messages and optionally returns them.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   261
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   262
 *  If 'action' is SDL_ADDEVENT, up to 'numevents' events will be added to
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   263
 *  the back of the event queue.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   264
 *  If 'action' is SDL_PEEKEVENT, up to 'numevents' events at the front
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   265
 *  of the event queue, matching 'mask', will be returned and will not
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   266
 *  be removed from the queue.
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   267
 *  If 'action' is SDL_GETEVENT, up to 'numevents' events at the front
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   268
 *  of the event queue, matching 'mask', will be returned and will be
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   269
 *  removed from the queue.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   270
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   271
 *  @return
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   272
 *  This function returns the number of events actually stored, or -1
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   273
 *  if there was an error.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   274
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   275
 *  This function is thread-safe.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   276
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   277
extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents,
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   278
                SDL_eventaction action, Uint32 mask);
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   279
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   280
/** Polls for currently pending events, and returns 1 if there are any pending
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   281
 *  events, or 0 if there are none available.  If 'event' is not NULL, the next
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   282
 *  event is removed from the queue and stored in that area.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   283
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   284
extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   285
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   286
/** Waits indefinitely for the next available event, returning 1, or 0 if there
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   287
 *  was an error while waiting for events.  If 'event' is not NULL, the next
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   288
 *  event is removed from the queue and stored in that area.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   289
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   290
extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   291
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   292
/** Add an event to the event queue.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   293
 *  This function returns 0 on success, or -1 if the event queue was full
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   294
 *  or there was some other error.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   295
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   296
extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   297
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   298
/** @name Event Filtering */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   299
/*@{*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   300
typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   301
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   302
 *  This function sets up a filter to process all events before they
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   303
 *  change internal state and are posted to the internal event queue.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   304
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   305
 *  The filter is protypted as:
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   306
 *      @code typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); @endcode
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   307
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   308
 * If the filter returns 1, then the event will be added to the internal queue.
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   309
 * If it returns 0, then the event will be dropped from the queue, but the
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   310
 * internal state will still be updated.  This allows selective filtering of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   311
 * dynamically arriving events.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   312
 *
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   313
 * @warning  Be very careful of what you do in the event filter function, as
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   314
 *           it may run in a different thread!
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   315
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   316
 * There is one caveat when dealing with the SDL_QUITEVENT event type.  The
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   317
 * event filter is only called when the window manager desires to close the
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   318
 * application window.  If the event filter returns 1, then the window will
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   319
 * be closed, otherwise the window will remain open if possible.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   320
 * If the quit event is generated by an interrupt signal, it will bypass the
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   321
 * internal queue and be delivered to the application at the next event poll.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   322
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   323
extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   324
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   325
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   326
 *  Return the current event filter - can be used to "chain" filters.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   327
 *  If there is no event filter set, this function returns NULL.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   328
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   329
extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   330
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   331
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   332
/** @name Event State */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   333
/*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   334
#define SDL_QUERY   -1
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   335
#define SDL_IGNORE   0
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   336
#define SDL_DISABLE  0
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   337
#define SDL_ENABLE   1
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   338
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   339
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   340
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   341
* This function allows you to set the state of processing certain events.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   342
* If 'state' is set to SDL_IGNORE, that event will be automatically dropped
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   343
* from the event queue and will not event be filtered.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   344
* If 'state' is set to SDL_ENABLE, that event will be processed normally.
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   345
* If 'state' is set to SDL_QUERY, SDL_EventState() will return the
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   346
* current processing state of the specified event.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   347
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   348
extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   349
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   350
/* Ends C function definitions when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   351
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   352
}
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   353
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   354
#include "close_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   355
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   356
#endif /* _SDL_events_h */