[Plib-users] Feature Request: pwSetCursorPosition
Brought to you by:
sjbaker
From: Guido <gu...@us...> - 2005-07-12 21:39:41
|
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 |