comparison src/events/SDL_touch_c.h @ 4676:99b4560b7aa1

Upgraded touchId/fingerId to long. Changed position variables to floats.
author jimtla
date Fri, 30 Jul 2010 23:18:35 +0400
parents 0350b634c044
children 31607094315c
comparison
equal deleted inserted replaced
4675:641c13b0ce5f 4676:99b4560b7aa1
32 32
33 /*Get the touch at an index */ 33 /*Get the touch at an index */
34 extern SDL_Touch *SDL_GetTouchIndex(int index); 34 extern SDL_Touch *SDL_GetTouchIndex(int index);
35 35
36 /* Get the touch with id = id */ 36 /* Get the touch with id = id */
37 extern SDL_Touch *SDL_GetTouch(int id); 37 extern SDL_Touch *SDL_GetTouch(long id);
38 38
39 /*Get the finger at an index */ 39 /*Get the finger at an index */
40 extern SDL_Finger *SDL_GetFingerIndex(SDL_Touch *touch, int index); 40 extern SDL_Finger *SDL_GetFingerIndex(SDL_Touch *touch, int index);
41 41
42 /* Get the finger with id = id */ 42 /* Get the finger with id = id */
43 extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,int id); 43 extern SDL_Finger *SDL_GetFinger(SDL_Touch *touch,long id);
44 44
45 45
46 /* Add a touch, possibly reattaching at a particular index (or -1), 46 /* Add a touch, possibly reattaching at a particular index (or -1),
47 returning the index of the touch, or -1 if there was an error. */ 47 returning the index of the touch, or -1 if there was an error. */
48 extern int SDL_AddTouch(const SDL_Touch * touch, char *name); 48 extern int SDL_AddTouch(const SDL_Touch * touch, char *name);
49 49
50 50
51 /* Remove a touch at an index, clearing the slot for later */ 51 /* Remove a touch at an index, clearing the slot for later */
52 extern void SDL_DelTouch(int index); 52 extern void SDL_DelTouch(long id);
53 53
54 /* Set the touch focus window */ 54 /* Set the touch focus window */
55 extern void SDL_SetTouchFocus(int id, SDL_Window * window); 55 extern void SDL_SetTouchFocus(long id, SDL_Window * window);
56 56
57 /* Send a touch motion event for a touch */ 57 /* Send a touch motion event for a touch */
58 extern int SDL_SendTouchMotion(int id, int fingerid, 58 extern int SDL_SendTouchMotion(long id, long fingerid,
59 int relative, int x, int y, int z); 59 int relative, float x, float y, float z);
60 60
61 /* Send a touch button event for a touch */ 61 /* Send a touch button event for a touch */
62 extern int SDL_SendTouchButton(int id, Uint8 state, Uint8 button); 62 extern int SDL_SendTouchButton(long id, Uint8 state, Uint8 button);
63 63
64 /* Shutdown the touch subsystem */ 64 /* Shutdown the touch subsystem */
65 extern void SDL_TouchQuit(void); 65 extern void SDL_TouchQuit(void);
66 66
67 /* Get the index of a touch device */ 67 /* Get the index of a touch device */
68 extern int SDL_GetTouchIndexId(int id); 68 extern int SDL_GetTouchIndexId(long id);
69
70
71
72 69
73 #endif /* _SDL_touch_c_h */ 70 #endif /* _SDL_touch_c_h */
74 71
75 /* vi: set ts=4 sw=4 expandtab: */ 72 /* vi: set ts=4 sw=4 expandtab: */