Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XChangePoin(3x) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XChangePointerControl − 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

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

do_accelSpecifies 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.

thresholdSpecifies the acceleration threshold. 

Description

XChangePointerControl() 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 values 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

BadValueaccel_denominator is 0. 
Negative value for do_accel or do_threshold. 

See Also

XChangeActivePointerGrab(), XGetPointerControl(), XGetPointerMapping(), XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrabPointer(), XWarpPointer(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026