Mercurial > sdl-ios-xcode
comparison include/SDL_gesture.h @ 4678:f8431f66613d
Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
author | jimtla |
---|---|
date | Sat, 31 Jul 2010 20:02:54 +0400 |
parents | 317a151b79ad |
children | 5ee96ba0c01e |
comparison
equal
deleted
inserted
replaced
4677:31607094315c | 4678:f8431f66613d |
---|---|
31 | 31 |
32 #include "SDL_stdinc.h" | 32 #include "SDL_stdinc.h" |
33 #include "SDL_error.h" | 33 #include "SDL_error.h" |
34 #include "SDL_video.h" | 34 #include "SDL_video.h" |
35 | 35 |
36 #include "SDL_touch.h" | |
37 | |
38 | |
36 #include "begin_code.h" | 39 #include "begin_code.h" |
37 /* Set up for C function definitions, even when using C++ */ | 40 /* Set up for C function definitions, even when using C++ */ |
38 #ifdef __cplusplus | 41 #ifdef __cplusplus |
39 /* *INDENT-OFF* */ | 42 /* *INDENT-OFF* */ |
40 extern "C" { | 43 extern "C" { |
41 /* *INDENT-ON* */ | 44 /* *INDENT-ON* */ |
42 #endif | 45 #endif |
43 | 46 |
47 typedef Uint64 SDL_GestureID; | |
44 | 48 |
45 /* Function prototypes */ | 49 /* Function prototypes */ |
46 | 50 |
47 /** | 51 /** |
48 * \brief Begin Recording a gesture on the specified touch, or all touches (-1) | 52 * \brief Begin Recording a gesture on the specified touch, or all touches (-1) |
49 * | 53 * |
50 * | 54 * |
51 */ | 55 */ |
52 extern DECLSPEC int SDLCALL SDL_RecordGesture(int touchId); | 56 extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); |
53 | 57 |
54 | 58 |
55 /** | 59 /** |
56 * \brief Save all currently loaded Dollar Gesture templates | 60 * \brief Save all currently loaded Dollar Gesture templates |
57 * | 61 * |
63 * \brief Save a currently loaded Dollar Gesture template | 67 * \brief Save a currently loaded Dollar Gesture template |
64 * | 68 * |
65 * | 69 * |
66 */ | 70 */ |
67 extern DECLSPEC int | 71 extern DECLSPEC int |
68 SDLCALL SDL_SaveDollarTemplate(unsigned long gestureId,SDL_RWops *src); | 72 SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src); |
69 | 73 |
70 | 74 |
71 /** | 75 /** |
72 * \brief Load Dollar Gesture templates from a file | 76 * \brief Load Dollar Gesture templates from a file |
73 * | 77 * |
74 * | 78 * |
75 */ | 79 */ |
76 extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(int touchId, SDL_RWops *src); | 80 extern DECLSPEC |
81 int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); | |
77 | 82 |
78 | 83 |
79 | 84 |
80 /* Ends C function definitions when using C++ */ | 85 /* Ends C function definitions when using C++ */ |
81 #ifdef __cplusplus | 86 #ifdef __cplusplus |