Mercurial > sdl-ios-xcode
comparison include/SDL_mouse.h @ 1046:f09d5edfc7a3
Added some parentheses for a little more macro safety. Recommended by Petri
Kero, here: http://www.devolution.com/pipermail/sdl/2005-March/067630.html
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 17 Apr 2005 10:16:30 +0000 |
parents | 04a403e4ccf5 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1045:63b8e93a3a52 | 1046:f09d5edfc7a3 |
---|---|
118 Button 2: Middle mouse button | 118 Button 2: Middle mouse button |
119 Button 3: Right mouse button | 119 Button 3: Right mouse button |
120 Button 4: Mouse wheel up (may also be a real button) | 120 Button 4: Mouse wheel up (may also be a real button) |
121 Button 5: Mouse wheel down (may also be a real button) | 121 Button 5: Mouse wheel down (may also be a real button) |
122 */ | 122 */ |
123 #define SDL_BUTTON(X) (SDL_PRESSED<<(X-1)) | 123 #define SDL_BUTTON(X) (SDL_PRESSED << ((X)-1)) |
124 #define SDL_BUTTON_LEFT 1 | 124 #define SDL_BUTTON_LEFT 1 |
125 #define SDL_BUTTON_MIDDLE 2 | 125 #define SDL_BUTTON_MIDDLE 2 |
126 #define SDL_BUTTON_RIGHT 3 | 126 #define SDL_BUTTON_RIGHT 3 |
127 #define SDL_BUTTON_WHEELUP 4 | 127 #define SDL_BUTTON_WHEELUP 4 |
128 #define SDL_BUTTON_WHEELDOWN 5 | 128 #define SDL_BUTTON_WHEELDOWN 5 |