Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40452
This commit is contained in:
Sam Lantinga 2002-08-19 18:09:44 +00:00
parent a05e8ec098
commit aa3ff02a85
4 changed files with 12 additions and 2 deletions

View file

@ -370,9 +370,9 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
if ( move ) {
Uint8 button;
if ( move > 0 )
button = 4;
button = SDL_BUTTON_WHEELUP;
else
button = 5;
button = SDL_BUTTON_WHEELDOWN;
posted = SDL_PrivateMouseButton(
SDL_PRESSED, button, 0, 0);
posted |= SDL_PrivateMouseButton(