Mercurial > sdl-ios-xcode
diff src/events/SDL_touch_c.h @ 4676:99b4560b7aa1
Upgraded touchId/fingerId to long. Changed position variables to floats.
author | jimtla |
---|---|
date | Fri, 30 Jul 2010 23:18:35 +0400 |
parents | 0350b634c044 |
children | 31607094315c |
line wrap: on
line diff
--- a/src/events/SDL_touch_c.h Thu Jul 29 12:26:59 2010 -0400 +++ b/src/events/SDL_touch_c.h Fri Jul 30 23:18:35 2010 +0400 @@ -34,13 +34,13 @@ extern SDL_Touch *SDL_GetTouchIndex(int index); /* Get the touch with id = id */ -extern SDL_Touch *SDL_GetTouch(int id); +extern SDL_Touch *SDL_GetTouch(long id); /*Get the finger at an index */ extern SDL_Finger *SDL_GetFingerIndex(SDL_Touch *touch, int index); /* Get the finger with id = id */ -extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,int id); +extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,long id); /* Add a touch, possibly reattaching at a particular index (or -1), @@ -49,26 +49,23 @@ /* Remove a touch at an index, clearing the slot for later */ -extern void SDL_DelTouch(int index); +extern void SDL_DelTouch(long id); /* Set the touch focus window */ -extern void SDL_SetTouchFocus(int id, SDL_Window * window); +extern void SDL_SetTouchFocus(long id, SDL_Window * window); /* Send a touch motion event for a touch */ -extern int SDL_SendTouchMotion(int id, int fingerid, - int relative, int x, int y, int z); +extern int SDL_SendTouchMotion(long id, long fingerid, + int relative, float x, float y, float z); /* Send a touch button event for a touch */ -extern int SDL_SendTouchButton(int id, Uint8 state, Uint8 button); +extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button); /* Shutdown the touch subsystem */ extern void SDL_TouchQuit(void); /* Get the index of a touch device */ -extern int SDL_GetTouchIndexId(int id); - - - +extern int SDL_GetTouchIndexId(long id); #endif /* _SDL_touch_c_h */