include/SDL_events.h
changeset 4658 454385d76845
parent 4657 eed063a0bf5b
child 4659 063b9455bd1a
     1.1 --- a/include/SDL_events.h	Wed Jul 07 04:13:08 2010 -0700
     1.2 +++ b/include/SDL_events.h	Fri Jul 09 00:50:40 2010 -0700
     1.3 @@ -354,6 +354,22 @@
     1.4  
     1.5  } SDL_MultiGestureEvent;
     1.6  
     1.7 +typedef struct SDL_DollarGestureEvent
     1.8 +{
     1.9 +    Uint32 type;        /**< ::SDL_DOLLARGESTURE */
    1.10 +    Uint32 windowID;    /**< The window with mouse focus, if any */
    1.11 +    Uint8 touchId;        /**< The touch device index */
    1.12 +    Uint8 gestureId;
    1.13 +    Uint8 padding2;
    1.14 +    Uint8 padding3;
    1.15 +    float error;
    1.16 +  /*
    1.17 +    //TODO: Enable to give location?
    1.18 +    float x;  //currently 0...1. Change to screen coords?
    1.19 +    float y;  
    1.20 +  */
    1.21 +} SDL_DollarGestureEvent;
    1.22 +
    1.23  
    1.24  
    1.25  
    1.26 @@ -443,6 +459,7 @@
    1.27      SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
    1.28      SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
    1.29      SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data*/
    1.30 +    SDL_DollarGestureEvent dgesture; /**< Multi Finger Gesture data*/
    1.31  
    1.32      /** Temporarily here for backwards compatibility */
    1.33      /*@{*/