Lines Matching full:device
356 return event->device->seat->libinput; in libinput_event_get_context()
362 return event->device; in libinput_event_get_device()
615 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_x() local
622 return evdev_convert_to_mm(device->abs.absinfo_x, event->absolute.x); in libinput_event_pointer_get_absolute_x()
628 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_y() local
635 return evdev_convert_to_mm(device->abs.absinfo_y, event->absolute.y); in libinput_event_pointer_get_absolute_y()
643 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_x_transformed() local
650 return evdev_device_transform_x(device, event->absolute.x, width); in libinput_event_pointer_get_absolute_x_transformed()
658 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_pointer_get_absolute_y_transformed() local
665 return evdev_device_transform_y(device, event->absolute.y, height); in libinput_event_pointer_get_absolute_y_transformed()
727 struct libinput *libinput = event->base.device->seat->libinput; in libinput_event_pointer_get_axis_value()
755 struct libinput *libinput = event->base.device->seat->libinput; in libinput_event_pointer_get_axis_value_discrete()
782 struct libinput *libinput = event->base.device->seat->libinput; in libinput_event_pointer_get_scroll_value()
811 struct libinput *libinput = event->base.device->seat->libinput; in libinput_event_pointer_get_scroll_value_v120()
906 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_touch_get_x() local
914 return evdev_convert_to_mm(device->abs.absinfo_x, event->point.x); in libinput_event_touch_get_x()
921 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_touch_get_x_transformed() local
929 return evdev_device_transform_x(device, event->point.x, width); in libinput_event_touch_get_x_transformed()
936 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_touch_get_y_transformed() local
944 return evdev_device_transform_y(device, event->point.y, height); in libinput_event_touch_get_y_transformed()
950 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_touch_get_y() local
958 return evdev_convert_to_mm(device->abs.absinfo_y, event->point.y); in libinput_event_touch_get_y()
1299 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_tablet_tool_get_x() local
1309 return evdev_convert_to_mm(device->abs.absinfo_x, in libinput_event_tablet_tool_get_x()
1316 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_tablet_tool_get_y() local
1326 return evdev_convert_to_mm(device->abs.absinfo_y, in libinput_event_tablet_tool_get_y()
1503 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_tablet_tool_get_x_transformed() local
1513 return evdev_device_transform_x(device, in libinput_event_tablet_tool_get_x_transformed()
1522 struct evdev_device *device = evdev_device(event->base.device); in libinput_event_tablet_tool_get_y_transformed() local
1532 return evdev_device_transform_y(device, in libinput_event_tablet_tool_get_y_transformed()
1908 "Failed to load the device quirks from %s%s%s. " in libinput_init_quirks()
1909 "This will negatively affect device behavior. " in libinput_init_quirks()
1910 "See %s/device-quirks.html for details.\n", in libinput_init_quirks()
1923 libinput_device_destroy(struct libinput_device *device);
1949 struct libinput_device *device; in libinput_unref() local
1972 list_for_each_safe(device, in libinput_unref()
1975 libinput_device_destroy(device); in libinput_unref()
2037 if (event->device) in libinput_event_destroy()
2038 libinput_device_unref(event->device); in libinput_event_destroy()
2059 ignore_litest_test_suite_device(struct udev_device *device) in ignore_litest_test_suite_device() argument
2062 udev_device_get_property_value(device, "LIBINPUT_TEST_DEVICE")) in ignore_litest_test_suite_device()
2144 libinput_device_init(struct libinput_device *device, in libinput_device_init() argument
2147 device->seat = seat; in libinput_device_init()
2148 device->refcount = 1; in libinput_device_init()
2149 list_init(&device->event_listeners); in libinput_device_init()
2153 libinput_device_ref(struct libinput_device *device) in libinput_device_ref() argument
2155 device->refcount++; in libinput_device_ref()
2156 return device; in libinput_device_ref()
2160 libinput_device_destroy(struct libinput_device *device) in libinput_device_destroy() argument
2162 assert(list_empty(&device->event_listeners)); in libinput_device_destroy()
2163 evdev_device_destroy(evdev_device(device)); in libinput_device_destroy()
2167 libinput_device_unref(struct libinput_device *device) in libinput_device_unref() argument
2169 assert(device->refcount > 0); in libinput_device_unref()
2170 device->refcount--; in libinput_device_unref()
2171 if (device->refcount == 0) { in libinput_device_unref()
2172 libinput_device_destroy(device); in libinput_device_unref()
2176 return device; in libinput_device_unref()
2225 libinput_device_add_event_listener(struct libinput_device *device, in libinput_device_add_event_listener() argument
2235 list_insert(&device->event_listeners, &listener->link); in libinput_device_add_event_listener()
2288 struct libinput_device *device, in init_event_base() argument
2292 event->device = device; in init_event_base()
2296 post_base_event(struct libinput_device *device, in post_base_event() argument
2300 struct libinput *libinput = device->seat->libinput; in post_base_event()
2301 init_event_base(event, device, type); in post_base_event()
2306 post_device_event(struct libinput_device *device, in post_device_event() argument
2313 struct libinput *libinput = device->seat->libinput; in post_device_event()
2316 log_bug_libinput(device->seat->libinput, in post_device_event()
2324 init_event_base(event, device, type); in post_device_event()
2326 list_for_each_safe(listener, &device->event_listeners, link) in post_device_event()
2329 libinput_post_event(device->seat->libinput, event); in post_device_event()
2333 notify_added_device(struct libinput_device *device) in notify_added_device() argument
2339 post_base_event(device, in notify_added_device()
2351 notify_removed_device(struct libinput_device *device) in notify_removed_device() argument
2357 post_base_event(device, in notify_removed_device()
2369 device_has_cap(struct libinput_device *device, in device_has_cap() argument
2374 if (libinput_device_has_capability(device, cap)) in device_has_cap()
2401 log_bug_libinput(device->seat->libinput, in device_has_cap()
2402 "Event for missing capability %s on device \"%s\"\n", in device_has_cap()
2404 libinput_device_get_name(device)); in device_has_cap()
2410 keyboard_notify_key(struct libinput_device *device, in keyboard_notify_key() argument
2418 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) in keyboard_notify_key()
2423 seat_key_count = update_seat_key_count(device->seat, key, state); in keyboard_notify_key()
2432 post_device_event(device, time, in keyboard_notify_key()
2438 pointer_notify_motion(struct libinput_device *device, in pointer_notify_motion() argument
2445 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_motion()
2456 post_device_event(device, time, in pointer_notify_motion()
2462 pointer_notify_motion_absolute(struct libinput_device *device, in pointer_notify_motion_absolute() argument
2468 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_motion_absolute()
2478 post_device_event(device, time, in pointer_notify_motion_absolute()
2484 pointer_notify_button(struct libinput_device *device, in pointer_notify_button() argument
2492 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_button()
2497 seat_button_count = update_seat_button_count(device->seat, in pointer_notify_button()
2508 post_device_event(device, time, in pointer_notify_button()
2514 pointer_notify_axis_finger(struct libinput_device *device, in pointer_notify_axis_finger() argument
2523 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_axis_finger()
2539 post_device_event(device, time, in pointer_notify_axis_finger()
2542 post_device_event(device, time, in pointer_notify_axis_finger()
2548 pointer_notify_axis_continuous(struct libinput_device *device, in pointer_notify_axis_continuous() argument
2557 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_axis_continuous()
2573 post_device_event(device, time, in pointer_notify_axis_continuous()
2576 post_device_event(device, time, in pointer_notify_axis_continuous()
2582 pointer_notify_axis_legacy_wheel(struct libinput_device *device, in pointer_notify_axis_legacy_wheel() argument
2591 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_axis_legacy_wheel()
2605 post_device_event(device, time, in pointer_notify_axis_legacy_wheel()
2611 pointer_notify_axis_wheel(struct libinput_device *device, in pointer_notify_axis_wheel() argument
2619 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) in pointer_notify_axis_wheel()
2634 post_device_event(device, time, in pointer_notify_axis_wheel()
2642 touch_notify_touch_down(struct libinput_device *device, in touch_notify_touch_down() argument
2650 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) in touch_notify_touch_down()
2662 post_device_event(device, time, in touch_notify_touch_down()
2668 touch_notify_touch_motion(struct libinput_device *device, in touch_notify_touch_motion() argument
2676 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) in touch_notify_touch_motion()
2688 post_device_event(device, time, in touch_notify_touch_motion()
2694 touch_notify_touch_up(struct libinput_device *device, in touch_notify_touch_up() argument
2701 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) in touch_notify_touch_up()
2712 post_device_event(device, time, in touch_notify_touch_up()
2718 touch_notify_touch_cancel(struct libinput_device *device, in touch_notify_touch_cancel() argument
2725 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) in touch_notify_touch_cancel()
2736 post_device_event(device, time, in touch_notify_touch_cancel()
2742 touch_notify_frame(struct libinput_device *device, in touch_notify_frame() argument
2747 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) in touch_notify_frame()
2756 post_device_event(device, time, in touch_notify_frame()
2762 tablet_notify_axis(struct libinput_device *device, in tablet_notify_axis() argument
2785 post_device_event(device, in tablet_notify_axis()
2792 tablet_notify_proximity(struct libinput_device *device, in tablet_notify_proximity() argument
2814 post_device_event(device, in tablet_notify_proximity()
2821 tablet_notify_tip(struct libinput_device *device, in tablet_notify_tip() argument
2843 post_device_event(device, in tablet_notify_tip()
2850 tablet_notify_button(struct libinput_device *device, in tablet_notify_button() argument
2863 seat_button_count = update_seat_button_count(device->seat, in tablet_notify_button()
2878 post_device_event(device, in tablet_notify_button()
2885 tablet_pad_notify_button(struct libinput_device *device, in tablet_pad_notify_button() argument
2906 post_device_event(device, in tablet_pad_notify_button()
2913 tablet_pad_notify_ring(struct libinput_device *device, in tablet_pad_notify_ring() argument
2936 post_device_event(device, in tablet_pad_notify_ring()
2943 tablet_pad_notify_strip(struct libinput_device *device, in tablet_pad_notify_strip() argument
2966 post_device_event(device, in tablet_pad_notify_strip()
2973 tablet_pad_notify_key(struct libinput_device *device, in tablet_pad_notify_key() argument
2988 post_device_event(device, in tablet_pad_notify_key()
2995 gesture_notify(struct libinput_device *device, in gesture_notify() argument
3007 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_GESTURE)) in gesture_notify()
3022 post_device_event(device, time, type, in gesture_notify()
3027 gesture_notify_swipe(struct libinput_device *device, in gesture_notify_swipe() argument
3034 gesture_notify(device, time, type, finger_count, 0, delta, unaccel, in gesture_notify_swipe()
3039 gesture_notify_swipe_end(struct libinput_device *device, in gesture_notify_swipe_end() argument
3046 gesture_notify(device, time, LIBINPUT_EVENT_GESTURE_SWIPE_END, in gesture_notify_swipe_end()
3051 gesture_notify_pinch(struct libinput_device *device, in gesture_notify_pinch() argument
3060 gesture_notify(device, time, type, finger_count, 0, in gesture_notify_pinch()
3065 gesture_notify_pinch_end(struct libinput_device *device, in gesture_notify_pinch_end() argument
3073 gesture_notify(device, time, LIBINPUT_EVENT_GESTURE_PINCH_END, in gesture_notify_pinch_end()
3078 gesture_notify_hold(struct libinput_device *device, in gesture_notify_hold() argument
3084 gesture_notify(device, time, LIBINPUT_EVENT_GESTURE_HOLD_BEGIN, in gesture_notify_hold()
3089 gesture_notify_hold_end(struct libinput_device *device, in gesture_notify_hold_end() argument
3096 gesture_notify(device, time, LIBINPUT_EVENT_GESTURE_HOLD_END, in gesture_notify_hold_end()
3101 switch_notify_toggle(struct libinput_device *device, in switch_notify_toggle() argument
3108 if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_SWITCH)) in switch_notify_toggle()
3119 post_device_event(device, time, in switch_notify_toggle()
3175 if (event->device) in libinput_post_event()
3176 libinput_device_ref(event->device); in libinput_post_event()
3237 libinput_device_set_user_data(struct libinput_device *device, void *user_data) in libinput_device_set_user_data() argument
3239 device->user_data = user_data; in libinput_device_set_user_data()
3243 libinput_device_get_user_data(struct libinput_device *device) in libinput_device_get_user_data() argument
3245 return device->user_data; in libinput_device_get_user_data()
3249 libinput_device_get_context(struct libinput_device *device) in libinput_device_get_context() argument
3251 return libinput_seat_get_context(device->seat); in libinput_device_get_context()
3255 libinput_device_get_device_group(struct libinput_device *device) in libinput_device_get_device_group() argument
3257 return device->group; in libinput_device_get_device_group()
3261 libinput_device_get_sysname(struct libinput_device *device) in libinput_device_get_sysname() argument
3263 return evdev_device_get_sysname((struct evdev_device *) device); in libinput_device_get_sysname()
3267 libinput_device_get_name(struct libinput_device *device) in libinput_device_get_name() argument
3269 return evdev_device_get_name((struct evdev_device *) device); in libinput_device_get_name()
3273 libinput_device_get_id_product(struct libinput_device *device) in libinput_device_get_id_product() argument
3275 return evdev_device_get_id_product((struct evdev_device *) device); in libinput_device_get_id_product()
3279 libinput_device_get_id_vendor(struct libinput_device *device) in libinput_device_get_id_vendor() argument
3281 return evdev_device_get_id_vendor((struct evdev_device *) device); in libinput_device_get_id_vendor()
3285 libinput_device_get_output_name(struct libinput_device *device) in libinput_device_get_output_name() argument
3287 return evdev_device_get_output((struct evdev_device *) device); in libinput_device_get_output_name()
3291 libinput_device_get_seat(struct libinput_device *device) in libinput_device_get_seat() argument
3293 return device->seat; in libinput_device_get_seat()
3297 libinput_device_set_seat_logical_name(struct libinput_device *device, in libinput_device_set_seat_logical_name() argument
3300 struct libinput *libinput = device->seat->libinput; in libinput_device_set_seat_logical_name()
3305 return libinput->interface_backend->device_change_seat(device, in libinput_device_set_seat_logical_name()
3310 libinput_device_get_udev_device(struct libinput_device *device) in libinput_device_get_udev_device() argument
3312 return evdev_device_get_udev_device((struct evdev_device *)device); in libinput_device_get_udev_device()
3316 libinput_device_led_update(struct libinput_device *device, in libinput_device_led_update() argument
3319 evdev_device_led_update((struct evdev_device *) device, leds); in libinput_device_led_update()
3323 libinput_device_has_capability(struct libinput_device *device, in libinput_device_has_capability() argument
3326 return evdev_device_has_capability((struct evdev_device *) device, in libinput_device_has_capability()
3331 libinput_device_get_size(struct libinput_device *device, in libinput_device_get_size() argument
3335 return evdev_device_get_size((struct evdev_device *)device, in libinput_device_get_size()
3341 libinput_device_pointer_has_button(struct libinput_device *device, uint32_t code) in libinput_device_pointer_has_button() argument
3343 return evdev_device_has_button((struct evdev_device *)device, code); in libinput_device_pointer_has_button()
3347 libinput_device_keyboard_has_key(struct libinput_device *device, uint32_t code) in libinput_device_keyboard_has_key() argument
3349 return evdev_device_has_key((struct evdev_device *)device, code); in libinput_device_keyboard_has_key()
3353 libinput_device_touch_get_touch_count(struct libinput_device *device) in libinput_device_touch_get_touch_count() argument
3355 return evdev_device_get_touch_count((struct evdev_device *)device); in libinput_device_touch_get_touch_count()
3359 libinput_device_switch_has_switch(struct libinput_device *device, in libinput_device_switch_has_switch() argument
3362 return evdev_device_has_switch((struct evdev_device *)device, sw); in libinput_device_switch_has_switch()
3366 libinput_device_tablet_pad_has_key(struct libinput_device *device, uint32_t code) in libinput_device_tablet_pad_has_key() argument
3368 return evdev_device_tablet_pad_has_key((struct evdev_device *)device, in libinput_device_tablet_pad_has_key()
3373 libinput_device_tablet_pad_get_num_buttons(struct libinput_device *device) in libinput_device_tablet_pad_get_num_buttons() argument
3375 return evdev_device_tablet_pad_get_num_buttons((struct evdev_device *)device); in libinput_device_tablet_pad_get_num_buttons()
3379 libinput_device_tablet_pad_get_num_rings(struct libinput_device *device) in libinput_device_tablet_pad_get_num_rings() argument
3381 return evdev_device_tablet_pad_get_num_rings((struct evdev_device *)device); in libinput_device_tablet_pad_get_num_rings()
3385 libinput_device_tablet_pad_get_num_strips(struct libinput_device *device) in libinput_device_tablet_pad_get_num_strips() argument
3387 return evdev_device_tablet_pad_get_num_strips((struct evdev_device *)device); in libinput_device_tablet_pad_get_num_strips()
3391 libinput_device_tablet_pad_get_num_mode_groups(struct libinput_device *device) in libinput_device_tablet_pad_get_num_mode_groups() argument
3393 return evdev_device_tablet_pad_get_num_mode_groups((struct evdev_device *)device); in libinput_device_tablet_pad_get_num_mode_groups()
3397 libinput_device_tablet_pad_get_mode_group(struct libinput_device *device, in libinput_device_tablet_pad_get_mode_group() argument
3400 return evdev_device_tablet_pad_get_mode_group((struct evdev_device *)device, in libinput_device_tablet_pad_get_mode_group()
3428 libinput_device_tablet_pad_get_num_buttons(group->device)) in libinput_tablet_pad_mode_group_has_button()
3439 libinput_device_tablet_pad_get_num_rings(group->device)) in libinput_tablet_pad_mode_group_has_ring()
3450 libinput_device_tablet_pad_get_num_strips(group->device)) in libinput_tablet_pad_mode_group_has_strip()
3461 libinput_device_tablet_pad_get_num_buttons(group->device)) in libinput_tablet_pad_mode_group_button_is_toggle()
3810 libinput_device_set_device_group(struct libinput_device *device, in libinput_device_set_device_group() argument
3813 device->group = group; in libinput_device_set_device_group()
3872 libinput_device_config_tap_get_finger_count(struct libinput_device *device) in libinput_device_config_tap_get_finger_count() argument
3874 return device->config.tap ? device->config.tap->count(device) : 0; in libinput_device_config_tap_get_finger_count()
3878 libinput_device_config_tap_set_enabled(struct libinput_device *device, in libinput_device_config_tap_set_enabled() argument
3885 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_set_enabled()
3889 return device->config.tap->set_enabled(device, enable); in libinput_device_config_tap_set_enabled()
3894 libinput_device_config_tap_get_enabled(struct libinput_device *device) in libinput_device_config_tap_get_enabled() argument
3896 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_enabled()
3899 return device->config.tap->get_enabled(device); in libinput_device_config_tap_get_enabled()
3903 libinput_device_config_tap_get_default_enabled(struct libinput_device *device) in libinput_device_config_tap_get_default_enabled() argument
3905 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_default_enabled()
3908 return device->config.tap->get_default(device); in libinput_device_config_tap_get_default_enabled()
3912 libinput_device_config_tap_set_button_map(struct libinput_device *device, in libinput_device_config_tap_set_button_map() argument
3923 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_set_button_map()
3926 return device->config.tap->set_map(device, map); in libinput_device_config_tap_set_button_map()
3930 libinput_device_config_tap_get_button_map(struct libinput_device *device) in libinput_device_config_tap_get_button_map() argument
3932 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_button_map()
3935 return device->config.tap->get_map(device); in libinput_device_config_tap_get_button_map()
3939 libinput_device_config_tap_get_default_button_map(struct libinput_device *device) in libinput_device_config_tap_get_default_button_map() argument
3941 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_default_button_map()
3944 return device->config.tap->get_default_map(device); in libinput_device_config_tap_get_default_button_map()
3948 libinput_device_config_tap_set_drag_enabled(struct libinput_device *device, in libinput_device_config_tap_set_drag_enabled() argument
3955 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_set_drag_enabled()
3959 return device->config.tap->set_drag_enabled(device, enable); in libinput_device_config_tap_set_drag_enabled()
3963 libinput_device_config_tap_get_drag_enabled(struct libinput_device *device) in libinput_device_config_tap_get_drag_enabled() argument
3965 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_drag_enabled()
3968 return device->config.tap->get_drag_enabled(device); in libinput_device_config_tap_get_drag_enabled()
3972 libinput_device_config_tap_get_default_drag_enabled(struct libinput_device *device) in libinput_device_config_tap_get_default_drag_enabled() argument
3974 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_default_drag_enabled()
3977 return device->config.tap->get_default_drag_enabled(device); in libinput_device_config_tap_get_default_drag_enabled()
3981 libinput_device_config_tap_set_drag_lock_enabled(struct libinput_device *device, in libinput_device_config_tap_set_drag_lock_enabled() argument
3988 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_set_drag_lock_enabled()
3992 return device->config.tap->set_draglock_enabled(device, enable); in libinput_device_config_tap_set_drag_lock_enabled()
3996 libinput_device_config_tap_get_drag_lock_enabled(struct libinput_device *device) in libinput_device_config_tap_get_drag_lock_enabled() argument
3998 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_drag_lock_enabled()
4001 return device->config.tap->get_draglock_enabled(device); in libinput_device_config_tap_get_drag_lock_enabled()
4005 libinput_device_config_tap_get_default_drag_lock_enabled(struct libinput_device *device) in libinput_device_config_tap_get_default_drag_lock_enabled() argument
4007 if (libinput_device_config_tap_get_finger_count(device) == 0) in libinput_device_config_tap_get_default_drag_lock_enabled()
4010 return device->config.tap->get_default_draglock_enabled(device); in libinput_device_config_tap_get_default_drag_lock_enabled()
4014 libinput_device_config_calibration_has_matrix(struct libinput_device *device) in libinput_device_config_calibration_has_matrix() argument
4016 return device->config.calibration ? in libinput_device_config_calibration_has_matrix()
4017 device->config.calibration->has_matrix(device) : 0; in libinput_device_config_calibration_has_matrix()
4021 libinput_device_config_calibration_set_matrix(struct libinput_device *device, in libinput_device_config_calibration_set_matrix() argument
4024 if (!libinput_device_config_calibration_has_matrix(device)) in libinput_device_config_calibration_set_matrix()
4027 return device->config.calibration->set_matrix(device, matrix); in libinput_device_config_calibration_set_matrix()
4031 libinput_device_config_calibration_get_matrix(struct libinput_device *device, in libinput_device_config_calibration_get_matrix() argument
4034 if (!libinput_device_config_calibration_has_matrix(device)) in libinput_device_config_calibration_get_matrix()
4037 return device->config.calibration->get_matrix(device, matrix); in libinput_device_config_calibration_get_matrix()
4041 libinput_device_config_calibration_get_default_matrix(struct libinput_device *device, in libinput_device_config_calibration_get_default_matrix() argument
4044 if (!libinput_device_config_calibration_has_matrix(device)) in libinput_device_config_calibration_get_default_matrix()
4047 return device->config.calibration->get_default_matrix(device, matrix); in libinput_device_config_calibration_get_default_matrix()
4051 libinput_device_config_send_events_get_modes(struct libinput_device *device) in libinput_device_config_send_events_get_modes() argument
4055 if (device->config.sendevents) in libinput_device_config_send_events_get_modes()
4056 modes |= device->config.sendevents->get_modes(device); in libinput_device_config_send_events_get_modes()
4062 libinput_device_config_send_events_set_mode(struct libinput_device *device, in libinput_device_config_send_events_set_mode() argument
4065 if ((libinput_device_config_send_events_get_modes(device) & mode) != mode) in libinput_device_config_send_events_set_mode()
4068 if (device->config.sendevents) in libinput_device_config_send_events_set_mode()
4069 return device->config.sendevents->set_mode(device, mode); in libinput_device_config_send_events_set_mode()
4076 libinput_device_config_send_events_get_mode(struct libinput_device *device) in libinput_device_config_send_events_get_mode() argument
4078 if (device->config.sendevents) in libinput_device_config_send_events_get_mode()
4079 return device->config.sendevents->get_mode(device); in libinput_device_config_send_events_get_mode()
4085 libinput_device_config_send_events_get_default_mode(struct libinput_device *device) in libinput_device_config_send_events_get_default_mode() argument
4091 libinput_device_config_accel_is_available(struct libinput_device *device) in libinput_device_config_accel_is_available() argument
4093 return device->config.accel ? in libinput_device_config_accel_is_available()
4094 device->config.accel->available(device) : 0; in libinput_device_config_accel_is_available()
4098 libinput_device_config_accel_set_speed(struct libinput_device *device, in libinput_device_config_accel_set_speed() argument
4105 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_set_speed()
4108 return device->config.accel->set_speed(device, speed); in libinput_device_config_accel_set_speed()
4111 libinput_device_config_accel_get_speed(struct libinput_device *device) in libinput_device_config_accel_get_speed() argument
4113 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_get_speed()
4116 return device->config.accel->get_speed(device); in libinput_device_config_accel_get_speed()
4120 libinput_device_config_accel_get_default_speed(struct libinput_device *device) in libinput_device_config_accel_get_default_speed() argument
4122 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_get_default_speed()
4125 return device->config.accel->get_default_speed(device); in libinput_device_config_accel_get_default_speed()
4129 libinput_device_config_accel_get_profiles(struct libinput_device *device) in libinput_device_config_accel_get_profiles() argument
4131 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_get_profiles()
4134 return device->config.accel->get_profiles(device); in libinput_device_config_accel_get_profiles()
4138 libinput_device_config_accel_get_profile(struct libinput_device *device) in libinput_device_config_accel_get_profile() argument
4140 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_get_profile()
4143 return device->config.accel->get_profile(device); in libinput_device_config_accel_get_profile()
4147 libinput_device_config_accel_get_default_profile(struct libinput_device *device) in libinput_device_config_accel_get_default_profile() argument
4149 if (!libinput_device_config_accel_is_available(device)) in libinput_device_config_accel_get_default_profile()
4152 return device->config.accel->get_default_profile(device); in libinput_device_config_accel_get_default_profile()
4156 libinput_device_config_accel_set_profile(struct libinput_device *device, in libinput_device_config_accel_set_profile() argument
4168 if (!libinput_device_config_accel_is_available(device) || in libinput_device_config_accel_set_profile()
4169 (libinput_device_config_accel_get_profiles(device) & profile) == 0) in libinput_device_config_accel_set_profile()
4172 return device->config.accel->set_profile(device, profile); in libinput_device_config_accel_set_profile()
4226 libinput_device_config_accel_apply(struct libinput_device *device, in libinput_device_config_accel_apply() argument
4230 status = libinput_device_config_accel_set_profile(device, accel_config->profile); in libinput_device_config_accel_apply()
4238 double speed = libinput_device_config_accel_get_default_speed(device); in libinput_device_config_accel_apply()
4239 return libinput_device_config_accel_set_speed(device, speed); in libinput_device_config_accel_apply()
4242 return device->config.accel->set_accel_config(device, accel_config); in libinput_device_config_accel_apply()
4303 libinput_device_config_scroll_has_natural_scroll(struct libinput_device *device) in libinput_device_config_scroll_has_natural_scroll() argument
4305 if (!device->config.natural_scroll) in libinput_device_config_scroll_has_natural_scroll()
4308 return device->config.natural_scroll->has(device); in libinput_device_config_scroll_has_natural_scroll()
4312 libinput_device_config_scroll_set_natural_scroll_enabled(struct libinput_device *device, in libinput_device_config_scroll_set_natural_scroll_enabled() argument
4315 if (!libinput_device_config_scroll_has_natural_scroll(device)) in libinput_device_config_scroll_set_natural_scroll_enabled()
4318 return device->config.natural_scroll->set_enabled(device, enabled); in libinput_device_config_scroll_set_natural_scroll_enabled()
4322 libinput_device_config_scroll_get_natural_scroll_enabled(struct libinput_device *device) in libinput_device_config_scroll_get_natural_scroll_enabled() argument
4324 if (!device->config.natural_scroll) in libinput_device_config_scroll_get_natural_scroll_enabled()
4327 return device->config.natural_scroll->get_enabled(device); in libinput_device_config_scroll_get_natural_scroll_enabled()
4331 libinput_device_config_scroll_get_default_natural_scroll_enabled(struct libinput_device *device) in libinput_device_config_scroll_get_default_natural_scroll_enabled() argument
4333 if (!device->config.natural_scroll) in libinput_device_config_scroll_get_default_natural_scroll_enabled()
4336 return device->config.natural_scroll->get_default_enabled(device); in libinput_device_config_scroll_get_default_natural_scroll_enabled()
4340 libinput_device_config_left_handed_is_available(struct libinput_device *device) in libinput_device_config_left_handed_is_available() argument
4342 if (!device->config.left_handed) in libinput_device_config_left_handed_is_available()
4345 return device->config.left_handed->has(device); in libinput_device_config_left_handed_is_available()
4349 libinput_device_config_left_handed_set(struct libinput_device *device, in libinput_device_config_left_handed_set() argument
4352 if (!libinput_device_config_left_handed_is_available(device)) in libinput_device_config_left_handed_set()
4355 return device->config.left_handed->set(device, left_handed); in libinput_device_config_left_handed_set()
4359 libinput_device_config_left_handed_get(struct libinput_device *device) in libinput_device_config_left_handed_get() argument
4361 if (!libinput_device_config_left_handed_is_available(device)) in libinput_device_config_left_handed_get()
4364 return device->config.left_handed->get(device); in libinput_device_config_left_handed_get()
4368 libinput_device_config_left_handed_get_default(struct libinput_device *device) in libinput_device_config_left_handed_get_default() argument
4370 if (!libinput_device_config_left_handed_is_available(device)) in libinput_device_config_left_handed_get_default()
4373 return device->config.left_handed->get_default(device); in libinput_device_config_left_handed_get_default()
4377 libinput_device_config_click_get_methods(struct libinput_device *device) in libinput_device_config_click_get_methods() argument
4379 if (device->config.click_method) in libinput_device_config_click_get_methods()
4380 return device->config.click_method->get_methods(device); in libinput_device_config_click_get_methods()
4386 libinput_device_config_click_set_method(struct libinput_device *device, in libinput_device_config_click_set_method() argument
4399 if ((libinput_device_config_click_get_methods(device) & method) != method) in libinput_device_config_click_set_method()
4402 if (device->config.click_method) in libinput_device_config_click_set_method()
4403 return device->config.click_method->set_method(device, method); in libinput_device_config_click_set_method()
4410 libinput_device_config_click_get_method(struct libinput_device *device) in libinput_device_config_click_get_method() argument
4412 if (device->config.click_method) in libinput_device_config_click_get_method()
4413 return device->config.click_method->get_method(device); in libinput_device_config_click_get_method()
4419 libinput_device_config_click_get_default_method(struct libinput_device *device) in libinput_device_config_click_get_default_method() argument
4421 if (device->config.click_method) in libinput_device_config_click_get_default_method()
4422 return device->config.click_method->get_default_method(device); in libinput_device_config_click_get_default_method()
4429 struct libinput_device *device) in libinput_device_config_middle_emulation_is_available() argument
4431 if (device->config.middle_emulation) in libinput_device_config_middle_emulation_is_available()
4432 return device->config.middle_emulation->available(device); in libinput_device_config_middle_emulation_is_available()
4439 struct libinput_device *device, in libinput_device_config_middle_emulation_set_enabled() argument
4443 libinput_device_config_middle_emulation_is_available(device); in libinput_device_config_middle_emulation_set_enabled()
4458 return device->config.middle_emulation->set(device, enable); in libinput_device_config_middle_emulation_set_enabled()
4463 struct libinput_device *device) in libinput_device_config_middle_emulation_get_enabled() argument
4465 if (!libinput_device_config_middle_emulation_is_available(device)) in libinput_device_config_middle_emulation_get_enabled()
4468 return device->config.middle_emulation->get(device); in libinput_device_config_middle_emulation_get_enabled()
4473 struct libinput_device *device) in libinput_device_config_middle_emulation_get_default_enabled() argument
4475 if (!libinput_device_config_middle_emulation_is_available(device)) in libinput_device_config_middle_emulation_get_default_enabled()
4478 return device->config.middle_emulation->get_default(device); in libinput_device_config_middle_emulation_get_default_enabled()
4482 libinput_device_config_scroll_get_methods(struct libinput_device *device) in libinput_device_config_scroll_get_methods() argument
4484 if (device->config.scroll_method) in libinput_device_config_scroll_get_methods()
4485 return device->config.scroll_method->get_methods(device); in libinput_device_config_scroll_get_methods()
4491 libinput_device_config_scroll_set_method(struct libinput_device *device, in libinput_device_config_scroll_set_method() argument
4505 if ((libinput_device_config_scroll_get_methods(device) & method) != method) in libinput_device_config_scroll_set_method()
4508 if (device->config.scroll_method) in libinput_device_config_scroll_set_method()
4509 return device->config.scroll_method->set_method(device, method); in libinput_device_config_scroll_set_method()
4516 libinput_device_config_scroll_get_method(struct libinput_device *device) in libinput_device_config_scroll_get_method() argument
4518 if (device->config.scroll_method) in libinput_device_config_scroll_get_method()
4519 return device->config.scroll_method->get_method(device); in libinput_device_config_scroll_get_method()
4525 libinput_device_config_scroll_get_default_method(struct libinput_device *device) in libinput_device_config_scroll_get_default_method() argument
4527 if (device->config.scroll_method) in libinput_device_config_scroll_get_default_method()
4528 return device->config.scroll_method->get_default_method(device); in libinput_device_config_scroll_get_default_method()
4534 libinput_device_config_scroll_set_button(struct libinput_device *device, in libinput_device_config_scroll_set_button() argument
4537 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_set_button()
4541 if (button && !libinput_device_pointer_has_button(device, button)) in libinput_device_config_scroll_set_button()
4544 return device->config.scroll_method->set_button(device, button); in libinput_device_config_scroll_set_button()
4548 libinput_device_config_scroll_get_button(struct libinput_device *device) in libinput_device_config_scroll_get_button() argument
4550 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_get_button()
4554 return device->config.scroll_method->get_button(device); in libinput_device_config_scroll_get_button()
4558 libinput_device_config_scroll_get_default_button(struct libinput_device *device) in libinput_device_config_scroll_get_default_button() argument
4560 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_get_default_button()
4564 return device->config.scroll_method->get_default_button(device); in libinput_device_config_scroll_get_default_button()
4568 libinput_device_config_scroll_set_button_lock(struct libinput_device *device, in libinput_device_config_scroll_set_button_lock() argument
4571 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_set_button_lock()
4583 return device->config.scroll_method->set_button_lock(device, state); in libinput_device_config_scroll_set_button_lock()
4587 libinput_device_config_scroll_get_button_lock(struct libinput_device *device) in libinput_device_config_scroll_get_button_lock() argument
4589 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_get_button_lock()
4593 return device->config.scroll_method->get_button_lock(device); in libinput_device_config_scroll_get_button_lock()
4597 libinput_device_config_scroll_get_default_button_lock(struct libinput_device *device) in libinput_device_config_scroll_get_default_button_lock() argument
4599 if ((libinput_device_config_scroll_get_methods(device) & in libinput_device_config_scroll_get_default_button_lock()
4603 return device->config.scroll_method->get_default_button_lock(device); in libinput_device_config_scroll_get_default_button_lock()
4607 libinput_device_config_dwt_is_available(struct libinput_device *device) in libinput_device_config_dwt_is_available() argument
4609 if (!device->config.dwt) in libinput_device_config_dwt_is_available()
4612 return device->config.dwt->is_available(device); in libinput_device_config_dwt_is_available()
4616 libinput_device_config_dwt_set_enabled(struct libinput_device *device, in libinput_device_config_dwt_set_enabled() argument
4623 if (!libinput_device_config_dwt_is_available(device)) in libinput_device_config_dwt_set_enabled()
4627 return device->config.dwt->set_enabled(device, enable); in libinput_device_config_dwt_set_enabled()
4631 libinput_device_config_dwt_get_enabled(struct libinput_device *device) in libinput_device_config_dwt_get_enabled() argument
4633 if (!libinput_device_config_dwt_is_available(device)) in libinput_device_config_dwt_get_enabled()
4636 return device->config.dwt->get_enabled(device); in libinput_device_config_dwt_get_enabled()
4640 libinput_device_config_dwt_get_default_enabled(struct libinput_device *device) in libinput_device_config_dwt_get_default_enabled() argument
4642 if (!libinput_device_config_dwt_is_available(device)) in libinput_device_config_dwt_get_default_enabled()
4645 return device->config.dwt->get_default_enabled(device); in libinput_device_config_dwt_get_default_enabled()
4649 libinput_device_config_dwtp_is_available(struct libinput_device *device) in libinput_device_config_dwtp_is_available() argument
4651 if (!device->config.dwtp) in libinput_device_config_dwtp_is_available()
4654 return device->config.dwtp->is_available(device); in libinput_device_config_dwtp_is_available()
4658 libinput_device_config_dwtp_set_enabled(struct libinput_device *device, in libinput_device_config_dwtp_set_enabled() argument
4665 if (!libinput_device_config_dwtp_is_available(device)) in libinput_device_config_dwtp_set_enabled()
4669 return device->config.dwtp->set_enabled(device, enable); in libinput_device_config_dwtp_set_enabled()
4673 libinput_device_config_dwtp_get_enabled(struct libinput_device *device) in libinput_device_config_dwtp_get_enabled() argument
4675 if (!libinput_device_config_dwtp_is_available(device)) in libinput_device_config_dwtp_get_enabled()
4678 return device->config.dwtp->get_enabled(device); in libinput_device_config_dwtp_get_enabled()
4682 libinput_device_config_dwtp_get_default_enabled(struct libinput_device *device) in libinput_device_config_dwtp_get_default_enabled() argument
4684 if (!libinput_device_config_dwtp_is_available(device)) in libinput_device_config_dwtp_get_default_enabled()
4687 return device->config.dwtp->get_default_enabled(device); in libinput_device_config_dwtp_get_default_enabled()
4691 libinput_device_config_rotation_is_available(struct libinput_device *device) in libinput_device_config_rotation_is_available() argument
4693 if (!device->config.rotation) in libinput_device_config_rotation_is_available()
4696 return device->config.rotation->is_available(device); in libinput_device_config_rotation_is_available()
4700 libinput_device_config_rotation_set_angle(struct libinput_device *device, in libinput_device_config_rotation_set_angle() argument
4703 if (!libinput_device_config_rotation_is_available(device)) in libinput_device_config_rotation_set_angle()
4710 return device->config.rotation->set_angle(device, degrees_cw); in libinput_device_config_rotation_set_angle()
4714 libinput_device_config_rotation_get_angle(struct libinput_device *device) in libinput_device_config_rotation_get_angle() argument
4716 if (!libinput_device_config_rotation_is_available(device)) in libinput_device_config_rotation_get_angle()
4719 return device->config.rotation->get_angle(device); in libinput_device_config_rotation_get_angle()
4723 libinput_device_config_rotation_get_default_angle(struct libinput_device *device) in libinput_device_config_rotation_get_default_angle() argument
4725 if (!libinput_device_config_rotation_is_available(device)) in libinput_device_config_rotation_get_default_angle()
4728 return device->config.rotation->get_default_angle(device); in libinput_device_config_rotation_get_default_angle()