Mercurial > sdl-ios-xcode
comparison include/SDL_mouse.h @ 2284:545fbf461c5b
Fixed bug #464
Added X1/X2 button constants
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 06:09:25 +0000 |
parents | 313112f9ac5c |
children | 44e49d3fa6cf 64f346a83ed3 |
comparison
equal
deleted
inserted
replaced
2283:546f7c1eb755 | 2284:545fbf461c5b |
---|---|
205 */ | 205 */ |
206 #define SDL_BUTTON(X) (1 << ((X)-1)) | 206 #define SDL_BUTTON(X) (1 << ((X)-1)) |
207 #define SDL_BUTTON_LEFT 1 | 207 #define SDL_BUTTON_LEFT 1 |
208 #define SDL_BUTTON_MIDDLE 2 | 208 #define SDL_BUTTON_MIDDLE 2 |
209 #define SDL_BUTTON_RIGHT 3 | 209 #define SDL_BUTTON_RIGHT 3 |
210 #define SDL_BUTTON_X1 4 | |
211 #define SDL_BUTTON_X2 5 | |
210 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) | 212 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) |
211 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) | 213 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) |
212 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) | 214 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) |
215 #define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) | |
216 #define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) | |
213 | 217 |
214 | 218 |
215 /* Ends C function definitions when using C++ */ | 219 /* Ends C function definitions when using C++ */ |
216 #ifdef __cplusplus | 220 #ifdef __cplusplus |
217 /* *INDENT-OFF* */ | 221 /* *INDENT-OFF* */ |