include/SDL_events.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
child 1669 9857d21967bb
     1.1 --- a/include/SDL_events.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_events.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -89,28 +89,26 @@
     1.4  #define SDL_EVENTMASK(X)	(1<<(X))
     1.5  typedef enum
     1.6  {
     1.7 -    SDL_WINDOWEVENTMASK = SDL_EVENTMASK (SDL_WINDOWEVENT),
     1.8 -    SDL_KEYDOWNMASK = SDL_EVENTMASK (SDL_KEYDOWN),
     1.9 -    SDL_KEYUPMASK = SDL_EVENTMASK (SDL_KEYUP),
    1.10 -    SDL_KEYEVENTMASK = SDL_EVENTMASK (SDL_KEYDOWN) |
    1.11 -        SDL_EVENTMASK (SDL_KEYUP),
    1.12 -    SDL_MOUSEMOTIONMASK = SDL_EVENTMASK (SDL_MOUSEMOTION),
    1.13 -    SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK (SDL_MOUSEBUTTONDOWN),
    1.14 -    SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK (SDL_MOUSEBUTTONUP),
    1.15 -    SDL_MOUSEEVENTMASK = SDL_EVENTMASK (SDL_MOUSEMOTION) |
    1.16 -        SDL_EVENTMASK (SDL_MOUSEBUTTONDOWN) |
    1.17 -        SDL_EVENTMASK (SDL_MOUSEBUTTONUP),
    1.18 -    SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK (SDL_JOYAXISMOTION),
    1.19 -    SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK (SDL_JOYBALLMOTION),
    1.20 -    SDL_JOYHATMOTIONMASK = SDL_EVENTMASK (SDL_JOYHATMOTION),
    1.21 -    SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK (SDL_JOYBUTTONDOWN),
    1.22 -    SDL_JOYBUTTONUPMASK = SDL_EVENTMASK (SDL_JOYBUTTONUP),
    1.23 -    SDL_JOYEVENTMASK = SDL_EVENTMASK (SDL_JOYAXISMOTION) |
    1.24 -        SDL_EVENTMASK (SDL_JOYBALLMOTION) |
    1.25 -        SDL_EVENTMASK (SDL_JOYHATMOTION) |
    1.26 -        SDL_EVENTMASK (SDL_JOYBUTTONDOWN) | SDL_EVENTMASK (SDL_JOYBUTTONUP),
    1.27 -    SDL_QUITMASK = SDL_EVENTMASK (SDL_QUIT),
    1.28 -    SDL_SYSWMEVENTMASK = SDL_EVENTMASK (SDL_SYSWMEVENT)
    1.29 +    SDL_WINDOWEVENTMASK = SDL_EVENTMASK(SDL_WINDOWEVENT),
    1.30 +    SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN),
    1.31 +    SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP),
    1.32 +    SDL_KEYEVENTMASK = SDL_EVENTMASK(SDL_KEYDOWN) | SDL_EVENTMASK(SDL_KEYUP),
    1.33 +    SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION),
    1.34 +    SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),
    1.35 +    SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
    1.36 +    SDL_MOUSEEVENTMASK = SDL_EVENTMASK(SDL_MOUSEMOTION) |
    1.37 +        SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN) | SDL_EVENTMASK(SDL_MOUSEBUTTONUP),
    1.38 +    SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION),
    1.39 +    SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK(SDL_JOYBALLMOTION),
    1.40 +    SDL_JOYHATMOTIONMASK = SDL_EVENTMASK(SDL_JOYHATMOTION),
    1.41 +    SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK(SDL_JOYBUTTONDOWN),
    1.42 +    SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP),
    1.43 +    SDL_JOYEVENTMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION) |
    1.44 +        SDL_EVENTMASK(SDL_JOYBALLMOTION) |
    1.45 +        SDL_EVENTMASK(SDL_JOYHATMOTION) |
    1.46 +        SDL_EVENTMASK(SDL_JOYBUTTONDOWN) | SDL_EVENTMASK(SDL_JOYBUTTONUP),
    1.47 +    SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT),
    1.48 +    SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT)
    1.49  } SDL_EventMask;
    1.50  #define SDL_ALLEVENTS		0xFFFFFFFF
    1.51  
    1.52 @@ -299,7 +297,7 @@
    1.53     This function updates the event queue and internal input device state.
    1.54     This should only be run in the thread that sets the video mode.
    1.55  */
    1.56 -extern DECLSPEC void SDLCALL SDL_PumpEvents (void);
    1.57 +extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
    1.58  
    1.59  /* Checks the event queue for messages and optionally returns them.
    1.60     If 'action' is SDL_ADDEVENT, up to 'numevents' events will be added to
    1.61 @@ -320,27 +318,27 @@
    1.62      SDL_GETEVENT
    1.63  } SDL_eventaction;
    1.64  /* */
    1.65 -extern DECLSPEC int SDLCALL SDL_PeepEvents (SDL_Event * events, int numevents,
    1.66 -                                            SDL_eventaction action,
    1.67 -                                            Uint32 mask);
    1.68 +extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
    1.69 +                                           SDL_eventaction action,
    1.70 +                                           Uint32 mask);
    1.71  
    1.72  /* Polls for currently pending events, and returns 1 if there are any pending
    1.73     events, or 0 if there are none available.  If 'event' is not NULL, the next
    1.74     event is removed from the queue and stored in that area.
    1.75   */
    1.76 -extern DECLSPEC int SDLCALL SDL_PollEvent (SDL_Event * event);
    1.77 +extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
    1.78  
    1.79  /* Waits indefinitely for the next available event, returning 1, or 0 if there
    1.80     was an error while waiting for events.  If 'event' is not NULL, the next
    1.81     event is removed from the queue and stored in that area.
    1.82   */
    1.83 -extern DECLSPEC int SDLCALL SDL_WaitEvent (SDL_Event * event);
    1.84 +extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
    1.85  
    1.86  /* Add an event to the event queue.
    1.87     This function returns 0 on success, or -1 if the event queue was full
    1.88     or there was some other error.
    1.89   */
    1.90 -extern DECLSPEC int SDLCALL SDL_PushEvent (SDL_Event * event);
    1.91 +extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
    1.92  
    1.93  /*
    1.94    This function sets up a filter to process all events before they
    1.95 @@ -365,13 +363,13 @@
    1.96    If the quit event is generated by an interrupt signal, it will bypass the
    1.97    internal queue and be delivered to the application at the next event poll.
    1.98  */
    1.99 -extern DECLSPEC void SDLCALL SDL_SetEventFilter (SDL_EventFilter filter);
   1.100 +extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter);
   1.101  
   1.102  /*
   1.103    Return the current event filter - can be used to "chain" filters.
   1.104    If there is no event filter set, this function returns NULL.
   1.105  */
   1.106 -extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter (void);
   1.107 +extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void);
   1.108  
   1.109  /*
   1.110    This function allows you to set the state of processing certain events.
   1.111 @@ -385,7 +383,7 @@
   1.112  #define SDL_IGNORE	 0
   1.113  #define SDL_DISABLE	 0
   1.114  #define SDL_ENABLE	 1
   1.115 -extern DECLSPEC Uint8 SDLCALL SDL_EventState (Uint8 type, int state);
   1.116 +extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state);
   1.117  
   1.118  
   1.119  /* Ends C function definitions when using C++ */