next up previous contents
Next: Keyboard Control Up: Miscellaneous Routines Previous: Miscellaneous Routines

Pointer control

See also the chapter on events.

XChangePointerControl(display,do_accel,do_threshold,accel numerator,
		  accel denominator, threshold)/* SET MOUSE ACCELERATION */
    int do_accel;        /*True or False. Do you want to set accel ? */
    int do_threshold;    /*True or False. Do you want to set threshold ? */
    int accel numerator, accel denominator; /* -1 restores default*/
    int threshold;   /* ignore moves up to this number of pixels*/

XGetPointerControl(display,accel numerator,accel denominator, threshold)
    int *accel numerator,   /*RETURN*/
    int *accel denominator; /* RETURN*/
    int *threshold;   /* RETURN*/

    /* FIND MOUSE COORDINATES AND THE STATE OF ITS BUTTONS      */
Status XQueryPointer(display,w,root,child,root x,root y,win x win y,mask)
    Window w;        /* relative to which window                */
    Window *root, *child;      /*RETURN*/
    int *root x, *root y;      /* RETURN*/
    int *win x,*win y;    /* RETURN*/
    unsigned int *mask;    /* RETURN button states                    */

XWarpPointer(display,src_w,dest_w,src_x,src_y,src_width,
	       src_height,dest_x,dest_y)
   Window src_w,dest_w;
   int src_x,src_y;
   unsigned int src_width,src_height;
   int dest_x,dest_y;


Tim Love
Mon Mar 11 17:03:18 GMT 1996