src/events/SDL_touch_c.h
changeset 4646 eea1bf53effa
parent 4645 0375d020e7e3
child 4647 be2250bb482b
     1.1 --- a/src/events/SDL_touch_c.h	Mon May 31 00:24:37 2010 -0400
     1.2 +++ b/src/events/SDL_touch_c.h	Tue Jun 01 02:54:33 2010 -0400
     1.3 @@ -20,52 +20,11 @@
     1.4      slouken@libsdl.org
     1.5  */
     1.6  #include "SDL_config.h"
     1.7 +#include "../../include/SDL_touch.h"
     1.8  
     1.9  #ifndef _SDL_touch_c_h
    1.10  #define _SDL_touch_c_h
    1.11  
    1.12 -typedef struct SDL_Touch SDL_Touch;
    1.13 -typedef struct SDL_Finger SDL_Finger;
    1.14 -
    1.15 -struct SDL_Finger {
    1.16 -  int id;
    1.17 -  int x;
    1.18 -  int y;
    1.19 -  int z;                      /* for future use */
    1.20 -  int xdelta;
    1.21 -  int ydelta;
    1.22 -  int last_x, last_y;         /* the last reported x and y coordinates */
    1.23 -  int pressure;
    1.24 -};
    1.25 -
    1.26 -
    1.27 -struct SDL_Touch
    1.28 -{
    1.29 -  
    1.30 -  /* Free the touch when it's time */
    1.31 -  void (*FreeTouch) (SDL_Touch * touch);
    1.32 -  
    1.33 -  /* data common for tablets */
    1.34 -  int pressure_max;
    1.35 -  int pressure_min;
    1.36 -  int tilt;                   /* for future use */
    1.37 -  int rotation;               /* for future use */
    1.38 -  
    1.39 -  /* Data common to all touch */
    1.40 -  int id;
    1.41 -  SDL_Window *focus;
    1.42 -  
    1.43 -  char *name;
    1.44 -  Uint8 buttonstate;
    1.45 -  SDL_bool relative_mode;
    1.46 -  SDL_bool flush_motion;
    1.47 -
    1.48 -  int num_fingers;
    1.49 -  int max_fingers;
    1.50 -  SDL_Finger** fingers;
    1.51 -    
    1.52 -  void *driverdata;
    1.53 -};
    1.54  
    1.55  
    1.56  /* Initialize the touch subsystem */