1 XGETDEVICECONTROL(libmansuffix)
2 ===============================
7 XGetDeviceControl, XChangeDeviceControl - query and change
13 #include <X11/extensions/XInput.h>
15 XDeviceControl *XGetDeviceControl( Display *display,
19 int XChangeDeviceControl( Display *display,
22 XDeviceControl *control);
25 Specifies the connection to the X server.
28 Specifies the device whose control is to be interrogated
32 Specifies the type of control to be interrogated or
36 Specifies the address of an XDeviceControl structure
37 that contains the new values for the Device.
42 These requests are provided to manipulate those input devices
43 that support device control. A BadMatch error will be generated
44 if the requested device does not support any device controls.
46 Valid device control types that can be used with these requests
47 include the following:
49 DEVICE_RESOLUTION Queries or changes the resolution of
50 valuators on input devices.
52 The XGetDeviceControl request returns a pointer to an
53 XDeviceControl structure.
55 XGetDeviceControl can generate a BadDevice or BadMatch error.
57 The XChangeDeviceControl request modifies the values of one
58 control on the specified device. The control is identified by
59 the id field of the XDeviceControl structure that is passed
62 XChangeDeviceControl can generate a BadDevice, BadMatch, or
63 BadValue error..SH STRUCTURES Each control is described by a
64 structure specific to that control. These structures are
65 defined in the file XInput.h.
67 XDeviceControl is a generic structure that contains two fields
68 that are at the beginning of each class of control:
75 The XDeviceResolutionState structure defines the information
76 that is returned for device resolution for devices with
86 } XDeviceResolutionState;
88 The XDeviceResolutionControl structure defines the attributes
89 that can be controlled for keyboard Devices.
97 } XDeviceResolutionControl;
103 An invalid device was specified. The specified device
104 does not exist or has not been opened by this client via
105 XOpenInputDevice. This error may also occur if some
106 other client has caused the specified device to become
107 the X keyboard or X pointer device via the
108 XChangeKeyboardDevice or XChangePointerDevice requests.
111 This error may occur if an XGetDeviceControl request was
112 made specifying a device that has no controls or an
113 XChangeDeviceControl request was made with an
114 XDeviceControl structure that contains an invalid Device
115 type. It may also occur if an invalid combination of
116 mask bits is specified ( DvKey but no DvAutoRepeatMode
117 for keyboard Devices), or if an invalid KeySym is
118 specified for a string Device.
121 Some numeric value falls outside the range of values
122 accepted by the XChangeDeviceControl request. Unless a
123 specific range is specified for an argument, the full
124 range defined by the argument's type is accepted. Any
125 argument defined as a set of alternatives can generate