Path: blob/main/system/include/SDL/SDL_gesture.h
6169 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2011 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021/**22* \file SDL_gesture.h23*24* Include file for SDL gesture event handling.25*/2627#ifndef _SDL_gesture_h28#define _SDL_gesture_h2930#include "SDL_stdinc.h"31#include "SDL_error.h"32#include "SDL_video.h"3334#include "SDL_touch.h"353637#include "begin_code.h"38/* Set up for C function definitions, even when using C++ */39#ifdef __cplusplus40/* *INDENT-OFF* */41extern "C" {42/* *INDENT-ON* */43#endif4445typedef Sint64 SDL_GestureID;4647/* Function prototypes */4849/**50* \brief Begin Recording a gesture on the specified touch, or all touches (-1)51*52*53*/54extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);555657/**58* \brief Save all currently loaded Dollar Gesture templates59*60*61*/62extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *src);6364/**65* \brief Save a currently loaded Dollar Gesture template66*67*68*/69extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);707172/**73* \brief Load Dollar Gesture templates from a file74*75*76*/77extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);787980/* Ends C function definitions when using C++ */81#ifdef __cplusplus82/* *INDENT-OFF* */83}84/* *INDENT-ON* */85#endif86#include "close_code.h"8788#endif /* _SDL_gesture_h */8990/* vi: set ts=4 sw=4 expandtab: */919293