include/SDL_mouse.h
changeset 451 24edec3cafe4
parent 337 9154ec9ca3d2
child 769 b8d311d90021
equal deleted inserted replaced
450:8a43e0cbf02f 451:24edec3cafe4
   115 
   115 
   116 /* Used as a mask when testing buttons in buttonstate
   116 /* Used as a mask when testing buttons in buttonstate
   117    Button 1:	Left mouse button
   117    Button 1:	Left mouse button
   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)
       
   121    Button 5:	Mouse wheel down (may also be a real button)
   120  */
   122  */
   121 #define SDL_BUTTON(X)		(SDL_PRESSED<<(X-1))
   123 #define SDL_BUTTON(X)		(SDL_PRESSED<<(X-1))
   122 #define SDL_BUTTON_LEFT		1
   124 #define SDL_BUTTON_LEFT		1
   123 #define SDL_BUTTON_MIDDLE	2
   125 #define SDL_BUTTON_MIDDLE	2
   124 #define SDL_BUTTON_RIGHT	3
   126 #define SDL_BUTTON_RIGHT	3
       
   127 #define SDL_BUTTON_WHEELUP	4
       
   128 #define SDL_BUTTON_WHEELDOWN	5
   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