Fixed mouse_event bug - cursor was moved before new position was
calculated.
This commit is contained in:
parent
42a074dfcd
commit
b6afa6a970
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue