Peter Williams wrote:
I have experienced trouble using GrMouseWarp under Win32(MinGW). Using it seems to position the cursor in the wrong place.
I have experienced the same. My impression is that it uses absolute coordinates and does not take the position of the GRX window into account.
My idea for a solution (-:in Pascal syntax):
W32GetCursorPos ( P ); x := P.x + x - MouseWhere.x; y := P.y + y - MouseWhere.y; GrMouseWarp ( x, y );
... with (MouseWhere.x, MouseWhere.y) being the current and (x, y) being the desired new position of the mouse cursor, as recorded by the program.
Peter