1DMXGetInputAttributes(3X) DMXGetInputAttributes(3X)
2
3
4
6 DMXGetInputAttributes - determine input device attributes
7
9 #include <X11/extensions/dmxext.h>
10
11 Bool DMXGetInputAttributes(Display *dpy,
12 int id,
13 DMXInputAttributes *attr);
14
16 DMXGetInputAttributes() returns information about the input device
17 specified with id. This information cannot be obtained from the
18 XListInputDeivices(3X) call. id is the same as that used by the
19 XListInputDevices(3X) call, and must be in the range 0 to one less than
20 the value returned by DMXGetInputCount(3X), inclusive.
21
22 The DMXInputAttributes structure is:
23
24 typedef struct {
25 DMXInputEnum inputType;
26 int physicalScreen;
27 int physicalId;
28 Bool isCore;
29 Bool sendsCore;
30 const char *name;
31 Bool detached;
32 } DMXInputAttributes;
33
34 The value of inputType will always be valid, and will have one of the
35 following values, depending on the type of input: DMXLocalInputType ,
36 DMXConsoleInputType , or DMXBackendInputType .
37
38 For local devices, all other fields returned, except isCore and send‐
39 sCore , are invalid.
40
41 For console devices, physicalScreen and physicalID will be invalid,
42 and name will return the name of the X server on which the console win‐
43 dow is displayed.
44
45 For back-end devices, physicalScreen will identify the back-end display
46 and can be used as an argument to DMXGetScreenAttributes(3X) to obtain
47 more information; physicalId will be the XInput device id on the back-
48 end X server; and name will be invalid (since it does not provide any
49 additional information that cannot be obtained with DMXGetScreenAt‐
50 tributes(3X)).
51
52 If isCore is True, then this device is active as a true core input
53 device and will send core events. If sendsCore is True, then this
54 device is an XInput extension device, but sends core events instead of
55 extension events. This behavior is different from that of XFree86 or
56 Xorg, where XInput extension devices may send both extension events and
57 core events.
58
59 If detached is True, then this device has been detached and is no
60 longer producing input events. The device may be reattached using DMX‐
61 AddInput(3X).
62
64 DMXGetInputAttributes() returns True unless there is a protocol error.
65
66 DMXGetInputAttributes() can generate BadValue (if the value of id is
67 out of range).
68
70 DMXGetInputCount(3X), XListInputDevices(3X), DMXGetScreenAt‐
71 tributes(3X), DMXAddInput(3X), DMX(3X), Xdmx(1)
72
73
74
75X Version 11 libdmx 1.0.2 DMXGetInputAttributes(3X)