include/SDL_events.h
changeset 4657 eed063a0bf5b
parent 4644 fb500b3e1717
child 4658 454385d76845
equal deleted inserted replaced
4656:b5007b7995c6 4657:eed063a0bf5b
    84     SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
    84     SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
    85     SDL_JOYHATMOTION,           /**< Joystick hat position change */
    85     SDL_JOYHATMOTION,           /**< Joystick hat position change */
    86     SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
    86     SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
    87     SDL_JOYBUTTONUP,            /**< Joystick button released */
    87     SDL_JOYBUTTONUP,            /**< Joystick button released */
    88 
    88 
    89     /*Touch events - is 0x700 the correct place?*/
    89     /*Touch events*/
    90     SDL_FINGERDOWN     = 0x700,
    90     SDL_FINGERDOWN     = 0x700,
    91     SDL_FINGERUP,
    91     SDL_FINGERUP,
    92     SDL_FINGERMOTION,
    92     SDL_FINGERMOTION,
    93     SDL_TOUCHBUTTONDOWN,
    93     SDL_TOUCHBUTTONDOWN,
    94     SDL_TOUCHBUTTONUP,    
    94     SDL_TOUCHBUTTONUP,    
       
    95 
       
    96     /*Gesture events*/
       
    97     SDL_DOLLARGESTURE     = 0x800,
       
    98     SDL_MULTIGESTURE,
    95 
    99 
    96     /* Obsolete events */
   100     /* Obsolete events */
    97     SDL_EVENT_COMPAT1 = 0x7000, /**< SDL 1.2 events for compatibility */
   101     SDL_EVENT_COMPAT1 = 0x7000, /**< SDL 1.2 events for compatibility */
    98     SDL_EVENT_COMPAT2,
   102     SDL_EVENT_COMPAT2,
    99     SDL_EVENT_COMPAT3,
   103     SDL_EVENT_COMPAT3,
   327     Uint8 state;        /**< The current button state */
   331     Uint8 state;        /**< The current button state */
   328     Uint8 button;        /**< The button changing state */
   332     Uint8 button;        /**< The button changing state */
   329     Uint8 padding1;
   333     Uint8 padding1;
   330 
   334 
   331 } SDL_TouchButtonEvent;
   335 } SDL_TouchButtonEvent;
       
   336 
       
   337 
       
   338 
       
   339 /**
       
   340  *  \brief Multiple Finger Gesture Event
       
   341  */
       
   342 typedef struct SDL_MultiGestureEvent
       
   343 {
       
   344     Uint32 type;        /**< ::SDL_MULTIGESTURE */
       
   345     Uint32 windowID;    /**< The window with mouse focus, if any */
       
   346     Uint8 touchId;        /**< The touch device index */
       
   347     Uint8 padding1;
       
   348     Uint8 padding2;
       
   349     Uint8 padding3;
       
   350     float dTheta;
       
   351     float dDist;
       
   352     float x;  //currently 0...1. Change to screen coords?
       
   353     float y;  
       
   354 
       
   355 } SDL_MultiGestureEvent;
       
   356 
       
   357 
   332 
   358 
   333 
   359 
   334 /**
   360 /**
   335  *  \brief The "quit requested" event
   361  *  \brief The "quit requested" event
   336  */
   362  */
   414     SDL_UserEvent user;             /**< Custom event data */
   440     SDL_UserEvent user;             /**< Custom event data */
   415     SDL_SysWMEvent syswm;           /**< System dependent window event data */
   441     SDL_SysWMEvent syswm;           /**< System dependent window event data */
   416     SDL_ProximityEvent proximity;   /**< Proximity In or Out event */
   442     SDL_ProximityEvent proximity;   /**< Proximity In or Out event */
   417     SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
   443     SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
   418     SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
   444     SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
       
   445     SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data*/
   419 
   446 
   420     /** Temporarily here for backwards compatibility */
   447     /** Temporarily here for backwards compatibility */
   421     /*@{*/
   448     /*@{*/
   422 #ifndef SDL_NO_COMPAT
   449 #ifndef SDL_NO_COMPAT
   423     SDL_ActiveEvent active;
   450     SDL_ActiveEvent active;