comparison include/SDL_mouse.h @ 4009:1146681dbb74 SDL-1.2

Fixed bug #382 Added horizontal scrolling support: SDL_BUTTON_WHEELLEFT (6) and SDL_BUTTON_WHEELRIGHT (7)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 06 Jul 2007 09:15:43 +0000
parents c71e05b4dc2e
children f5794774970d
comparison
equal deleted inserted replaced
4008:a19fd8bcdd52 4009:1146681dbb74
113 Button 1: Left mouse button 113 Button 1: Left mouse button
114 Button 2: Middle mouse button 114 Button 2: Middle mouse button
115 Button 3: Right mouse button 115 Button 3: Right mouse button
116 Button 4: Mouse wheel up (may also be a real button) 116 Button 4: Mouse wheel up (may also be a real button)
117 Button 5: Mouse wheel down (may also be a real button) 117 Button 5: Mouse wheel down (may also be a real button)
118 Button 6: Mouse wheel left (may also be a real button)
119 Button 7: Mouse wheel right (may also be a real button)
118 */ 120 */
119 #define SDL_BUTTON(X) (1 << ((X)-1)) 121 #define SDL_BUTTON(X) (1 << ((X)-1))
120 #define SDL_BUTTON_LEFT 1 122 #define SDL_BUTTON_LEFT 1
121 #define SDL_BUTTON_MIDDLE 2 123 #define SDL_BUTTON_MIDDLE 2
122 #define SDL_BUTTON_RIGHT 3 124 #define SDL_BUTTON_RIGHT 3
123 #define SDL_BUTTON_WHEELUP 4 125 #define SDL_BUTTON_WHEELUP 4
124 #define SDL_BUTTON_WHEELDOWN 5 126 #define SDL_BUTTON_WHEELDOWN 5
127 #define SDL_BUTTON_WHEELLEFT 6
128 #define SDL_BUTTON_WHEELRIGHT 7
125 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) 129 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
126 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) 130 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
127 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) 131 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
128 132
129 133