struct litest_device *dev = litest_current_device();
struct libinput *li = dev->libinput;
+ if (!has_2fg_scroll(dev))
+ return;
+
litest_drain_events(li);
test_2fg_scroll(dev, 0.1, 40, 0);
const struct input_absinfo *y;
double y_move;
+ if (!has_2fg_scroll(dev))
+ return;
+
/* We want to move > 5 mm. */
y = libevdev_get_abs_info(dev->evdev, ABS_Y);
if (y->resolution) {
struct libinput_event *event;
struct libinput_event_pointer *ptrev;
+ if (!has_2fg_scroll(dev))
+ return;
+
litest_drain_events(li);
test_2fg_scroll(dev, 0, 30, 0);
struct litest_device *dev = litest_current_device();
struct libinput *li = dev->libinput;
+ if (!has_2fg_scroll(dev))
+ return;
+
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 20);
struct litest_device *dev = litest_current_device();
struct libinput *li = dev->libinput;
+ if (!has_2fg_scroll(dev))
+ return;
+
litest_drain_events(li);
/* start with motion */
struct litest_device *dev = litest_current_device();
struct libinput *li = dev->libinput;
+ if (!has_2fg_scroll(dev))
+ return;
+
litest_drain_events(li);
libinput_device_config_scroll_set_natural_scroll_enabled(dev->libinput_device, 1);