src/events/SDL_touch_c.h
changeset 4642 057e8762d2a1
parent 4641 49a97daea6ec
child 4645 0375d020e7e3
     1.1 --- a/src/events/SDL_touch_c.h	Thu May 27 01:21:37 2010 -0400
     1.2 +++ b/src/events/SDL_touch_c.h	Fri May 28 01:26:52 2010 -0400
     1.3 @@ -51,9 +51,6 @@
     1.4    int tilt;                   /* for future use */
     1.5    int rotation;               /* for future use */
     1.6    
     1.7 -  int total_ends;
     1.8 -  int current_end;
     1.9 -  
    1.10    /* Data common to all touch */
    1.11    int id;
    1.12    SDL_Window *focus;
    1.13 @@ -73,14 +70,23 @@
    1.14  /* Initialize the touch subsystem */
    1.15  extern int SDL_TouchInit(void);
    1.16  
    1.17 -/* Get the touch at an index */
    1.18 -extern SDL_Touch *SDL_GetTouch(int index);
    1.19 +/*Get the touch at an index */
    1.20 +extern SDL_Touch *SDL_GetTouchIndex(int index);
    1.21 +
    1.22 +/* Get the touch with id = id */
    1.23 +extern SDL_Touch *SDL_GetTouch(int id);
    1.24 +
    1.25 +/*Get the finger at an index */
    1.26 +extern SDL_Finger *SDL_GetFingerIndex(SDL_Touch *touch, int index);
    1.27 +
    1.28 +/* Get the finger with id = id */
    1.29 +extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,int id);
    1.30 +
    1.31  
    1.32  /* Add a touch, possibly reattaching at a particular index (or -1),
    1.33 -   returning the index of the touch, or -1 if there was an error.
    1.34 - */
    1.35 -extern int SDL_AddTouch(const SDL_Touch * touch, char *name,
    1.36 -                        int pressure_max, int pressure_min, int ends);
    1.37 +   returning the index of the touch, or -1 if there was an error. */
    1.38 +extern int SDL_AddTouch(const SDL_Touch * touch, char *name);
    1.39 +                     
    1.40  
    1.41  /* Remove a touch at an index, clearing the slot for later */
    1.42  extern void SDL_DelTouch(int index);