From b6afa6a9706c173ac8d21f8f39568ded454b25e9 Mon Sep 17 00:00:00 2001 From: Andriy Palamarchuk Date: Wed, 17 Oct 2001 19:39:55 +0000 Subject: [PATCH] Fixed mouse_event bug - cursor was moved before new position was calculated. --- windows/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/input.c b/windows/input.c index 1a173b440c1..73cd69a193b 100644 --- a/windows/input.c +++ b/windows/input.c @@ -362,12 +362,12 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy, } else { - if ( dwFlags & MOUSEEVENTF_MOVE ) /* we have to actually move the cursor */ - SetCursorPos( PosX, PosY ); - input.u.mi.time = GetCurrentTime(); input.u.mi.dwExtraInfo = dwExtraInfo; SendInput( 1, &input, sizeof(input) ); + + if ( dwFlags & MOUSEEVENTF_MOVE ) /* we have to actually move the cursor */ + SetCursorPos( PosX, PosY ); } }