# HG changeset patch # User Sam Lantinga # Date 1018288230 0 # Node ID 3d6dd1b7b7bab66caf8a20b21ef7991e340dac44 # Parent e9278438fb3b757cf7b10bd213161d578c352171 Mouse wheel fix patch. diff -r e9278438fb3b -r 3d6dd1b7b7ba src/video/wincommon/SDL_sysevents.c --- a/src/video/wincommon/SDL_sysevents.c Thu Apr 04 18:06:33 2002 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Mon Apr 08 17:50:30 2002 +0000 @@ -370,6 +370,8 @@ button = 5; posted = SDL_PrivateMouseButton( SDL_PRESSED, button, 0, 0); + posted |= SDL_PrivateMouseButton( + SDL_RELEASED, button, 0, 0); } } return(0); diff -r e9278438fb3b -r 3d6dd1b7b7ba src/video/windx5/SDL_dx5events.c --- a/src/video/windx5/SDL_dx5events.c Thu Apr 04 18:06:33 2002 +0000 +++ b/src/video/windx5/SDL_dx5events.c Mon Apr 08 17:50:30 2002 +0000 @@ -392,11 +392,13 @@ yrel = 0; } if((int)ptrbuf[i].dwData > 0) + button = 4; + else + button = 5; posted = SDL_PrivateMouseButton( - SDL_PRESSED, 4, 0, 0); - else if((int)ptrbuf[i].dwData < 0) - posted = SDL_PrivateMouseButton( - SDL_PRESSED, 5, 0, 0); + SDL_PRESSED, button, 0, 0); + posted |= SDL_PrivateMouseButton( + SDL_RELEASED, button, 0, 0); break; case DIMOFS_BUTTON0: case DIMOFS_BUTTON1: