1XChangePointerControl(3)        XLIB FUNCTIONS        XChangePointerControl(3)
2
3
4

NAME

6       XChangePointerControl, XGetPointerControl - control pointer
7

SYNTAX

9       int   XChangePointerControl(Display   *display,   Bool  do_accel,  Bool
10              do_threshold, int accel_numerator,  int  accel_denominator,  int
11              threshold);
12
13       int  XGetPointerControl(Display  *display, int *accel_numerator_return,
14              int *accel_denominator_return, int *threshold_return);
15

ARGUMENTS

17       accel_denominator
18                 Specifies the denominator for the acceleration multiplier.
19
20       accel_denominator_return
21                 Returns the denominator for the acceleration multiplier.
22
23       accel_numerator
24                 Specifies the numerator for the acceleration multiplier.
25
26       accel_numerator_return
27                 Returns the numerator for the acceleration multiplier.
28
29       display   Specifies the connection to the X server.
30
31       do_accel  Specifies a Boolean value that controls  whether  the  values
32                 for the accel_numerator or accel_denominator are used.
33
34       do_threshold
35                 Specifies a Boolean value that controls whether the value for
36                 the threshold is used.
37
38       threshold Specifies the acceleration threshold.
39
40       threshold_return
41                 Returns the acceleration threshold.
42

DESCRIPTION

44       The XChangePointerControl function  defines  how  the  pointing  device
45       moves.   The acceleration, expressed as a fraction, is a multiplier for
46       movement.  For example, specifying 3/1 means the  pointer  moves  three
47       times  as  fast  as normal.  The fraction may be rounded arbitrarily by
48       the X server.  Acceleration only takes effect if the pointer moves more
49       than threshold pixels at once and only applies to the amount beyond the
50       value in the threshold argument.  Setting a value to  -1  restores  the
51       default.  The values of the do_accel and do_threshold arguments must be
52       True for the pointer values to be set, or the parameters are unchanged.
53       Negative  values  (other  than -1) generate a BadValue error, as does a
54       zero value for the accel_denominator argument.
55
56       XChangePointerControl can generate a BadValue error.
57
58       The XGetPointerControl function returns the pointer's current accelera‐
59       tion multiplier and acceleration threshold.
60

DIAGNOSTICS

62       BadValue  Some numeric value falls outside the range of values accepted
63                 by the request.  Unless a specific range is specified for  an
64                 argument,  the  full  range defined by the argument's type is
65                 accepted.  Any argument defined as a set of alternatives  can
66                 generate this error.
67

SEE ALSO

69       Xlib - C Language X Interface
70
71
72
73X Version 11                     libX11 1.6.12        XChangePointerControl(3)
Impressum