1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/include/SDL_gesture.h Sun Jul 11 01:15:39 2010 -0400
1.3 @@ -0,0 +1,90 @@
1.4 +/*
1.5 + SDL - Simple DirectMedia Layer
1.6 + Copyright (C) 1997-2010 Sam Lantinga
1.7 +
1.8 + This library is free software; you can redistribute it and/or
1.9 + modify it under the terms of the GNU Lesser General Public
1.10 + License as published by the Free Software Foundation; either
1.11 + version 2.1 of the License, or (at your option) any later version.
1.12 +
1.13 + This library is distributed in the hope that it will be useful,
1.14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.16 + Lesser General Public License for more details.
1.17 +
1.18 + You should have received a copy of the GNU Lesser General Public
1.19 + License along with this library; if not, write to the Free Software
1.20 + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1.21 +
1.22 + Sam Lantinga
1.23 + slouken@libsdl.org
1.24 +*/
1.25 +
1.26 +/**
1.27 + * \file SDL_gesture.h
1.28 + *
1.29 + * Include file for SDL gesture event handling.
1.30 + */
1.31 +
1.32 +#ifndef _SDL_gesture_h
1.33 +#define _SDL_gesture_h
1.34 +
1.35 +#include "SDL_stdinc.h"
1.36 +#include "SDL_error.h"
1.37 +#include "SDL_video.h"
1.38 +
1.39 +#include "begin_code.h"
1.40 +/* Set up for C function definitions, even when using C++ */
1.41 +#ifdef __cplusplus
1.42 +/* *INDENT-OFF* */
1.43 +extern "C" {
1.44 +/* *INDENT-ON* */
1.45 +#endif
1.46 +
1.47 +
1.48 +/* Function prototypes */
1.49 +
1.50 +/**
1.51 + * \brief Begin Recording a gesture on the specified touch, or all touches (-1)
1.52 + *
1.53 + *
1.54 + */
1.55 + extern DECLSPEC int SDLCALL SDL_RecordGesture(int touchId);
1.56 +
1.57 +
1.58 +/**
1.59 + * \brief Save all currently loaded Dollar Gesture templates
1.60 + *
1.61 + *
1.62 + */
1.63 + extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(FILE *fp);
1.64 +
1.65 +/**
1.66 + * \brief Save a currently loaded Dollar Gesture template
1.67 + *
1.68 + *
1.69 + */
1.70 + extern DECLSPEC int
1.71 + SDLCALL SDL_SaveDollarTemplate(unsigned long gestureId,FILE *fp);
1.72 +
1.73 +
1.74 +/**
1.75 + * \brief Load Dollar Gesture templates from a file
1.76 + *
1.77 + *
1.78 + */
1.79 + extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(int touchId, FILE *fp);
1.80 +
1.81 +
1.82 +
1.83 +/* Ends C function definitions when using C++ */
1.84 +#ifdef __cplusplus
1.85 +/* *INDENT-OFF* */
1.86 +}
1.87 +/* *INDENT-ON* */
1.88 +#endif
1.89 +#include "close_code.h"
1.90 +
1.91 +#endif /* _SDL_gesture_h */
1.92 +
1.93 +/* vi: set ts=4 sw=4 expandtab: */