Mercurial > sdl-ios-xcode
comparison include/SDL_mouse.h @ 3760:64f346a83ed3 gsoc2008_manymouse
http://wilku.ravenlord.ws/doku.php?id=documentation for information how things work. Currently implemented: detecting many pointing devices and pressure detection. Still a bug. Each program has to be comipled with a flag -lXi
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Fri, 06 Jun 2008 15:23:29 +0000 |
parents | 545fbf461c5b |
children | 2970fcfbdd54 |
comparison
equal
deleted
inserted
replaced
3759:064c178558b7 | 3760:64f346a83ed3 |
---|---|
201 /* Used as a mask when testing buttons in buttonstate | 201 /* Used as a mask when testing buttons in buttonstate |
202 Button 1: Left mouse button | 202 Button 1: Left mouse button |
203 Button 2: Middle mouse button | 203 Button 2: Middle mouse button |
204 Button 3: Right mouse button | 204 Button 3: Right mouse button |
205 */ | 205 */ |
206 | |
207 extern DECLSPEC int SDLCALL SDL_GetNumOfMice(void); | |
208 | |
209 extern DECLSPEC char* SDLCALL SDL_GetMouseName(int index); | |
210 | |
206 #define SDL_BUTTON(X) (1 << ((X)-1)) | 211 #define SDL_BUTTON(X) (1 << ((X)-1)) |
207 #define SDL_BUTTON_LEFT 1 | 212 #define SDL_BUTTON_LEFT 1 |
208 #define SDL_BUTTON_MIDDLE 2 | 213 #define SDL_BUTTON_MIDDLE 2 |
209 #define SDL_BUTTON_RIGHT 3 | 214 #define SDL_BUTTON_RIGHT 3 |
210 #define SDL_BUTTON_X1 4 | 215 #define SDL_BUTTON_X1 4 |