include/SDL_events.h
branchgsoc2008_manymouse
changeset 3763 81ea7d9a6624
parent 3760 64f346a83ed3
child 3765 ed9b7fe8f902
     1.1 --- a/include/SDL_events.h	Wed Jul 02 20:20:51 2008 +0000
     1.2 +++ b/include/SDL_events.h	Wed Jul 02 20:29:29 2008 +0000
     1.3 @@ -72,9 +72,11 @@
     1.4      SDL_JOYBUTTONUP,            /**< Joystick button released */
     1.5      SDL_QUIT,                   /**< User-requested quit */
     1.6      SDL_SYSWMEVENT,             /**< System specific event */
     1.7 +    SDL_PROXIMITYIN,        /**< Proximity In event */
     1.8 +    SDL_PROXIMITYOUT,        /**< Proximity Out event */
     1.9      SDL_EVENT_RESERVED1,        /**< Reserved for future use... */
    1.10 -    SDL_EVENT_RESERVED2,        /**< Reserved for future use... */
    1.11 -    SDL_EVENT_RESERVED3,        /**< Reserved for future use... */
    1.12 +    SDL_EVENT_RESERVED2,
    1.13 +    SDL_EVENT_RESERVED3,
    1.14      /* Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */
    1.15      SDL_USEREVENT = 24,
    1.16      /* This last event is only for bounding internal arrays
    1.17 @@ -112,7 +114,9 @@
    1.18          SDL_EVENTMASK(SDL_JOYHATMOTION) |
    1.19          SDL_EVENTMASK(SDL_JOYBUTTONDOWN) | SDL_EVENTMASK(SDL_JOYBUTTONUP),
    1.20      SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT),
    1.21 -    SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT)
    1.22 +    SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT),
    1.23 +    SDL_PROXIMITYINMASK = SDL_EVENTMASK(SDL_PROXIMITYIN),
    1.24 +    SDL_PROXIMITYOUTMASK = SDL_EVENTMASK(SDL_PROXIMITYOUT)
    1.25  } SDL_EventMask;
    1.26  #define SDL_ALLEVENTS		0xFFFFFFFF
    1.27  
    1.28 @@ -317,6 +321,14 @@
    1.29      int h;
    1.30  } SDL_ResizeEvent;
    1.31  
    1.32 +typedef struct SDL_ProximityEvent
    1.33 +{
    1.34 +    Uint8 which;
    1.35 +    Uint8 type;
    1.36 +    int x;
    1.37 +    int y;
    1.38 +} SDL_ProximityEvent;
    1.39 +
    1.40  /**
    1.41   * \union SDL_Event
    1.42   *
    1.43 @@ -338,7 +350,7 @@
    1.44      SDL_QuitEvent quit;             /**< Quit request event data */
    1.45      SDL_UserEvent user;             /**< Custom event data */
    1.46      SDL_SysWMEvent syswm;           /**< System dependent window event data */
    1.47 -
    1.48 +    SDL_ProximityEvent proximity;    /**< Proximity In or Out event */
    1.49      /* Temporarily here for backwards compatibility */
    1.50      SDL_ActiveEvent active;
    1.51      SDL_ResizeEvent resize;