Fixed mouse_event bug - cursor was moved before new position was

calculated.
This commit is contained in:
Andriy Palamarchuk 2001-10-17 19:39:55 +00:00 committed by Alexandre Julliard
parent 42a074dfcd
commit b6afa6a970
1 changed files with 3 additions and 3 deletions

View File

@ -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 );
}
}