SDL 2.0
SDL_gesture.h File Reference
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_video.h"
#include "SDL_touch.h"
#include "begin_code.h"
#include "close_code.h"
+ Include dependency graph for SDL_gesture.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef Sint64 SDL_GestureID
 

Functions

int SDL_RecordGesture (SDL_TouchID touchId)
 
int SDL_SaveAllDollarTemplates (SDL_RWops *dst)
 
int SDL_SaveDollarTemplate (SDL_GestureID gestureId, SDL_RWops *dst)
 
int SDL_LoadDollarTemplates (SDL_TouchID touchId, SDL_RWops *src)
 

Typedef Documentation

◆ SDL_GestureID

CategoryGesture

Include file for SDL gesture event handling.

Definition at line 44 of file SDL_gesture.h.

Function Documentation

◆ SDL_LoadDollarTemplates()

int SDL_LoadDollarTemplates ( SDL_TouchID  touchId,
SDL_RWops src 
)
extern

Load Dollar Gesture templates from a file.

Parameters
touchIda touch id.
srca SDL_RWops to load from.
Returns
the number of loaded templates on success or a negative error code (or 0) on failure; call SDL_GetError() for more information.
Since
This function is available since SDL 2.0.0.
See also
SDL_SaveAllDollarTemplates
SDL_SaveDollarTemplate

◆ SDL_RecordGesture()

int SDL_RecordGesture ( SDL_TouchID  touchId)
extern

Begin recording a gesture on a specified touch device or all touch devices.

If the parameter touchId is -1 (i.e., all devices), this function will always return 1, regardless of whether there actually are any devices.

Parameters
touchIdthe touch device id, or -1 for all touch devices.
Returns
1 on success or 0 if the specified device could not be found.
Since
This function is available since SDL 2.0.0.
See also
SDL_GetTouchDevice

◆ SDL_SaveAllDollarTemplates()

int SDL_SaveAllDollarTemplates ( SDL_RWops dst)
extern

Save all currently loaded Dollar Gesture templates.

Parameters
dsta SDL_RWops to save to.
Returns
the number of saved templates on success or 0 on failure; call SDL_GetError() for more information.
Since
This function is available since SDL 2.0.0.
See also
SDL_LoadDollarTemplates
SDL_SaveDollarTemplate

◆ SDL_SaveDollarTemplate()

int SDL_SaveDollarTemplate ( SDL_GestureID  gestureId,
SDL_RWops dst 
)
extern

Save a currently loaded Dollar Gesture template.

Parameters
gestureIda gesture id.
dsta SDL_RWops to save to.
Returns
1 on success or 0 on failure; call SDL_GetError() for more information.
Since
This function is available since SDL 2.0.0.
See also
SDL_LoadDollarTemplates
SDL_SaveAllDollarTemplates