comparison include/SDL_touch.h @ 4649:35a80b0791aa

Addition of VC project for touchTest.c
author jimtla
date Sat, 05 Jun 2010 01:58:56 -0400
parents eea1bf53effa
children 4c94f2023d62
comparison
equal deleted inserted replaced
4648:0350b634c044 4649:35a80b0791aa
39 /* *INDENT-OFF* */ 39 /* *INDENT-OFF* */
40 extern "C" { 40 extern "C" {
41 /* *INDENT-ON* */ 41 /* *INDENT-ON* */
42 #endif 42 #endif
43 43
44 typedef struct SDL_Touch SDL_Touch;
45 typedef struct SDL_Finger SDL_Finger;
46 44
47 struct SDL_Finger { 45 struct SDL_Finger {
48 int id; 46 int id;
49 int x; 47 int x;
50 int y; 48 int y;
53 int ydelta; 51 int ydelta;
54 int last_x, last_y,last_pressure; /* the last reported coordinates */ 52 int last_x, last_y,last_pressure; /* the last reported coordinates */
55 int pressure; 53 int pressure;
56 }; 54 };
57 55
56 typedef struct SDL_Touch SDL_Touch;
57 typedef struct SDL_Finger SDL_Finger;
58 58
59 struct SDL_Touch 59
60 { 60 struct SDL_Touch {
61 61
62 /* Free the touch when it's time */ 62 /* Free the touch when it's time */
63 void (*FreeTouch) (SDL_Touch * touch); 63 void (*FreeTouch) (SDL_Touch * touch);
64 64
65 /* data common for tablets */ 65 /* data common for tablets */
83 int max_fingers; 83 int max_fingers;
84 SDL_Finger** fingers; 84 SDL_Finger** fingers;
85 85
86 void *driverdata; 86 void *driverdata;
87 }; 87 };
88
88 89
89 90
90 /* Function prototypes */ 91 /* Function prototypes */
91 92
92 /** 93 /**