diff options
author | Sam Lantinga <slouken@libsdl.org> | 2002-08-19 18:09:44 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2002-08-19 18:09:44 +0000 |
commit | aa3ff02a85ea5c3ac1e081105b2dc72bdb69bc62 (patch) | |
tree | a27f4259aaed93f39002f195953bb3abed4e4831 /include/SDL_mouse.h | |
parent | a05e8ec098b652026c4d88915949e268267bc015 (diff) |
Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40452
Diffstat (limited to 'include/SDL_mouse.h')
-rw-r--r-- | include/SDL_mouse.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/SDL_mouse.h b/include/SDL_mouse.h index 101bff03..45795f95 100644 --- a/include/SDL_mouse.h +++ b/include/SDL_mouse.h @@ -117,11 +117,15 @@ extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle); Button 1: Left mouse button Button 2: Middle mouse button Button 3: Right mouse button + Button 4: Mouse wheel up (may also be a real button) + Button 5: Mouse wheel down (may also be a real button) */ #define SDL_BUTTON(X) (SDL_PRESSED<<(X-1)) #define SDL_BUTTON_LEFT 1 #define SDL_BUTTON_MIDDLE 2 #define SDL_BUTTON_RIGHT 3 +#define SDL_BUTTON_WHEELUP 4 +#define SDL_BUTTON_WHEELDOWN 5 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) |