1XSETDEVICEVALUATORS(3) XSETDEVICEVALUATORS(3)
2
3
4
6 XSetDeviceValuators - initialize the valuators on an extension input
7 device
8
10 #include <X11/extensions/XInput.h>
11
12 XSetDeviceValuators( Display *display,
13 XDevice *device,
14 int *valuators,
15 int first_valuator,
16 int num_valuators);
17
18 display
19 Specifies the connection to the X server.
20
21 device
22 Specifies the device whose valuators are to be
23 initialized.
24
25 valuators
26 Specifies a pointer to an array of integer values to be
27 used to initialize thedevice valuators.
28
29 first_valuator
30 Specifies the first valuator to be set. Valuators are
31 numbered beginning withzero.
32
33 num_valuators
34 Specifies the number of valuators to be set.
35
37 The XSetDeviceValuators request sets the current values of the
38 valuators of an input device. The valuators in the range
39 first_valuator to (first_valuator + num_valuators) are set to
40 the specified values. Valuators are numbered beginning with 0.
41 Not all input devices support initialization of valuator
42 values. If this request is made to a device that does not
43 support valuators initialization, a BadMatch error will occur.
44
45 If the request succeeds, a status of Success is returned. If
46 another client has the device grabbed, a status of
47 AlreadyGrabbed is returned.
48
49 XSetDeviceValuators can generate a BadLength, BadDevice,
50 BadMatch, or BadValue error.
51
53 BadDevice
54 An invalid device was specified. The specified device
55 does not exist or has not been opened by this client via
56 XOpenInputDevice.
57
58 BadMatch
59 This error may occur if an XSetDeviceValuators request
60 is made specifying a device that has no valuators and
61 reports no axes of motion, or if such a request is made
62 specifying a device that does not support valuator
63 initialization.
64
65 BadValue
66 An invalid first_valuator or num_valuators values was
67 specified.
68
69
70
71 03/09/2013 XSETDEVICEVALUATORS(3)