Hi all,
I have the following feature request: a PW library function that sets
the mouse cursor to a specific position within the current window:
void pwSetCursorPosition ( int x, int y ) ;
This function can be used to calculate relative mouse movements.
Possible X11 implementation (didn't test it):
void pwSetCursorPosition ( int x, int y )
{
XWarpPointer ( currDisplay, currHandle, currHandle, 0, 0, 0, 0, x, y ) ;
XFlush ( currDisplay ) ;
}
Note that this will generate a mouse position event.
Regards, Guido
|