Mercurial > sdl-ios-xcode
comparison include/SDL_mouse.h @ 1724:6c63fc2bd986 SDL-1.3
Proof of concept done - Win32 GDI implementation mostly complete.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 06 Jul 2006 07:17:11 +0000 |
parents | 5daa04d862f1 |
children |
comparison
equal
deleted
inserted
replaced
1723:4bdbb9b2bd0a | 1724:6c63fc2bd986 |
---|---|
200 | 200 |
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 Button 4: Mouse wheel up (may also be a real button) | |
206 Button 5: Mouse wheel down (may also be a real button) | |
207 */ | 205 */ |
208 #define SDL_BUTTON(X) (1 << ((X)-1)) | 206 #define SDL_BUTTON(X) (1 << ((X)-1)) |
209 #define SDL_BUTTON_LEFT 1 | 207 #define SDL_BUTTON_LEFT 1 |
210 #define SDL_BUTTON_MIDDLE 2 | 208 #define SDL_BUTTON_MIDDLE 2 |
211 #define SDL_BUTTON_RIGHT 3 | 209 #define SDL_BUTTON_RIGHT 3 |
212 #define SDL_BUTTON_WHEELUP 4 | |
213 #define SDL_BUTTON_WHEELDOWN 5 | |
214 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) | 210 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) |
215 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) | 211 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) |
216 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) | 212 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) |
217 | 213 |
218 | 214 |