2 .\" Title: xgetfeedbackcontrol
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XGETFEEDBACKCONTROL" "libmansuffix" "12/16/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XGetFeedbackControl, XChangeFeedbackControl \- query and change input device feedbacks
35 #include <X11/extensions/XInput\&.h>
39 XFeedbackState *XGetFeedbackControl( Display *display,
45 int XChangeFeedbackControl( Display *display,
48 XFeedbackControl *control);
53 Specifies the connection to the X server\&.
58 Specifies the device whose feedbacks are to be queried
64 Specifies an address into which the number of feedbacks
65 supported by thedevice is to be returned\&.
70 Specifies a mask specific to each type of feedback that
71 describes howthe feedback is to be modified\&.
76 Specifies the address of an XFeedbackControl structure
77 that containsthe new values for the feedback\&.
85 These requests are provided to manipulate those input devices
86 that support feedbacks\&. A BadMatch error will be generated if
87 the requested device does not support feedbacks\&. Whether or not
88 a given device supports feedbacks can be determined by
89 examining the information returned by the XOpenDevice request\&.
90 For those devices that support feedbacks, XOpenDevice will
91 return an XInputClassInfo structure with the input_class field
92 equal to the constant FeedbackClass (defined in the file XI\&.h)\&.
102 The XGetFeedbackControl request returns a pointer to a list of
103 XFeedbackState structures\&. Each item in this list describes one
104 of the feedbacks supported by the device\&. The items are
105 variable length, so each contains its length to allow traversal
106 to the next item in the list\&.
116 The feedback classes that are currently defined are:
117 KbdFeedbackClass, PtrFeedbackClass, StringFeedbackClass,
118 IntegerFeedbackClass, LedFeedbackClass, and BellFeedbackClass\&.
119 These constants are defined in the file XI\&.h\&. An input device
120 may support zero or more classes of feedback, and may support
121 multiple feedbacks of the same class\&. Each feedback contains a
122 class identifier and an id that is unique within that class for
123 that input device\&. The id is used to identify the feedback when
124 making an XChangeFeedbackControl request\&.
134 XGetFeedbackControl can generate a BadDevice or BadMatch error\&.
144 The XChangeFeedbackControl request modifies the values of one
145 feedback on the specified device\&. The feedback is identified by
146 the id field of the XFeedbackControl structure that is passed
147 with the request\&. The fields of the feedback that are to be
148 modified are identified by the bits of the mask that is passed
159 XChangeFeedbackControl can generate a BadDevice, BadMatch, or
171 Each class of feedback is described by a structure specific to
172 that class\&. These structures are defined in the file XInput\&.h\&.
173 XFeedbackState and XFeedbackControl are generic structures that
174 contain three fields that are at the beginning of each class of
189 } XFeedbackState, XFeedbackControl;
199 The XKbdFeedbackState structure defines the attributes that are
200 returned for feedbacks equivalent to those on the X keyboard\&.
219 int global_auto_repeat;
220 char auto_repeats[32];
231 The XPtrFeedbackState structure defines the attributes that are
232 returned for feedbacks equivalent to those on the the X
260 The XIntegerFeedbackState structure defines attributes that are
261 returned for integer feedbacks\&.
278 } XIntegerFeedbackState;
288 The XStringFeedbackState structure defines the attributes that
289 are returned for string feedbacks\&.
304 int num_syms_supported;
305 KeySym *syms_supported;
306 } XStringFeedbackState;
316 The XBellFeedbackState structure defines the attributes that
317 are returned for bell feedbacks\&.
334 } XBellFeedbackState;
344 The XLedFeedbackState structure defines the attributes that are
345 returned for LED feedbacks\&.
370 The XPrtFeedbackControl structure defines the attributes that
371 can be controlled for pointer feedbacks\&.
388 } XPtrFeedbackControl;
398 The XKbdFeedbackControl structure defines the attributes that
399 can be controlled for keyboard feedbacks\&.
420 int auto_repeat_mode;
421 } XKbdFeedbackControl;
431 The XStringFeedbackControl structure defines the attributes
432 that can be controlled for string feedbacks\&.
447 KeySym *syms_to_display;
448 } XStringFeedbackControl;
458 The XIntegerFeedbackControl structure defines the attributes
459 that can be controlled for integer feedbacks\&.
474 } XIntegerFeedbackControl;
484 The XBellFeedbackControl structure defines the attributes that
485 can be controlled for bell feedbacks\&.
502 } XBellFeedbackControl;
512 The XLedFeedbackControl structure defines the attributes that
513 can be controlled for LED feedbacks\&.
529 } XLedFeedbackControl;
541 An invalid device was specified\&. The specified device
542 does not exist or has not been opened by this client via
543 XOpenInputDevice\&. This error may also occur if some
544 other client has caused the specified device to become
545 the X keyboard or X pointer device via the
546 XChangeKeyboardDevice or XChangePointerDevice requests\&.
557 This error may occur if an XGetFeedbackControl request
558 was made specifying a device that has no feedbacks, or
559 an XChangeFeedbackControl request was made with an
560 XFeedbackControl structure that contains an invalid
561 feedback type\&. It may also occur if an invalid
562 combination of mask bits is specified ( DvKey but no
563 DvAutoRepeatMode for keyboard feedbacks), or if an
564 invalid KeySym is specified for a string feedback\&.
575 Some numeric value falls outside the range of values
576 accepted by the XChangeFeedbackControl request\&. Unless a
577 specific range is specified for an argument, the full
578 range defined by the argument\*(Aqs type is accepted\&. Any
579 argument defined as a set of alternatives can generate