|
SDL
2.0
|
#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) |
| Begin Recording a gesture on the specified touch, or all touches (-1) More... | |
| int | SDL_SaveAllDollarTemplates (SDL_RWops *dst) |
| Save all currently loaded Dollar Gesture templates. More... | |
| int | SDL_SaveDollarTemplate (SDL_GestureID gestureId, SDL_RWops *dst) |
| Save a currently loaded Dollar Gesture template. More... | |
| int | SDL_LoadDollarTemplates (SDL_TouchID touchId, SDL_RWops *src) |
| Load Dollar Gesture templates from a file. More... | |
Include file for SDL gesture event handling.
Definition in file SDL_gesture.h.
| typedef Sint64 SDL_GestureID |
Definition at line 44 of file SDL_gesture.h.
| int SDL_LoadDollarTemplates | ( | SDL_TouchID | touchId, |
| SDL_RWops * | src | ||
| ) |
Load Dollar Gesture templates from a file.
Definition at line 221 of file SDL_gesture.c.
References DOLLARNPOINTS, i, NULL, SDL_DollarTemplate::path, SDL_AddDollarGesture(), SDL_numGestureTouches, SDL_RWread, SDL_SetError, SDL_SwapFloatLE, SDL_FloatPoint::x, and SDL_FloatPoint::y.
| int SDL_RecordGesture | ( | SDL_TouchID | touchId | ) |
Begin Recording a gesture on the specified touch, or all touches (-1)
Definition at line 90 of file SDL_gesture.c.
| int SDL_SaveAllDollarTemplates | ( | SDL_RWops * | dst | ) |
Save all currently loaded Dollar Gesture templates.
Definition at line 151 of file SDL_gesture.c.
References SDL_GestureTouch::dollarTemplate, i, j, SDL_GestureTouch::numDollarTemplates, SaveTemplate(), and SDL_numGestureTouches.
| int SDL_SaveDollarTemplate | ( | SDL_GestureID | gestureId, |
| SDL_RWops * | dst | ||
| ) |
Save a currently loaded Dollar Gesture template.
Definition at line 163 of file SDL_gesture.c.
References SDL_GestureTouch::dollarTemplate, SDL_DollarTemplate::hash, i, j, SDL_GestureTouch::numDollarTemplates, SaveTemplate(), SDL_numGestureTouches, and SDL_SetError.