include/SDL_gesture.h
author jimtla
Sat, 31 Jul 2010 20:02:54 +0400
changeset 4678 f8431f66613d
parent 4664 317a151b79ad
child 4679 5ee96ba0c01e
permissions -rw-r--r--
Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /**
    24  *  \file SDL_gesture.h
    25  *  
    26  *  Include file for SDL gesture event handling.
    27  */
    28 
    29 #ifndef _SDL_gesture_h
    30 #define _SDL_gesture_h
    31 
    32 #include "SDL_stdinc.h"
    33 #include "SDL_error.h"
    34 #include "SDL_video.h"
    35 
    36 #include "SDL_touch.h"
    37 
    38 
    39 #include "begin_code.h"
    40 /* Set up for C function definitions, even when using C++ */
    41 #ifdef __cplusplus
    42 /* *INDENT-OFF* */
    43 extern "C" {
    44 /* *INDENT-ON* */
    45 #endif
    46 
    47   typedef Uint64 SDL_GestureID;
    48 
    49 /* Function prototypes */
    50 
    51 /**
    52  *  \brief Begin Recording a gesture on the specified touch, or all touches (-1)
    53  *
    54  *
    55  */
    56   extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
    57 
    58 
    59 /**
    60  *  \brief Save all currently loaded Dollar Gesture templates
    61  *
    62  *
    63  */
    64   extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *src);
    65 
    66 /**
    67  *  \brief Save a currently loaded Dollar Gesture template
    68  *
    69  *
    70  */
    71   extern DECLSPEC int 
    72   SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *src);
    73 
    74 
    75 /**
    76  *  \brief Load Dollar Gesture templates from a file
    77  *
    78  *
    79  */
    80   extern DECLSPEC 
    81   int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src);
    82 
    83 
    84 
    85 /* Ends C function definitions when using C++ */
    86 #ifdef __cplusplus
    87 /* *INDENT-OFF* */
    88 }
    89 /* *INDENT-ON* */
    90 #endif
    91 #include "close_code.h"
    92 
    93 #endif /* _SDL_gesture_h */
    94 
    95 /* vi: set ts=4 sw=4 expandtab: */