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 mouse 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++ */
49 int z; /* for future use */
52 int last_x, last_y,last_pressure; /* the last reported coordinates */
57 typedef struct SDL_Touch SDL_Touch;
58 typedef struct SDL_Finger SDL_Finger;
63 /* Free the touch when it's time */
64 void (*FreeTouch) (SDL_Touch * touch);
66 /* data common for tablets */
67 int pressure_max, pressure_min;
70 int xres,yres,pressureres;
71 int tilt; /* for future use */
72 int rotation; /* for future use */
74 /* Data common to all touch */
80 SDL_bool relative_mode;
81 SDL_bool flush_motion;
92 /* Function prototypes */
95 * \brief Get the touch object at the given id.
99 extern DECLSPEC SDL_Touch* SDLCALL SDL_GetTouch(int id);
104 * \brief Get the finger object of the given touch, at the given id.
108 extern DECLSPEC SDL_Finger* SDLCALL SDL_GetFinger(SDL_Touch *touch, int id);
110 /* Ends C function definitions when using C++ */
116 #include "close_code.h"
118 #endif /* _SDL_mouse_h */
120 /* vi: set ts=4 sw=4 expandtab: */