1XSETDEVICEMODE(3) XSETDEVICEMODE(3)
2
3
4
6 XSetDeviceMode - change the mode of a device
7
9 #include <X11/extensions/XInput.h>
10
11 XSetDeviceMode( Display *display,
12 XDevice *device,
13 int mode);
14
15 display
16 Specifies the connection to the X server.
17
18 device
19 Specifies the device whose mode is to be changed.
20
21 mode
22 Specifies the mode. You can pass Absolute, or Relative.
23
25 The XSetDeviceMode request changes the mode of an input device
26 that is capable of reporting either absolute positional
27 information or relative motion information. Not all input
28 devices are capable of reporting motion data, and not all are
29 capable of changing modes from Absolute to Relative.
30
31 XSetDeviceMode can generate a BadDevice or BadMode error.
32
34 BadDevice
35 An invalid device was specified. The specified device
36 does not exist or has not been opened by this client via
37 XOpenInputDevice. This error may also occur if some
38 other client has caused the specified device to become
39 the X keyboard or X pointer device via the
40 XChangeKeyboardDevice or XChangePointerDevice requests.
41
42 BadMatch
43 This error may occur if an XSetDeviceMode request is
44 made specifying a device that has no valuators and
45 reports no axes of motion.
46
47 BadMode
48 An invalid mode was specified. This error will also be
49 returned if the specified device is not capable of
50 supporting the XSetDeviceMode request.
51
52
53
54 09/15/2021 XSETDEVICEMODE(3)