src/events/SDL_touch_c.h
changeset 4676 99b4560b7aa1
parent 4648 0350b634c044
child 4677 31607094315c
     1.1 --- a/src/events/SDL_touch_c.h	Thu Jul 29 12:26:59 2010 -0400
     1.2 +++ b/src/events/SDL_touch_c.h	Fri Jul 30 23:18:35 2010 +0400
     1.3 @@ -34,13 +34,13 @@
     1.4  extern SDL_Touch *SDL_GetTouchIndex(int index);
     1.5  
     1.6  /* Get the touch with id = id */
     1.7 -extern SDL_Touch *SDL_GetTouch(int id);
     1.8 +extern SDL_Touch *SDL_GetTouch(long id);
     1.9  
    1.10  /*Get the finger at an index */
    1.11  extern SDL_Finger *SDL_GetFingerIndex(SDL_Touch *touch, int index);
    1.12  
    1.13  /* Get the finger with id = id */
    1.14 -extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,int id);
    1.15 +extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,long id);
    1.16  
    1.17  
    1.18  /* Add a touch, possibly reattaching at a particular index (or -1),
    1.19 @@ -49,26 +49,23 @@
    1.20                       
    1.21  
    1.22  /* Remove a touch at an index, clearing the slot for later */
    1.23 -extern void SDL_DelTouch(int index);
    1.24 +extern void SDL_DelTouch(long id);
    1.25  
    1.26  /* Set the touch focus window */
    1.27 -extern void SDL_SetTouchFocus(int id, SDL_Window * window);
    1.28 +extern void SDL_SetTouchFocus(long id, SDL_Window * window);
    1.29  
    1.30  /* Send a touch motion event for a touch */
    1.31 -extern int SDL_SendTouchMotion(int id, int fingerid,
    1.32 -			       int relative, int x, int y, int z);
    1.33 +extern int SDL_SendTouchMotion(long id, long fingerid,
    1.34 +			       int relative, float x, float y, float z);
    1.35  
    1.36  /* Send a touch button event for a touch */
    1.37 -extern int SDL_SendTouchButton(int id, Uint8 state, Uint8 button);
    1.38 +extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button);
    1.39  
    1.40  /* Shutdown the touch subsystem */
    1.41  extern void SDL_TouchQuit(void);
    1.42  
    1.43  /* Get the index of a touch device */
    1.44 -extern int SDL_GetTouchIndexId(int id);
    1.45 -
    1.46 -
    1.47 -
    1.48 +extern int SDL_GetTouchIndexId(long id);
    1.49  
    1.50  #endif /* _SDL_touch_c_h */
    1.51