Mercurial > sdl-ios-xcode
diff src/events/SDL_touch_c.h @ 4677:31607094315c
Added Iphone project. Iphone multi-touch is now functional.
author | jimtla |
---|---|
date | Sat, 31 Jul 2010 01:24:50 +0400 |
parents | 99b4560b7aa1 |
children | f8431f66613d |
line wrap: on
line diff
--- a/src/events/SDL_touch_c.h Fri Jul 30 23:18:35 2010 +0400 +++ b/src/events/SDL_touch_c.h Sat Jul 31 01:24:50 2010 +0400 @@ -58,6 +58,10 @@ extern int SDL_SendTouchMotion(long id, long fingerid, int relative, float x, float y, float z); +/* Send a touch down/up event for a touch */ +extern int SDL_SendFingerDown(long id, long fingerid, SDL_bool down, + float x, float y, float pressure); + /* Send a touch button event for a touch */ extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button); @@ -67,6 +71,9 @@ /* Get the index of a touch device */ extern int SDL_GetTouchIndexId(long id); +/* Print a debug message for a nonexistent touch */ +extern int SDL_TouchNotFoundError(long id); + #endif /* _SDL_touch_c_h */ /* vi: set ts=4 sw=4 expandtab: */