Lines Matching defs:device
50 struct libinput_device *device;
58 /* libinput device state */
68 /* libevdev device state */
163 if (!ctx->device) {
164 print_line(ANSI_RED "No device connected" ANSI_NORMAL);
167 libinput_device_get_size(ctx->device, &w, &h);
169 libinput_device_get_name(ctx->device),
170 libinput_device_get_sysname(ctx->device));
247 struct libinput_device *device = libinput_event_get_device(ev);
251 if (ctx->device)
254 if (!libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_TABLET_TOOL))
257 ctx->device = libinput_device_ref(device);
259 udev_device = libinput_device_get_udev_device(device);
276 struct libinput_device *device = libinput_event_get_device(ev);
278 if (ctx->device != device)
281 libinput_device_unref(ctx->device);
282 ctx->device = NULL;
492 printf("Usage: libinput debug-tablet [options] [--udev <seat>|--device /dev/input/event0]\n");
533 { "device", required_argument, 0, OPT_DEVICE },