Lines Matching defs:device

47 	struct evdev_device *device;
73 return evdev_libinput_context(totem->device);
123 * device, so let's not go too hard on ourselves*/
133 mm = evdev_device_units_to_mm(totem->device, &slot->axes.point);
180 struct evdev_device *device,
193 evdev_log_info(device,
202 struct evdev_device *device,
211 evdev_log_bug_libinput(device,
247 evdev_log_info(device,
253 evdev_log_info(device,
267 struct evdev_device *device = totem->device;
280 slot->axes.point.x = libevdev_get_slot_value(device->evdev,
283 slot->axes.point.y = libevdev_get_slot_value(device->evdev,
290 int angle = libevdev_get_slot_value(device->evdev,
304 major = libevdev_get_slot_value(device->evdev,
307 minor = libevdev_get_slot_value(device->evdev,
310 rmajor = libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MAJOR);
311 rminor = libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MINOR);
322 axes.delta = filter_dispatch(device->pointer.filter, &delta, tool, time);
356 struct evdev_device *device = totem->device;
358 slot->axes.point.x = libevdev_get_slot_value(device->evdev,
361 slot->axes.point.y = libevdev_get_slot_value(device->evdev,
373 struct evdev_device *device = totem->device;
399 tablet_notify_proximity(&device->base,
406 tablet_notify_tip(&device->base,
417 tablet_notify_axis(&device->base,
449 tablet_notify_button(&device->base,
466 tablet_notify_tip(&device->base,
473 tablet_notify_proximity(&device->base,
515 struct evdev_device *device,
525 totem_process_abs(totem, device, e, time);
528 totem_process_key(totem, device, e, time);
541 evdev_log_error(device,
551 struct evdev_device *device)
554 uint64_t now = libinput_now(evdev_libinput_context(device));
574 tablet_notify_button(&device->base,
587 tablet_notify_tip(&device->base,
594 tablet_notify_proximity(&device->base,
614 totem_interface_device_added(struct evdev_device *device,
617 struct totem_dispatch *totem = totem_dispatch(device->dispatch);
621 evdev_device_get_id_vendor(device)) ||
623 evdev_device_get_id_product(device)))
626 /* virtual devices don't have device groups, so check for that
628 g1 = libinput_device_get_device_group(&device->base);
634 evdev_log_bug_libinput(device,
635 "already has a paired touch device, ignoring (%s)\n",
641 evdev_log_info(device, "%s: is the totem touch device\n", added_device->devname);
645 totem_interface_device_removed(struct evdev_device *device,
648 struct totem_dispatch *totem = totem_dispatch(device->dispatch);
654 libinput_now(evdev_libinput_context(device)));
659 totem_interface_initial_proximity(struct evdev_device *device,
663 uint64_t now = libinput_now(evdev_libinput_context(device));
671 tracking_id = libevdev_get_slot_value(device->evdev,
681 tablet_notify_proximity(&device->base,
688 tablet_notify_tip(&device->base,
717 totem_reject_device(struct evdev_device *device)
719 struct libevdev *evdev = device->evdev;
728 has_size = evdev_device_get_size(device, &w, &h) == 0;
730 libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MAJOR) > 0 ||
731 libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MINOR) > 0;
736 evdev_log_bug_libinput(device,
738 "Ignoring this device.\n",
773 totem_init_accel(struct totem_dispatch *totem, struct evdev_device *device)
778 x = device->abs.absinfo_x;
779 y = device->abs.absinfo_y;
787 evdev_device_init_pointer_acceleration(device, filter);
791 device->pointer.config.get_profiles = totem_accel_config_get_profiles;
792 device->pointer.config.set_profile = totem_accel_config_set_profile;
793 device->pointer.config.get_profile = totem_accel_config_get_profile;
794 device->pointer.config.get_default_profile = totem_accel_config_get_default_profile;
800 evdev_totem_create(struct evdev_device *device)
806 if (totem_reject_device(device))
810 totem->device = device;
814 num_slots = libevdev_get_num_slots(device->evdev);
818 totem->slot = libevdev_get_current_slot(device->evdev);
828 evdev_init_sendevents(device, &totem->base);
829 totem_init_accel(totem, device);