1XSetDeviceValuators(3) X FUNCTIONS XSetDeviceValuators(3)
2
3
4
6 XSetDeviceValuators - initialize the valuators on an extension input
7 device
8
10 XSetDeviceValuators(display, device, valuators, first_valuator,
11 num_valuators)
12 Display *display;
13 XDevice *device;
14 int *valuators;
15 int first_valuator;
16 int num_valuators;
17
19 display Specifies the connection to the X server.
20
21 device Specifies the device whose valuators are to be initialized.
22
23 valuators Specifies a pointer to an array of integer values to be
24 used to initialize the device valuators.
25
26 first_valuator
27 Specifies the first valuator to be set. Valuators are num‐
28 bered beginning with zero.
29
30 num_valuators
31 Specifies the number of valuators to be set.
32
34 The XSetDeviceValuators request sets the current values of the valua‐
35 tors of an input device. The valuators in the range first_valuator to
36 (first_valuator + num_valuators) are set to the specified values. Val‐
37 uators are numbered beginning with 0. Not all input devices support
38 initialization of valuator values. If this request is made to a device
39 that does not support valuators initialization, a BadMatch error will
40 occur.
41
42 If the request succeeds, a status of Success is returned. If another
43 client has the device grabbed, a status of AlreadyGrabbed is returned.
44
45 XSetDeviceValuators can generate a BadLength, BadDevice , BadMatch, or
46 BadValue error.
47
49 BadDevice An invalid device was specified. The specified device does
50 not exist or has not been opened by this client via XOpen‐
51 InputDevice.
52
53 BadMatch This error may occur if an XSetDeviceValuators request is
54 made specifying a device that has no valuators and reports
55 no axes of motion, or if such a request is made specifying
56 a device that does not support valuator initialization.
57
58 BadValue An invalid first_valuator or num_valuators values was spec‐
59 ified.
60
62 Programming with Xlib
63
64
65
66X Version 11 libXi 1.1.1 XSetDeviceValuators(3)