diff 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
line wrap: on
line diff
--- a/include/SDL_gesture.h	Sat Jul 31 01:24:50 2010 +0400
+++ b/include/SDL_gesture.h	Sat Jul 31 20:02:54 2010 +0400
@@ -33,6 +33,9 @@
 #include "SDL_error.h"
 #include "SDL_video.h"
 
+#include "SDL_touch.h"
+
+
 #include "begin_code.h"
 /* Set up for C function definitions, even when using C++ */
 #ifdef __cplusplus
@@ -41,6 +44,7 @@
 /* *INDENT-ON* */
 #endif
 
+  typedef Uint64 SDL_GestureID;
 
 /* Function prototypes */
 
@@ -49,7 +53,7 @@
  *
  *
  */
-  extern DECLSPEC int SDLCALL SDL_RecordGesture(int touchId);
+  extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
 
 
 /**
@@ -65,7 +69,7 @@
  *
  */
   extern DECLSPEC int 
-  SDLCALL SDL_SaveDollarTemplate(unsigned long gestureId,SDL_RWops *src);
+  SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);
 
 
 /**
@@ -73,7 +77,8 @@
  *
  *
  */
-  extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(int touchId, SDL_RWops *src);
+  extern DECLSPEC 
+  int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);