src/video/wincommon/SDL_sysevents.c
changeset 451 24edec3cafe4
parent 447 16d0449891b8
child 453 a6fa62b1be09
equal deleted inserted replaced
450:8a43e0cbf02f 451:24edec3cafe4
   368 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
   368 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
   369 				int move = (short)HIWORD(wParam);
   369 				int move = (short)HIWORD(wParam);
   370 				if ( move ) {
   370 				if ( move ) {
   371 					Uint8 button;
   371 					Uint8 button;
   372 					if ( move > 0 )
   372 					if ( move > 0 )
   373 						button = 4;
   373 						button = SDL_BUTTON_WHEELUP;
   374 					else
   374 					else
   375 						button = 5;
   375 						button = SDL_BUTTON_WHEELDOWN;
   376 					posted = SDL_PrivateMouseButton(
   376 					posted = SDL_PrivateMouseButton(
   377 						SDL_PRESSED, button, 0, 0);
   377 						SDL_PRESSED, button, 0, 0);
   378 					posted |= SDL_PrivateMouseButton(
   378 					posted |= SDL_PrivateMouseButton(
   379 						SDL_RELEASED, button, 0, 0);
   379 						SDL_RELEASED, button, 0, 0);
   380 				}
   380 				}