1DMXGetInputAttributes(3) Library Functions Manual DMXGetInputAttributes(3)
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 XListInputDevices(3) call. id is the same as that used by the XListIn‐
19 putDevices(3) call, and must be in the range 0 to one less than the
20 value returned by DMXGetInputCount(3), 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(3) 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(3)).
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(3).
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(3), XListInputDevices(3), DMXGetScreenAttributes(3),
71 DMXAddInput(3), DMX(3), Xdmx(1)
72
73
74
75X Version 11 libdmx 1.1.3 DMXGetInputAttributes(3)