Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2010 Sam Lantinga
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.
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.
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
26 * Include file for SDL touch event handling.
32 #include "SDL_stdinc.h"
33 #include "SDL_error.h"
34 #include "SDL_video.h"
36 #include "begin_code.h"
37 /* Set up for C function definitions, even when using C++ */
45 typedef Uint64 SDL_TouchID;
46 typedef Uint64 SDL_FingerID;
55 Uint16 last_x, last_y,last_pressure; /* the last reported coordinates */
60 typedef struct SDL_Touch SDL_Touch;
61 typedef struct SDL_Finger SDL_Finger;
66 /* Free the touch when it's time */
67 void (*FreeTouch) (SDL_Touch * touch);
69 /* data common for tablets */
70 float pressure_max, pressure_min;
73 Uint16 xres,yres,pressureres;
74 float native_xres,native_yres,native_pressureres;
75 float tilt; /* for future use */
76 float rotation; /* for future use */
78 /* Data common to all touch */
84 SDL_bool relative_mode;
85 SDL_bool flush_motion;
96 /* Function prototypes */
99 * \brief Get the touch object at the given id.
103 extern DECLSPEC SDL_Touch* SDLCALL SDL_GetTouch(SDL_TouchID id);
108 * \brief Get the finger object of the given touch, at the given id.
113 DECLSPEC SDL_Finger* SDLCALL SDL_GetFinger(SDL_Touch *touch, SDL_FingerID id);
115 /* Ends C function definitions when using C++ */
121 #include "close_code.h"
123 #endif /* _SDL_mouse_h */
125 /* vi: set ts=4 sw=4 expandtab: */