changeset 162:0a26c92c2385

Fixed mouse wheel motion position on Windows
author Sam Lantinga <slouken@libsdl.org>
date Fri, 31 Aug 2001 21:21:24 +0000
parents eb6b76a95f2d
children 2dc7252dc53e
files src/video/wincommon/SDL_sysevents.c
diffstat 1 files changed, 7 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c	Fri Aug 31 21:08:30 2001 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Fri Aug 31 21:21:24 2001 +0000
@@ -335,24 +335,15 @@
 		case WM_MOUSEWHEEL: 
 			if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
 				Sint16 x, y;
-				Uint8 button = 0;
 				int move = (short)HIWORD(wParam);
-				if(move > 0)
-					button = 4;
-				else if(move < 0)
-					button = 5;
-				if(button)
-				{
-					if ( mouse_relative ) {
-					/*	RJR: March 28, 2000
-						report internal mouse position if in relative mode */
-						x = 0; y = 0;
-					} else {
-						x = (Sint16)LOWORD(lParam);
-						y = (Sint16)HIWORD(lParam);
-					}
+				if ( move ) {
+					Uint8 button;
+					if ( move > 0 )
+						button = 4;
+					else
+						button = 5;
 					posted = SDL_PrivateMouseButton(
-								SDL_PRESSED, button, x, y);
+						SDL_PRESSED, button, 0, 0);
 				}
 			}
 			return(0);