src/events/SDL_touch_c.h
changeset 4678 f8431f66613d
parent 4677 31607094315c
child 5262 b530ef003506
     1.1 --- a/src/events/SDL_touch_c.h	Sat Jul 31 01:24:50 2010 +0400
     1.2 +++ b/src/events/SDL_touch_c.h	Sat Jul 31 20:02:54 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(long id);
     1.8 +extern SDL_Touch *SDL_GetTouch(SDL_TouchID 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,long id);
    1.15 +extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,SDL_FingerID id);
    1.16  
    1.17  
    1.18  /* Add a touch, possibly reattaching at a particular index (or -1),
    1.19 @@ -49,30 +49,30 @@
    1.20                       
    1.21  
    1.22  /* Remove a touch at an index, clearing the slot for later */
    1.23 -extern void SDL_DelTouch(long id);
    1.24 +extern void SDL_DelTouch(SDL_TouchID id);
    1.25  
    1.26  /* Set the touch focus window */
    1.27 -extern void SDL_SetTouchFocus(long id, SDL_Window * window);
    1.28 +extern void SDL_SetTouchFocus(SDL_TouchID id, SDL_Window * window);
    1.29  
    1.30  /* Send a touch motion event for a touch */
    1.31 -extern int SDL_SendTouchMotion(long id, long fingerid,
    1.32 +extern int SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid,
    1.33  			       int relative, float x, float y, float z);
    1.34  
    1.35  /* Send a touch down/up event for a touch */
    1.36 -extern int SDL_SendFingerDown(long id, long fingerid, SDL_bool down, 
    1.37 -							  float x, float y, float pressure);
    1.38 +extern int SDL_SendFingerDown(SDL_TouchID id, SDL_FingerID fingerid, 
    1.39 +			      SDL_bool down, float x, float y, float pressure);
    1.40  
    1.41  /* Send a touch button event for a touch */
    1.42 -extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button);
    1.43 +extern int SDL_SendTouchButton(SDL_TouchID id, Uint8 state, Uint8 button);
    1.44  
    1.45  /* Shutdown the touch subsystem */
    1.46  extern void SDL_TouchQuit(void);
    1.47  
    1.48  /* Get the index of a touch device */
    1.49 -extern int SDL_GetTouchIndexId(long id);
    1.50 +extern int SDL_GetTouchIndexId(SDL_TouchID id);
    1.51  
    1.52  /* Print a debug message for a nonexistent touch */
    1.53 -extern int SDL_TouchNotFoundError(long id);
    1.54 +extern int SDL_TouchNotFoundError(SDL_TouchID id);
    1.55  
    1.56  #endif /* _SDL_touch_c_h */
    1.57