Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4676:99b4560b7aa1 | 4677:31607094315c |
---|---|
56 | 56 |
57 /* Send a touch motion event for a touch */ | 57 /* Send a touch motion event for a touch */ |
58 extern int SDL_SendTouchMotion(long id, long fingerid, | 58 extern int SDL_SendTouchMotion(long id, long fingerid, |
59 int relative, float x, float y, float z); | 59 int relative, float x, float y, float z); |
60 | 60 |
61 /* Send a touch down/up event for a touch */ | |
62 extern int SDL_SendFingerDown(long id, long fingerid, SDL_bool down, | |
63 float x, float y, float pressure); | |
64 | |
61 /* Send a touch button event for a touch */ | 65 /* Send a touch button event for a touch */ |
62 extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button); | 66 extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button); |
63 | 67 |
64 /* Shutdown the touch subsystem */ | 68 /* Shutdown the touch subsystem */ |
65 extern void SDL_TouchQuit(void); | 69 extern void SDL_TouchQuit(void); |
66 | 70 |
67 /* Get the index of a touch device */ | 71 /* Get the index of a touch device */ |
68 extern int SDL_GetTouchIndexId(long id); | 72 extern int SDL_GetTouchIndexId(long id); |
69 | 73 |
74 /* Print a debug message for a nonexistent touch */ | |
75 extern int SDL_TouchNotFoundError(long id); | |
76 | |
70 #endif /* _SDL_touch_c_h */ | 77 #endif /* _SDL_touch_c_h */ |
71 | 78 |
72 /* vi: set ts=4 sw=4 expandtab: */ | 79 /* vi: set ts=4 sw=4 expandtab: */ |