zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"

Go to the source code of this file.

Typedefs

typedef Sint64 SDL_GestureID
 

Functions

DECLSPEC int SDLCALL SDL_LoadDollarTemplates (SDL_TouchID touchId, SDL_RWops *src)
 Load Dollar Gesture templates from a file. More...
 
DECLSPEC int SDLCALL SDL_RecordGesture (SDL_TouchID touchId)
 Begin Recording a gesture on the specified touch, or all touches (-1) More...
 
DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates (SDL_RWops *src)
 Save all currently loaded Dollar Gesture templates. More...
 
DECLSPEC int SDLCALL SDL_SaveDollarTemplate (SDL_GestureID gestureId, SDL_RWops *src)
 Save a currently loaded Dollar Gesture template. More...
 

Detailed Description

Include file for SDL gesture event handling.

Definition in file SDL_gesture.h.

Typedef Documentation

Definition at line 44 of file SDL_gesture.h.

Function Documentation

DECLSPEC int SDLCALL SDL_LoadDollarTemplates ( SDL_TouchID  touchId,
SDL_RWops src 
)

Load Dollar Gesture templates from a file.

Definition at line 207 of file SDL_gesture.c.

References DOLLARNPOINTS, i, NULL, SDL_AddDollarGesture(), SDL_gestureTouch, SDL_numGestureTouches, and SDL_RWread.

DECLSPEC int SDLCALL SDL_RecordGesture ( SDL_TouchID  touchId)

Begin Recording a gesture on the specified touch, or all touches (-1)

Definition at line 93 of file SDL_gesture.c.

DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates ( SDL_RWops src)

Save all currently loaded Dollar Gesture templates.

Definition at line 135 of file SDL_gesture.c.

References i, j, SaveTemplate(), SDL_gestureTouch, and SDL_numGestureTouches.

DECLSPEC int SDLCALL SDL_SaveDollarTemplate ( SDL_GestureID  gestureId,
SDL_RWops src 
)

Save a currently loaded Dollar Gesture template.

Definition at line 147 of file SDL_gesture.c.

References i, j, SaveTemplate(), SDL_gestureTouch, SDL_numGestureTouches, and SDL_SetError().