src/video/windx5/SDL_dx5events.c
changeset 332 3d6dd1b7b7ba
parent 327 13fc64213765
child 453 a6fa62b1be09
     1.1 --- a/src/video/windx5/SDL_dx5events.c	Thu Apr 04 18:06:33 2002 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5events.c	Mon Apr 08 17:50:30 2002 +0000
     1.3 @@ -392,11 +392,13 @@
     1.4  					yrel = 0;
     1.5  				}
     1.6  				if((int)ptrbuf[i].dwData > 0)
     1.7 +					button = 4;
     1.8 +				else
     1.9 +					button = 5;
    1.10  					posted = SDL_PrivateMouseButton(
    1.11 -							SDL_PRESSED, 4, 0, 0);
    1.12 -				else if((int)ptrbuf[i].dwData < 0)
    1.13 -					posted = SDL_PrivateMouseButton(
    1.14 -							SDL_PRESSED, 5, 0, 0);
    1.15 +						SDL_PRESSED, button, 0, 0);
    1.16 +				posted |= SDL_PrivateMouseButton(
    1.17 +						SDL_RELEASED, button, 0, 0);
    1.18  				break;
    1.19  			case DIMOFS_BUTTON0:
    1.20  			case DIMOFS_BUTTON1: