src/video/wincommon/SDL_sysevents.c
changeset 61 994ed1d668e7
parent 36 13ee9f4834ea
child 145 29a638dc26db
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Mon Jun 11 22:54:34 2001 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Sat Jun 16 01:01:42 2001 +0000
     1.3 @@ -321,6 +321,34 @@
     1.4  		}
     1.5  		return(0);
     1.6  
     1.7 +
     1.8 +#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
     1.9 +		case WM_MOUSEWHEEL: 
    1.10 +			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
    1.11 +				Sint16 x, y;
    1.12 +				Uint8 button = 0;
    1.13 +				int move = (short)HIWORD(wParam);
    1.14 +				if(move > 0)
    1.15 +					button = 4;
    1.16 +				else if(move < 0)
    1.17 +					button = 5;
    1.18 +				if(button)
    1.19 +				{
    1.20 +					if ( mouse_relative ) {
    1.21 +					/*	RJR: March 28, 2000
    1.22 +						report internal mouse position if in relative mode */
    1.23 +						x = 0; y = 0;
    1.24 +					} else {
    1.25 +						x = (Sint16)LOWORD(lParam);
    1.26 +						y = (Sint16)HIWORD(lParam);
    1.27 +					}
    1.28 +					posted = SDL_PrivateMouseButton(
    1.29 +								SDL_PRESSED, button, x, y);
    1.30 +				}
    1.31 +			}
    1.32 +			return(0);
    1.33 +#endif
    1.34 +
    1.35  #ifdef WM_GETMINMAXINFO
    1.36  		/* This message is sent as a way for us to "check" the values
    1.37  		 * of a position change.  If we don't like it, we can adjust