comparison src/events/SDL_mouse_c.h @ 3774:8b5b67000dc0 gsoc2008_manymouse

Cursor support added
author Szymon Wilczek <kazeuser@gmail.com>
date Tue, 05 Aug 2008 14:10:11 +0000
parents 3b5691f85c0d
children a9c2a7071874
comparison
equal deleted inserted replaced
3773:3b5691f85c0d 3774:8b5b67000dc0
60 int pressure; 60 int pressure;
61 int pressure_max; 61 int pressure_max;
62 int pressure_min; 62 int pressure_min;
63 int tilt;/*for future use*/ 63 int tilt;/*for future use*/
64 int rotation;/*for future use*/ 64 int rotation;/*for future use*/
65 int total_ends;
66 int current_end;
65 67
66 /* Data common to all mice */ 68 /* Data common to all mice */
67 SDL_WindowID focus; 69 SDL_WindowID focus;
68 int which; 70 int which;
69 int x; 71 int x;
94 extern SDL_Mouse *SDL_GetMouse(int index); 96 extern SDL_Mouse *SDL_GetMouse(int index);
95 97
96 /* Add a mouse, possibly reattaching at a particular index (or -1), 98 /* Add a mouse, possibly reattaching at a particular index (or -1),
97 returning the index of the mouse, or -1 if there was an error. 99 returning the index of the mouse, or -1 if there was an error.
98 */ 100 */
99 extern int SDL_AddMouse(const SDL_Mouse * mouse, int index, char* name, int pressure_max, int pressure_min); 101 extern int SDL_AddMouse(const SDL_Mouse * mouse, int index, char* name,\
102 int pressure_max, int pressure_min, int ends);
100 103
101 /* Remove a mouse at an index, clearing the slot for later */ 104 /* Remove a mouse at an index, clearing the slot for later */
102 extern void SDL_DelMouse(int index); 105 extern void SDL_DelMouse(int index);
103 106
104 /* Clear the button state of a mouse at an index */ 107 /* Clear the button state of a mouse at an index */
127 130
128 extern char* SDL_GetMouseName(int index); 131 extern char* SDL_GetMouseName(int index);
129 132
130 extern void SDL_UpdateCoordinates(int x, int y); 133 extern void SDL_UpdateCoordinates(int x, int y);
131 134
135 extern void SDL_ChangeEnd(int id, int end);
136
137 extern int SDL_GetCursorsNumber(int index);
138
132 #endif /* _SDL_mouse_c_h */ 139 #endif /* _SDL_mouse_c_h */
133 140
134 /* vi: set ts=4 sw=4 expandtab: */ 141 /* vi: set ts=4 sw=4 expandtab: */
135 142