SDL standard library
Embed:
(wiki syntax)
Show/hide line numbers
SDL_gesture.h
Go to the documentation of this file.
00001 /* 00002 Simple DirectMedia Layer 00003 Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> 00004 00005 This software is provided 'as-is', without any express or implied 00006 warranty. In no event will the authors be held liable for any damages 00007 arising from the use of this software. 00008 00009 Permission is granted to anyone to use this software for any purpose, 00010 including commercial applications, and to alter it and redistribute it 00011 freely, subject to the following restrictions: 00012 00013 1. The origin of this software must not be misrepresented; you must not 00014 claim that you wrote the original software. If you use this software 00015 in a product, an acknowledgment in the product documentation would be 00016 appreciated but is not required. 00017 2. Altered source versions must be plainly marked as such, and must not be 00018 misrepresented as being the original software. 00019 3. This notice may not be removed or altered from any source distribution. 00020 */ 00021 00022 /** 00023 * \file SDL_gesture.h 00024 * 00025 * Include file for SDL gesture event handling. 00026 */ 00027 00028 #ifndef _SDL_gesture_h 00029 #define _SDL_gesture_h 00030 00031 #include "SDL_stdinc.h" 00032 #include "SDL_error.h" 00033 #include "SDL_video.h" 00034 00035 #include "SDL_touch.h" 00036 00037 00038 #include "begin_code.h" 00039 /* Set up for C function definitions, even when using C++ */ 00040 #ifdef __cplusplus 00041 extern "C" { 00042 #endif 00043 00044 typedef Sint64 SDL_GestureID; 00045 00046 /* Function prototypes */ 00047 00048 /** 00049 * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 00050 * 00051 * 00052 */ 00053 extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 00054 00055 00056 /** 00057 * \brief Save all currently loaded Dollar Gesture templates 00058 * 00059 * 00060 */ 00061 extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 00062 00063 /** 00064 * \brief Save a currently loaded Dollar Gesture template 00065 * 00066 * 00067 */ 00068 extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 00069 00070 00071 /** 00072 * \brief Load Dollar Gesture templates from a file 00073 * 00074 * 00075 */ 00076 extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 00077 00078 00079 /* Ends C function definitions when using C++ */ 00080 #ifdef __cplusplus 00081 } 00082 #endif 00083 #include "close_code.h" 00084 00085 #endif /* _SDL_gesture_h */ 00086 00087 /* vi: set ts=4 sw=4 expandtab: */
Generated on Tue Jul 12 2022 13:56:24 by 1.7.2