include/SDL_events.h
changeset 2710 44e49d3fa6cf
parent 2300 c97ad1abe05b
child 2859 99210400e8b9
     1.1 --- a/include/SDL_events.h	Mon Aug 25 05:30:28 2008 +0000
     1.2 +++ b/include/SDL_events.h	Mon Aug 25 06:33:00 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 @@ -170,6 +174,13 @@
    1.29      Uint8 state;            /**< The current button state */
    1.30      int x;                  /**< X coordinate, relative to window */
    1.31      int y;                  /**< Y coordinate, relative to window */
    1.32 +    int z;                  /**< Z coordinate, for future use */
    1.33 +    int pressure;           /**< Pressure reported by tablets */
    1.34 +    int pressure_max;       /**< Maximum value of the pressure reported by the device */
    1.35 +    int pressure_min;       /**< Minimum value of the pressure reported by the device */
    1.36 +    int rotation;           /**< For future use */
    1.37 +    int tilt;               /**< For future use */
    1.38 +    int cursor;             /**< The cursor being used in the event */
    1.39      int xrel;               /**< The relative motion in the X direction */
    1.40      int yrel;               /**< The relative motion in the Y direction */
    1.41      SDL_WindowID windowID;  /**< The window with mouse focus, if any */
    1.42 @@ -316,6 +327,15 @@
    1.43      int h;
    1.44  } SDL_ResizeEvent;
    1.45  
    1.46 +typedef struct SDL_ProximityEvent
    1.47 +{
    1.48 +    Uint8 type;
    1.49 +    Uint8 which;
    1.50 +    int cursor;
    1.51 +    int x;
    1.52 +    int y;
    1.53 +} SDL_ProximityEvent;
    1.54 +
    1.55  /**
    1.56   * \union SDL_Event
    1.57   *
    1.58 @@ -337,6 +357,7 @@
    1.59      SDL_QuitEvent quit;             /**< Quit request event data */
    1.60      SDL_UserEvent user;             /**< Custom event data */
    1.61      SDL_SysWMEvent syswm;           /**< System dependent window event data */
    1.62 +    SDL_ProximityEvent proximity;   /**< Proximity In or Out event */
    1.63  
    1.64      /* Temporarily here for backwards compatibility */
    1.65      SDL_ActiveEvent active;