Upgraded touchId/fingerId to long. Changed position variables to floats.
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++ */
51 float last_x, last_y,last_pressure; /* the last reported coordinates */
56 typedef struct SDL_Touch SDL_Touch;
57 typedef struct SDL_Finger SDL_Finger;
62 /* Free the touch when it's time */
63 void (*FreeTouch) (SDL_Touch * touch);
65 /* data common for tablets */
66 float pressure_max, pressure_min;
69 float xres,yres,pressureres;
70 float tilt; /* for future use */
71 float rotation; /* for future use */
73 /* Data common to all touch */
79 SDL_bool relative_mode;
80 SDL_bool flush_motion;
91 /* Function prototypes */
94 * \brief Get the touch object at the given id.
98 extern DECLSPEC SDL_Touch* SDLCALL SDL_GetTouch(long id);
103 * \brief Get the finger object of the given touch, at the given id.
107 extern DECLSPEC SDL_Finger* SDLCALL SDL_GetFinger(SDL_Touch *touch, long id);
109 /* Ends C function definitions when using C++ */
115 #include "close_code.h"
117 #endif /* _SDL_mouse_h */
119 /* vi: set ts=4 sw=4 expandtab: */