diff src/events/SDL_touch_c.h @ 4646:eea1bf53effa

Added include/touch.h Now reading in resolution of touch pad.
author Jim Grandpre <jim.tla@gmail.com>
date Tue, 01 Jun 2010 02:54:33 -0400
parents 0375d020e7e3
children be2250bb482b
line wrap: on
line diff
--- a/src/events/SDL_touch_c.h	Mon May 31 00:24:37 2010 -0400
+++ b/src/events/SDL_touch_c.h	Tue Jun 01 02:54:33 2010 -0400
@@ -20,52 +20,11 @@
     slouken@libsdl.org
 */
 #include "SDL_config.h"
+#include "../../include/SDL_touch.h"
 
 #ifndef _SDL_touch_c_h
 #define _SDL_touch_c_h
 
-typedef struct SDL_Touch SDL_Touch;
-typedef struct SDL_Finger SDL_Finger;
-
-struct SDL_Finger {
-  int id;
-  int x;
-  int y;
-  int z;                      /* for future use */
-  int xdelta;
-  int ydelta;
-  int last_x, last_y;         /* the last reported x and y coordinates */
-  int pressure;
-};
-
-
-struct SDL_Touch
-{
-  
-  /* Free the touch when it's time */
-  void (*FreeTouch) (SDL_Touch * touch);
-  
-  /* data common for tablets */
-  int pressure_max;
-  int pressure_min;
-  int tilt;                   /* for future use */
-  int rotation;               /* for future use */
-  
-  /* Data common to all touch */
-  int id;
-  SDL_Window *focus;
-  
-  char *name;
-  Uint8 buttonstate;
-  SDL_bool relative_mode;
-  SDL_bool flush_motion;
-
-  int num_fingers;
-  int max_fingers;
-  SDL_Finger** fingers;
-    
-  void *driverdata;
-};
 
 
 /* Initialize the touch subsystem */