src/video/windx5/SDL_dx5events.c
changeset 332 3d6dd1b7b7ba
parent 327 13fc64213765
child 453 a6fa62b1be09
equal deleted inserted replaced
331:e9278438fb3b 332:3d6dd1b7b7ba
   390 							0, 1, xrel, yrel);
   390 							0, 1, xrel, yrel);
   391 					xrel = 0;
   391 					xrel = 0;
   392 					yrel = 0;
   392 					yrel = 0;
   393 				}
   393 				}
   394 				if((int)ptrbuf[i].dwData > 0)
   394 				if((int)ptrbuf[i].dwData > 0)
       
   395 					button = 4;
       
   396 				else
       
   397 					button = 5;
   395 					posted = SDL_PrivateMouseButton(
   398 					posted = SDL_PrivateMouseButton(
   396 							SDL_PRESSED, 4, 0, 0);
   399 						SDL_PRESSED, button, 0, 0);
   397 				else if((int)ptrbuf[i].dwData < 0)
   400 				posted |= SDL_PrivateMouseButton(
   398 					posted = SDL_PrivateMouseButton(
   401 						SDL_RELEASED, button, 0, 0);
   399 							SDL_PRESSED, 5, 0, 0);
       
   400 				break;
   402 				break;
   401 			case DIMOFS_BUTTON0:
   403 			case DIMOFS_BUTTON0:
   402 			case DIMOFS_BUTTON1:
   404 			case DIMOFS_BUTTON1:
   403 			case DIMOFS_BUTTON2:
   405 			case DIMOFS_BUTTON2:
   404 			case DIMOFS_BUTTON3:
   406 			case DIMOFS_BUTTON3: