include/SDL_mouse.h
changeset 1046 f09d5edfc7a3
parent 911 04a403e4ccf5
child 1312 c9b51268668f
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