Mercurial > sdl-ios-xcode
diff include/SDL_touchscreen.h @ 2675:5e4274591163 gsoc2008_nds
Started minor changes to the coordinate system used by the touchscreen API as discussed on the mailing list. Also beginning to separate the 'Pressed' and 'Moved' event handling on the private level.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Sun, 29 Jun 2008 21:32:31 +0000 |
parents | f1d07ba2e275 |
children |
line wrap: on
line diff
--- a/include/SDL_touchscreen.h Mon Jun 23 11:55:26 2008 +0000 +++ b/include/SDL_touchscreen.h Sun Jun 29 21:32:31 2008 +0000 @@ -107,11 +107,12 @@ /* * Get the current X,Y position of the indicated point on the touchscreen. * - * If not NULL, *x is set to an integer in the range [-32768,32767] - * where -32768 is the left edge, 0 is center, 32767 is right edge. + * If not NULL, *x is set to an unsigned integer in the range [1,65535] + * where 1 is the left edge, 32768 is roughly center, 65535 is right edge. * Similarly with *y, for the top, center, and bottom, respectively. - * The returned value is an unsigned integer in the range [1,32767] - * that represents the pressure of the touch. + * The returned value is an unsigned integer in the range [1,65535], + * which represents the pressure of the touch. This should be 32767 in + * non-pressure-sensitive driver implementations. * If not being touched, 0 is returned and *x and *y are unmodified. * * The touch point indices start at index 0. @@ -123,8 +124,8 @@ * * On error, -1 is returned. */ -extern DECLSPEC int SDLCALL SDL_TouchscreenGetXY(SDL_Touchscreen *touchscreen, - int point, int *x, int *y); +extern DECLSPEC Uint16 SDLCALL SDL_TouchscreenGetXY(SDL_Touchscreen *touchscreen, + int point, Uint16 *x, Uint16 *y); /* * Get the number of currently touched points on a touchscreen.