Lines Matching refs:device

393 	struct libinput_device *device;
409 device = libinput_path_add_device(li, *p);
410 if (!device) {
411 fprintf(stderr, "Failed to initialize device %s\n", *p);
457 tools_device_apply_config(struct libinput_device *device,
460 const char *name = libinput_device_get_name(device);
462 if (libinput_device_config_send_events_get_modes(device) &
465 libinput_device_config_send_events_set_mode(device,
474 libinput_device_config_tap_set_enabled(device, options->tapping);
476 libinput_device_config_tap_set_button_map(device,
479 libinput_device_config_tap_set_drag_enabled(device,
482 libinput_device_config_tap_set_drag_lock_enabled(device,
485 libinput_device_config_scroll_set_natural_scroll_enabled(device,
488 libinput_device_config_left_handed_set(device, options->left_handed);
490 libinput_device_config_middle_emulation_set_enabled(device,
494 libinput_device_config_dwt_set_enabled(device, options->dwt);
497 libinput_device_config_dwtp_set_enabled(device, options->dwtp);
500 libinput_device_config_click_set_method(device, options->click_method);
503 libinput_device_config_scroll_set_method(device,
506 libinput_device_config_scroll_set_button(device,
509 libinput_device_config_scroll_set_button_lock(device,
512 if (libinput_device_config_accel_is_available(device)) {
513 libinput_device_config_accel_set_speed(device,
516 libinput_device_config_accel_set_profile(device,
528 libinput_device_config_accel_apply(device, config);
533 libinput_device_config_rotation_set_angle(device, options->angle % 360);
542 struct udev_device *device;
556 device = udev_device_new_from_syspath(udev, path);
557 if (!device)
560 sysname = udev_device_get_sysname(device);
562 udev_device_unref(device);
566 if (udev_device_get_property_value(device, udev_tag))
567 device_node = safe_strdup(udev_device_get_devnode(device));
569 udev_device_unref(device);
739 struct udev_device *device,
748 quirks = quirks_fetch_for_device(ctx, device);