Copyright (C) 2000-2012 |
Manpages XGetDeviceControlSection: X FUNCTIONS (3X11)Updated: Release 6.5 Index Return to Main Contents NAMEXGetDeviceControl, XChangeDeviceControl - query and change input device controlsSYNTAXXDeviceControl * XGetDeviceControl(display, device, control)Display *display; XDevice *device; int *controlType;
int XChangeDeviceControl(display, device, controlType, control)
ARGUMENTS
DESCRIPTIONThese requests are provided to manipulate those input devices that support device control. A BadMatch error will be generated if the requested device does not support any device controls.Valid device control types that can be used with these requests include the following:
The XGetDeviceControl request returns a pointer to an XDeviceControl structure. XGetDeviceControl can generate a BadDevice or BadMatch error. The XChangeDeviceControl request modifies the values of one control on the specified device. The control is identified by the id field of the XDeviceControl structure that is passed with the request. XChangeDeviceControl can generate a BadDevice, BadMatch, or BadValue error. STRUCTURESEach control is described by a structure specific to that control. These structures are defined in the file XInput.h.XDeviceControl is a generic structure that contains two fields that are at the beginning of each class of control:
typedef struct { The XDeviceResolutionState structure defines the information that is returned for device resolution for devices with valuators.
typedef struct { XID control; int length; int num_valuators; int *resolutions; int *min_resolutions; int *max_resolutions; } XDeviceResolutionState; The XDeviceResolutionControl structure defines the attributes that can be controlled for keyboard Devices.
typedef struct { XID control; int length; int first_valuator; int num_valuators; int *resolutions; } XDeviceResolutionControl; DIAGNOSTICS
SEE ALSOProgramming With Xlib
IndexThis document was created by man2html, using the manual pages. Time: 18:03:45 GMT, April 25, 2024 |