Lines Matching defs:devices
64 XDeviceInfo *devices;
102 devices = XListInputDevices(dpy, &num_devices);
106 printf("%d: \"%s\" [", (int)devices[loop].id, devices[loop].name ? devices[loop].name : "<noname>");
107 switch(devices[loop].use) {
129 if (argc == 3 && devices[loop].name &&
130 StrCaseCmp(devices[loop].name, argv[2]) == 0) {
133 devices[loop].name ? devices[loop].name : "<noname>",
134 devices[loop].id);
136 device = XOpenDevice(dpy, devices[loop].id);
152 if ((argc == 2) && devices[loop].name &&
153 (StrCaseCmp(devices[loop].name, argv[1]) == 0))
154 if (devices[loop].use == IsXExtensionDevice)
158 devices[loop].name ? devices[loop].name : "<noname>");
160 device = XOpenDevice(dpy, devices[loop].id);
174 XFreeDeviceList(devices);