XChangePointerControl()XChangePointerControl()NameXChangePointerControl – change the pointer preferences.
Synopsis
XChangePointerControl(display, do_accel, do_threshold, accel_numerator,
accel_denominator, threshold)
Display *display;
Bool do_accel, do_threshold;
int accel_numerator, accel_denominator;
int threshold;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
do_accel Specifies a boolean value that controls whether the values
for the accel_numerator or accel_denominator are set. You
can pass one of these constants: True or False.
do_threshold
Specifies a boolean value that controls whether the value for
the threshold is set. You can pass one of these constants:
True or False.
accel_numerator
Specifies the numerator for the acceleration multiplier.
accel_denominator
Specifies the denominator for the acceleration multiplier.
threshold Specifies the acceleration threshold. True or False.
DescriptionXChangePointerControl() defines how the pointing device functions. The
acceleration is a fraction (accel_numerator/accel_denominator) which
specifies how many times faster than normal the sprite on the screen
moves for a given pointer movement. Acceleration takes effect only
when a particular pointer motion is greater than threshold pixels at
once, and only applies to the motion beyond threshold pixels. The val‐
ues for do_accel and do_threshold must be True for the pointer values
to be set; otherwise, the parameters will be unchanged. Setting any of
the last three arguments to -1 restores the default for that argument.
The fraction may be rounded arbitrarily by the server.
Errors
BadValue accel_denominator is 0.
Negative value for do_accel or do_threshold.
See AlsoXChangeActivePointerGrab(), XGetPointerControl(), XGetPointerMapping(),
XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrab‐
Pointer(), XWarpPointer().
Xlib - Pointers XChangePointerControl()