From: Eric Sokolowsky (esok++at++cosimo.gsfc.nasa.gov)
Date: 04/12/2001 07:37:50
On Thu, 12 Apr 2001, Gernot Ziegler wrote:
> Hej guys !
>
> (I have already asked Don Burns, but he is on vacation, maybe someone else
> knows :-) ) :
> Is there any way to affect the mouse pointers position from inside
> Performer ? (something in the style of writing mouse->xpos and mouse->ypos
> back, or switching to some kind of fullscreen-mode)
>
> If you only know an opensourced Performer application that does that, no
> problem - I can dig into source ;)
>
> Thanks in advance !
There is an X function called XWarpPointer that should do what you want.
On my machine (SGI Irix) there is a man page for it (part of which I include
below) so hopefully this helps you.
SYNTAX
XWarpPointer(display, src_w, dest_w, src_x, src_y,
src_width, src_height, dest_x,
dest_y)
Display *display;
Window src_w, dest_w;
int src_x, src_y;
unsigned int src_width, src_height;
int dest_x, dest_y;
ARGUMENTS
dest_w Specifies the destination window or None.
dest_x
dest_y Specify the x and y coordinates within the
destination window.
display Specifies the connection to the X server.
src_x
src_y
src_width
src_height
Specify a rectangle in the source window.
src_w Specifies the source window or None.
This archive was generated by hypermail 2b29 : Thu Apr 12 2001 - 07:37:57 PDT