~ubuntu-branches/ubuntu/natty/libxi/natty-201011191114

« back to all changes in this revision

Viewing changes to man/XListInputDevices.man

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-21 18:39:28 UTC
  • mfrom: (1.1.10 upstream) (0.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091121183928-ek2jwqx3rmhv3zjz
Tags: 2:1.3-1
* Bump Standards-Version to 3.8.3.
* Add build-deps on xmlto and asciidoc to build the manpages.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\"
2
 
.\" $XFree86: xc/doc/man/Xi/XListDev.man,v 1.2 2001/01/27 18:20:21 dawes Exp $
3
 
.\"
4
 
.\"
5
 
.\" Copyright ([\d,\s]*) by Hewlett-Packard Company, Ardent Computer, 
6
 
.\" 
7
 
.\" Permission to use, copy, modify, distribute, and sell this documentation 
8
 
.\" for any purpose and without fee is hereby granted, provided that the above
9
 
.\" copyright notice and this permission notice appear in all copies.
10
 
.\" Ardent, and Hewlett-Packard make no representations about the 
11
 
.\" suitability for any purpose of the information in this document.  It is 
12
 
.\" provided \`\`as is'' without express or implied warranty.
13
 
.\" 
14
 
.\" $Xorg: XListDev.man,v 1.3 2000/08/17 19:41:56 cpqbld Exp $
15
 
.ds xL Programming with Xlib
16
 
.TH XListInputDevices __LIB_MAN_SUFFIX__ __xorgversion__ "X FUNCTIONS"
17
 
.SH NAME
 
1
'\" t
 
2
.\"     Title: xlistinputdevices
 
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 
4
.\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
 
5
.\"      Date: 10/02/2009
 
6
.\"    Manual: [FIXME: manual]
 
7
.\"    Source: [FIXME: source]
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "XLISTINPUTDEVICES" "libmansuffix" "10/02/2009" "[FIXME: source]" "[FIXME: manual]"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * set default formatting
 
13
.\" -----------------------------------------------------------------
 
14
.\" disable hyphenation
 
15
.nh
 
16
.\" disable justification (adjust text to left margin only)
 
17
.ad l
 
18
.\" -----------------------------------------------------------------
 
19
.\" * MAIN CONTENT STARTS HERE *
 
20
.\" -----------------------------------------------------------------
 
21
.SH "NAME"
18
22
XListInputDevices, XFreeDeviceList \- list available input devices
19
 
.SH SYNTAX
20
 
.HP
21
 
XDeviceInfo *XListInputDevices\^(\^Display *\fIdisplay\fP\^, int
22
 
*\fIndevices_return\fP\^); 
23
 
.HP
24
 
int XFreeDeviceList\^(\^XDeviceInfo *\fIlist\fP\^); 
25
 
.SH ARGUMENTS
26
 
.TP 12
27
 
.I display
28
 
Specifies the connection to the X server.
29
 
.TP 12
30
 
.I ndevices_return
31
 
Specifies a pointer to a variable where the number of available devices can
32
 
be returned.
33
 
.TP 12
34
 
.I list
35
 
Specifies the list of devices to free.  The \fIXFreeDeviceList\fP function
36
 
frees the list of available extension input devices.
37
 
.SH DESCRIPTION
38
 
The \fIXListInputDevices\fP
39
 
request lists the available extension input devices.  This list includes the
40
 
X pointer and X keyboard, any other input devices that are currently accessible
41
 
through the X server, and any input devices that are not currently accessible
42
 
through the X server but could be accessed if requested.
43
 
.LP
44
 
Some server implementations may make all input devices available at the time
45
 
the server is initialized.  Others may wait until requested by a client to
46
 
access an input device.  In the latter case, it is possible that an input 
47
 
device will be listed as available at one time but not at another.
48
 
.LP
49
 
For each input device available to the server, the XListInputDevices
50
 
request returns an XDeviceInfo structure.  That structure contains a
51
 
pointer to a list of structures, each of which contains information about 
52
 
one class of input supported by the device.
53
 
 
54
 
The XDeviceInfo structure is defined as follows:
55
 
 
56
 
.DS
57
 
.nf
58
 
typedef struct _XDeviceInfo
59
 
{
60
 
        XID             id;        
61
 
        Atom            type;
62
 
        char            *name;
63
 
        int             num_classes;
64
 
        int             use;
65
 
        XAnyClassPtr    inputclassinfo;
66
 
} XDeviceInfo;
67
 
.fi
68
 
.DE
69
 
.LP
70
 
The id is a number in the range 0-128 that uniquely identifies 
71
 
the device.  It is assigned to the device when it is initialized by the server.
72
 
.LP
73
 
The type field is of type Atom and indicates the nature
74
 
of the device.
75
 
.LP
76
 
The name field contains a pointer to a null-terminated
77
 
string that corresponds to one of the defined device
78
 
types.  The name will correspond to one of the following
79
 
strings (defined in the header file \fIXI.h\fP:
80
 
.LP
81
 
.DS
82
 
XI_MOUSE
83
 
XI_TABLET
84
 
XI_KEYBOARD
85
 
XI_TOUCHSCREEN
86
 
XI_TOUCHPAD
87
 
XI_BUTTONBOX
88
 
XI_BARCODE
89
 
XI_TRACKBALL
90
 
XI_QUADRATURE
91
 
XI_ID_MODULE
92
 
XI_ONE_KNOB
93
 
XI_NINE_KNOB
94
 
XI_KNOB_BOX
95
 
XI_SPACEBALL
96
 
XI_DATAGLOVE
97
 
XI_EYETRACKER
98
 
XI_CURSORKEYS
99
 
XI_FOOTMOUSE
100
 
XI_JOYSTICK
101
 
.DE
102
 
.LP
103
 
These names may be directly compared with the name field of the
104
 
XDeviceInfo structure, or used in an XInternAtom request to return
105
 
an atom that can be compared with the type field of the XDeviceInfo
106
 
structure.
107
 
.LP
108
 
The num_classes field is a number in the
109
 
range 0-255 that specifies the number of input classes
110
 
supported by the device for which information is
111
 
returned by ListInputDevices.  Some input classes, such
112
 
as class Focus and class Proximity do not have any
113
 
information to be returned by ListInputDevices.
114
 
.LP
115
 
The use field specifies how the device is currently
116
 
being used.  If the value is \fIIsXKeyboard\fP, the device is
117
 
currently being used as the X keyboard.  If the value
118
 
is \fIIsXPointer\fP, the device is currently being used as
119
 
the X pointer.  If the value is \fIIsXExtensionDevice\fP, the
120
 
device is available for use as an extension device.
121
 
.LP
122
 
The inputclassinfo field contains a pointer to the first input-class
123
 
specific data.  The first two fields are common to all
124
 
classes.
125
 
.LP
126
 
The class field is a number in the range 0-255.
127
 
It uniquely identifies the class of input for which
128
 
information is returned.  Currently defined classes
129
 
are KeyClass, ButtonClass, and ValuatorClass.
130
 
.LP
131
 
The length field is a number in the range 0- 255.  
132
 
It specifies the number of bytes of data that are
133
 
contained in this input class.  The length includes the
134
 
class and length fields.
135
 
.LP
136
 
The XKeyInfo structure describes the characteristics of the keys on the
137
 
device.  It is defined as follows:
138
 
.LP
139
 
.DS
 
23
.SH "SYNOPSIS"
 
24
.sp
 
25
.nf
 
26
#include <X11/extensions/XInput\&.h>
 
27
.fi
 
28
.sp
 
29
.nf
 
30
XDeviceInfo *XListInputDevices( Display *display,
 
31
                                int *ndevices_return);
 
32
.fi
 
33
.sp
 
34
.nf
 
35
int XFreeDeviceList( XDeviceInfo *list);
 
36
.fi
 
37
.sp
 
38
.nf
 
39
display
 
40
       Specifies the connection to the X server\&.
 
41
.fi
 
42
.sp
 
43
.nf
 
44
ndevices_return
 
45
       Specifies a pointer to a variable where the number of
 
46
       available devices canbe returned\&.
 
47
.fi
 
48
.sp
 
49
.nf
 
50
list
 
51
       Specifies the list of devices to free\&. The
 
52
       XFreeDeviceList functionfrees the list of available
 
53
       extension input devices\&.
 
54
.fi
 
55
.SH "DESCRIPTION"
 
56
.sp
 
57
.if n \{\
 
58
.RS 4
 
59
.\}
 
60
.nf
 
61
The XListInputDevices request lists the available input
 
62
devices\&. This list includes the core keyboard and any physical
 
63
input device currently accessible through the X server, and any
 
64
input devices that are not currently accessible through the X
 
65
server but could be accessed if requested\&.
 
66
.fi
 
67
.if n \{\
 
68
.RE
 
69
.\}
 
70
.sp
 
71
.if n \{\
 
72
.RS 4
 
73
.\}
 
74
.nf
 
75
A master pointer is a virtual pointer device that does not
 
76
represent a physical device\&. It is visually represented through
 
77
a cursor\&. A master keyboard is a virtual keyboard device that
 
78
does not represent a physical device\&. It is virtually
 
79
representd through a keyboard focus\&. A master pointer and a
 
80
master keyboard are always paired (i\&.e\&. if shift is pressed on
 
81
the master keyboard, a pointer click would be a shift\-click)\&.
 
82
Multiple master pointer/keyboard pairs can exist\&.
 
83
.fi
 
84
.if n \{\
 
85
.RE
 
86
.\}
 
87
.sp
 
88
.if n \{\
 
89
.RS 4
 
90
.\}
 
91
.nf
 
92
X servers supporting the X Input Extension version 2,
 
93
XListInputDevices only returns the first master pointer, the
 
94
first master keyboard and all slave devices\&. Additional master
 
95
devices are not listed\&.
 
96
.fi
 
97
.if n \{\
 
98
.RE
 
99
.\}
 
100
.sp
 
101
.if n \{\
 
102
.RS 4
 
103
.\}
 
104
.nf
 
105
Physical devices (so\-called slave devices) are attached to
 
106
either a master pointer or a master keyboard, depending on
 
107
their capabilities\&. If a slave device generates an event, the
 
108
event is also generated by the respective master device\&.
 
109
Multiple slave devices can be attached to a single master
 
110
device\&.
 
111
.fi
 
112
.if n \{\
 
113
.RE
 
114
.\}
 
115
.sp
 
116
.if n \{\
 
117
.RS 4
 
118
.\}
 
119
.nf
 
120
Some server implementations may make all physical input devices
 
121
available at the time the server is initialized\&. Others may
 
122
wait until requested by a client to access an input device\&. In
 
123
the latter case, it is possible that an input device will be
 
124
listed as available at one time but not at another\&.
 
125
.fi
 
126
.if n \{\
 
127
.RE
 
128
.\}
 
129
.sp
 
130
.if n \{\
 
131
.RS 4
 
132
.\}
 
133
.nf
 
134
For each input device available to the server, the
 
135
XListInputDevices request returns an XDeviceInfo structure\&.
 
136
That structure contains a pointer to a list of structures, each
 
137
of which contains information about one class of input
 
138
supported by the device\&. The XDeviceInfo structure is defined
 
139
as follows:
 
140
             typedef struct _XDeviceInfo {
 
141
             XID     id;
 
142
             Atom    type;
 
143
             char    *name;
 
144
             int         num_classes;
 
145
             int         use;
 
146
             XAnyClassPtr inputclassinfo;
 
147
             } XDeviceInfo;
 
148
.fi
 
149
.if n \{\
 
150
.RE
 
151
.\}
 
152
.sp
 
153
.if n \{\
 
154
.RS 4
 
155
.\}
 
156
.nf
 
157
The id is a number in the range 0\-128 that uniquely identifies
 
158
the device\&. It is assigned to the device when it is initialized
 
159
by the server\&.
 
160
.fi
 
161
.if n \{\
 
162
.RE
 
163
.\}
 
164
.sp
 
165
.if n \{\
 
166
.RS 4
 
167
.\}
 
168
.nf
 
169
The type field is of type Atom and indicates the nature of the
 
170
device\&. The type will correspond to one of the following strings
 
171
(defined in the header file XI\&.h):
 
172
.fi
 
173
.if n \{\
 
174
.RE
 
175
.\}
 
176
.sp
 
177
.if n \{\
 
178
.RS 4
 
179
.\}
 
180
.nf
 
181
XI_MOUSE XI_TABLET XI_KEYBOARD XI_TOUCHSCREEN XI_TOUCHPAD
 
182
XI_BUTTONBOX XI_BARCODE XI_TRACKBALL XI_QUADRATURE XI_ID_MODULE
 
183
XI_ONE_KNOB XI_NINE_KNOB XI_KNOB_BOX XI_SPACEBALL XI_DATAGLOVE
 
184
XI_EYETRACKER XI_CURSORKEYS XI_FOOTMOUSE XI_JOYSTICK
 
185
.fi
 
186
.if n \{\
 
187
.RE
 
188
.\}
 
189
.sp
 
190
.if n \{\
 
191
.RS 4
 
192
.\}
 
193
.nf
 
194
These strings may be used in an XInternAtom request to return
 
195
an atom that can be compared with the type field of the
 
196
XDeviceInfo structure\&.
 
197
.fi
 
198
.if n \{\
 
199
.RE
 
200
.\}
 
201
.sp
 
202
.if n \{\
 
203
.RS 4
 
204
.\}
 
205
.nf
 
206
The name field contains a pointer to a null\-terminated string
 
207
that serves as identifier of the device\&. This identifier may be
 
208
user\-configured or automatically assigned by the server\&.
 
209
.fi
 
210
.if n \{\
 
211
.RE
 
212
.\}
 
213
.sp
 
214
.if n \{\
 
215
.RS 4
 
216
.\}
 
217
.nf
 
218
The num_classes field is a number in the range 0\-255 that
 
219
specifies the number of input classes supported by the device
 
220
for which information is returned by ListInputDevices\&. Some
 
221
input classes, such as class Focus and class Proximity do not
 
222
have any information to be returned by ListInputDevices\&.
 
223
.fi
 
224
.if n \{\
 
225
.RE
 
226
.\}
 
227
.sp
 
228
.if n \{\
 
229
.RS 4
 
230
.\}
 
231
.nf
 
232
All devices provide an AttachClass\&. This class specifies the
 
233
master device a given slave device is attached to\&. For master
 
234
devices, the class specifies the respective paired master
 
235
device\&.
 
236
.fi
 
237
.if n \{\
 
238
.RE
 
239
.\}
 
240
.sp
 
241
.if n \{\
 
242
.RS 4
 
243
.\}
 
244
.nf
 
245
The use field specifies how the device is currently being used\&.
 
246
If the value is IsXKeyboard, the device is a master keyboard\&.
 
247
If the value is IsXPointer, the device is a master pointer\&. If
 
248
the value is IsXExtensionPointer, the device is a slave
 
249
pointer\&. If the value is IsXExtensionKeyboard, the device is a
 
250
slave keyboard\&. If the value is IsXExtensionDevice, the device
 
251
is available for use as an extension device\&.
 
252
.fi
 
253
.if n \{\
 
254
.RE
 
255
.\}
 
256
.sp
 
257
.if n \{\
 
258
.RS 4
 
259
.\}
 
260
.nf
 
261
The inputclassinfo field contains a pointer to the first
 
262
input\-class specific data\&. The first two fields are common to
 
263
all classes\&.
 
264
.fi
 
265
.if n \{\
 
266
.RE
 
267
.\}
 
268
.sp
 
269
.if n \{\
 
270
.RS 4
 
271
.\}
 
272
.nf
 
273
The class field is a number in the range 0\-255\&. It uniquely
 
274
identifies the class of input for which information is
 
275
returned\&. Currently defined classes are KeyClass, ButtonClass,
 
276
and ValuatorClass\&.
 
277
.fi
 
278
.if n \{\
 
279
.RE
 
280
.\}
 
281
.sp
 
282
.if n \{\
 
283
.RS 4
 
284
.\}
 
285
.nf
 
286
The length field is a number in the range 0\- 255\&. It specifies
 
287
the number of bytes of data that are contained in this input
 
288
class\&. The length includes the class and length fields\&.
 
289
.fi
 
290
.if n \{\
 
291
.RE
 
292
.\}
 
293
.sp
 
294
.if n \{\
 
295
.RS 4
 
296
.\}
 
297
.nf
 
298
The XKeyInfo structure describes the characteristics of the
 
299
keys on the device\&. It is defined as follows:
 
300
.fi
 
301
.if n \{\
 
302
.RE
 
303
.\}
 
304
.sp
 
305
.if n \{\
 
306
.RS 4
 
307
.\}
140
308
.nf
141
309
typedef struct _XKeyInfo {
142
 
        XID                     class;
143
 
        int                     length;
144
 
        unsigned short          min_keycode;
145
 
        unsigned short          max_keycode;
146
 
        unsigned short          num_keys;
 
310
XID class;
 
311
int length;
 
312
unsigned short min_keycode;
 
313
unsigned short max_keycode;
 
314
unsigned short num_keys;
147
315
} XKeyInfo;
148
316
.fi
149
 
.DE
150
 
.LP
151
 
min_keycode is of type KEYCODE.  It specifies the
152
 
minimum keycode that the device will report.  The
153
 
minimum keycode will not be smaller than 8.
154
 
.LP
155
 
max_keycode is of type KEYCODE.  It specifies the
156
 
maximum keycode that the device will report.  The
157
 
maximum keycode will not be larger than 255.
158
 
.LP
159
 
num_keys specifies the number of keys that the device has.
160
 
.LP
161
 
The XButtonInfo structure defines the characteristics of the buttons
162
 
on the device.  It is defined as follows:
163
 
.LP
164
 
.DS
 
317
.if n \{\
 
318
.RE
 
319
.\}
 
320
.sp
 
321
.if n \{\
 
322
.RS 4
 
323
.\}
 
324
.nf
 
325
min_keycode is of type KEYCODE\&. It specifies the minimum
 
326
keycode that the device will report\&. The minimum keycode will
 
327
not be smaller than 8\&.
 
328
.fi
 
329
.if n \{\
 
330
.RE
 
331
.\}
 
332
.sp
 
333
.if n \{\
 
334
.RS 4
 
335
.\}
 
336
.nf
 
337
max_keycode is of type KEYCODE\&. It specifies the maximum
 
338
keycode that the device will report\&. The maximum keycode will
 
339
not be larger than 255\&.
 
340
.fi
 
341
.if n \{\
 
342
.RE
 
343
.\}
 
344
.sp
 
345
.if n \{\
 
346
.RS 4
 
347
.\}
 
348
.nf
 
349
num_keys specifies the number of keys that the device has\&.
 
350
.fi
 
351
.if n \{\
 
352
.RE
 
353
.\}
 
354
.sp
 
355
.if n \{\
 
356
.RS 4
 
357
.\}
 
358
.nf
 
359
The XButtonInfo structure defines the characteristics of the
 
360
buttons on the device\&. It is defined as follows:
 
361
.fi
 
362
.if n \{\
 
363
.RE
 
364
.\}
 
365
.sp
 
366
.if n \{\
 
367
.RS 4
 
368
.\}
165
369
.nf
166
370
typedef struct _XButtonInfo {
167
 
        XID             class;
168
 
        int             length;
169
 
        short           num_buttons;
 
371
XID class;
 
372
int length;
 
373
short num_buttons;
170
374
} XButtonInfo;
171
375
.fi
172
 
.DE
173
 
.LP
174
 
num_buttons specifies the number of buttons that the device has.
175
 
.LP
176
 
The XValuatorInfo structure defines the characteristics of the valuators
177
 
on the device.  It is defined as follows:
178
 
.LP
179
 
.DS
180
 
.nf
181
 
typedef struct  _XValuatorInfo {
182
 
        XID                     class;
183
 
        int                     length;
184
 
        unsigned char           num_axes;
185
 
        unsigned char           mode;
186
 
        unsigned long           motion_buffer;
187
 
        XAxisInfoPtr            axes;
 
376
.if n \{\
 
377
.RE
 
378
.\}
 
379
.sp
 
380
.if n \{\
 
381
.RS 4
 
382
.\}
 
383
.nf
 
384
num_buttons specifies the number of buttons that the device
 
385
has\&.
 
386
.fi
 
387
.if n \{\
 
388
.RE
 
389
.\}
 
390
.sp
 
391
.if n \{\
 
392
.RS 4
 
393
.\}
 
394
.nf
 
395
The XValuatorInfo structure defines the characteristics of the
 
396
valuators on the device\&. It is defined as follows:
 
397
.fi
 
398
.if n \{\
 
399
.RE
 
400
.\}
 
401
.sp
 
402
.if n \{\
 
403
.RS 4
 
404
.\}
 
405
.nf
 
406
typedef struct  _XValuatorInfo {
 
407
XID class;
 
408
int length;
 
409
unsigned char num_axes;
 
410
unsigned char mode;
 
411
unsigned long motion_buffer;
 
412
XAxisInfoPtr axes;
188
413
} XValuatorInfo;
189
414
.fi
190
 
.DE
191
 
num_axes contains the number of axes the device supports.
192
 
.LP
193
 
mode is a constant that has one of the following
194
 
values: Absolute or Relative.  Some devices allow the
195
 
mode to be changed dynamically via the SetDeviceMode
196
 
request.
197
 
.LP
198
 
motion_buffer_size is a cardinal number that specifies
199
 
the number of elements that can be contained in the
200
 
motion history buffer for the device.
201
 
.LP
202
 
The axes field contains a pointer to an XAxisInfo structure.
203
 
.LP
 
415
.if n \{\
 
416
.RE
 
417
.\}
 
418
.sp
 
419
.if n \{\
 
420
.RS 4
 
421
.\}
 
422
.nf
 
423
num_axes contains the number of axes the device supports\&.
 
424
.fi
 
425
.if n \{\
 
426
.RE
 
427
.\}
 
428
.sp
 
429
.if n \{\
 
430
.RS 4
 
431
.\}
 
432
.nf
 
433
mode is a constant that has one of the following values:
 
434
Absolute or Relative\&. Some devices allow the mode to be changed
 
435
dynamically via the SetDeviceMode request\&.
 
436
.fi
 
437
.if n \{\
 
438
.RE
 
439
.\}
 
440
.sp
 
441
.if n \{\
 
442
.RS 4
 
443
.\}
 
444
.nf
 
445
motion_buffer_size is a cardinal number that specifies the
 
446
number of elements that can be contained in the motion history
 
447
buffer for the device\&.
 
448
.fi
 
449
.if n \{\
 
450
.RE
 
451
.\}
 
452
.sp
 
453
.if n \{\
 
454
.RS 4
 
455
.\}
 
456
.nf
 
457
The axes field contains a pointer to an XAxisInfo structure\&.
 
458
.fi
 
459
.if n \{\
 
460
.RE
 
461
.\}
 
462
.sp
 
463
.if n \{\
 
464
.RS 4
 
465
.\}
 
466
.nf
204
467
The XAxisInfo structure is defined as follows:
205
 
.LP
206
 
.DS
 
468
.fi
 
469
.if n \{\
 
470
.RE
 
471
.\}
 
472
.sp
 
473
.if n \{\
 
474
.RS 4
 
475
.\}
207
476
.nf
208
477
typedef struct _XAxisInfo {
209
 
        int     resolution;
210
 
        int     min_value;
211
 
        int     max_value;
 
478
int resolution;
 
479
int min_value;
 
480
int max_value;
212
481
} XAxisInfo;
213
482
.fi
214
 
.DE
215
 
.LP
216
 
The resolution contains a number in counts/meter.
217
 
.LP
218
 
The min_val field contains a number that specifies
219
 
the minimum value the device reports for this axis.
220
 
For devices whose mode is Relative, the min_val field
221
 
will contain 0.
222
 
.LP
223
 
The max_val field contains a number that specifies
224
 
the maximum value the device reports for this axis.
225
 
For devices whose mode is Relative, the max_val field
226
 
will contain 0.
227
 
.LP
228
 
To free the \fIXDeviceInfo\fP array created by \fIXListInputDevices\fP,
229
 
use \fIXFreeDeviceList\fP.
230
 
.SH DIAGNOSTICS
231
 
none.
232
 
.SH "SEE ALSO"
233
 
.br
234
 
\fI\*(xL\fP
 
483
.if n \{\
 
484
.RE
 
485
.\}
 
486
.sp
 
487
.if n \{\
 
488
.RS 4
 
489
.\}
 
490
.nf
 
491
The resolution contains a number in counts/meter\&.
 
492
.fi
 
493
.if n \{\
 
494
.RE
 
495
.\}
 
496
.sp
 
497
.if n \{\
 
498
.RS 4
 
499
.\}
 
500
.nf
 
501
The min_val field contains a number that specifies the minimum
 
502
value the device reports for this axis\&. For devices whose mode
 
503
is Relative, the min_val field will contain 0\&.
 
504
.fi
 
505
.if n \{\
 
506
.RE
 
507
.\}
 
508
.sp
 
509
.if n \{\
 
510
.RS 4
 
511
.\}
 
512
.nf
 
513
The max_val field contains a number that specifies the maximum
 
514
value the device reports for this axis\&. For devices whose mode
 
515
is Relative, the max_val field will contain 0\&.
 
516
.fi
 
517
.if n \{\
 
518
.RE
 
519
.\}
 
520
.sp
 
521
.if n \{\
 
522
.RS 4
 
523
.\}
 
524
.nf
 
525
The XAttachInfo structure is defined as follows:
 
526
             typedef struct _XAttachInfo {
 
527
             int     attached;
 
528
             } XAttachInfo;
 
529
.fi
 
530
.if n \{\
 
531
.RE
 
532
.\}
 
533
.sp
 
534
.if n \{\
 
535
.RS 4
 
536
.\}
 
537
.nf
 
538
If the device is a slave device, attached specifies the device
 
539
ID of the master device this device is attached to\&. If the
 
540
device is not attached to a master device, attached is
 
541
Floating\&. If the device is a master device, attached specifies
 
542
the device ID of the master device this device is paired with\&.
 
543
.fi
 
544
.if n \{\
 
545
.RE
 
546
.\}
 
547
.sp
 
548
.if n \{\
 
549
.RS 4
 
550
.\}
 
551
.nf
 
552
To free the XDeviceInfo array created by XListInputDevices, use
 
553
XFreeDeviceList\&.
 
554
.fi
 
555
.if n \{\
 
556
.RE
 
557
.\}