diff include/SDL_events.h @ 4658:454385d76845

Moved $1 Gestures into the SDL Library
author Jim Grandpre <jim.tla@gmail.com>
date Fri, 09 Jul 2010 00:50:40 -0700
parents eed063a0bf5b
children 063b9455bd1a
line wrap: on
line diff
--- a/include/SDL_events.h	Wed Jul 07 04:13:08 2010 -0700
+++ b/include/SDL_events.h	Fri Jul 09 00:50:40 2010 -0700
@@ -354,6 +354,22 @@
 
 } SDL_MultiGestureEvent;
 
+typedef struct SDL_DollarGestureEvent
+{
+    Uint32 type;        /**< ::SDL_DOLLARGESTURE */
+    Uint32 windowID;    /**< The window with mouse focus, if any */
+    Uint8 touchId;        /**< The touch device index */
+    Uint8 gestureId;
+    Uint8 padding2;
+    Uint8 padding3;
+    float error;
+  /*
+    //TODO: Enable to give location?
+    float x;  //currently 0...1. Change to screen coords?
+    float y;  
+  */
+} SDL_DollarGestureEvent;
+
 
 
 
@@ -443,6 +459,7 @@
     SDL_TouchFingerEvent tfinger;   /**< Touch finger event data */
     SDL_TouchButtonEvent tbutton;   /**< Touch button event data */
     SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data*/
+    SDL_DollarGestureEvent dgesture; /**< Multi Finger Gesture data*/
 
     /** Temporarily here for backwards compatibility */
     /*@{*/