libinput_dispatch(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 4);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
libinput_dispatch(li);
for (ntaps = 0; ntaps < range; ntaps++) {
libinput_event_destroy(event);
ck_assert_int_gt(curtime, oldtime);
- litest_touch_move_to(dev, 1, 70, 50, 90, 50, 10, 4);
+ litest_touch_move_to(dev, 1, 70, 50, 90, 50, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
libinput_event_destroy(event);
ck_assert_int_gt(curtime, oldtime);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 4);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
libinput_event_destroy(event);
ck_assert_int_gt(curtime, oldtime);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 4);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
libinput_event_destroy(event);
ck_assert_int_gt(curtime, oldtime);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 4);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
libinput_dispatch(li);
litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
/* lift finger, set down again, should continue dragging */
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
/* lift finger, set down again, should continue dragging */
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20, 2);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 20);
libinput_dispatch(li);
litest_assert_button_event(li, BTN_LEFT,
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 30, 70);
litest_touch_down(dev, 1, 80, 70);
- litest_touch_move_to(dev, 0, 30, 70, 30, 30, 10, 10);
+ litest_touch_move_to(dev, 0, 30, 70, 30, 30, 10);
libinput_dispatch(li);
litest_assert_button_event(li, BTN_LEFT,
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 30, 70);
litest_touch_down(dev, 1, 80, 90);
- litest_touch_move_to(dev, 0, 30, 70, 30, 30, 5, 40);
+ litest_touch_move_to(dev, 0, 30, 70, 30, 30, 5);
libinput_dispatch(li);
litest_assert_button_event(li, BTN_LEFT,
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 30, 70);
litest_touch_down(dev, 1, 80, 90);
- litest_touch_move_to(dev, 0, 30, 70, 30, 30, 10, 10);
+ litest_touch_move_to(dev, 0, 30, 70, 30, 30, 10);
libinput_dispatch(li);
litest_assert_button_event(li, BTN_LEFT,
-> no event
*/
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 90, 90, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 90, 90, 10);
litest_drain_events(dev->libinput);
litest_touch_down(dev, 1, 70, 50);
litest_touch_down(dev, 0, 50, 50);
litest_touch_down(dev, 1, 70, 50);
libinput_dispatch(dev->libinput);
- litest_touch_move_to(dev, 1, 70, 50, 90, 90, 10, 0);
+ litest_touch_move_to(dev, 1, 70, 50, 90, 90, 10);
libinput_dispatch(dev->libinput);
litest_touch_up(dev, 0);
litest_touch_up(dev, 1);
litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 50, 10);
litest_assert_button_event(li, BTN_LEFT,
LIBINPUT_BUTTON_STATE_PRESSED);
litest_touch_down(dev, 1, 70, 50);
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 50, 50, 50, 70, 10, 0);
- litest_touch_move_to(dev, 1, 70, 50, 50, 70, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 50, 70, 10);
+ litest_touch_move_to(dev, 1, 70, 50, 50, 70, 10);
litest_drain_events(li);
/* drop below the pressure threshold in the same frame as starting a
litest_touch_down(dev, 1, 70, 50);
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 50, 50, 50, 70, 10, 0);
- litest_touch_move_to(dev, 1, 70, 50, 50, 70, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 50, 70, 10);
+ litest_touch_move_to(dev, 1, 70, 50, 50, 70, 10);
litest_drain_events(li);
/* drop below the pressure threshold in the same frame as starting a
litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
/* Pointer jump should be ignored */
- litest_touch_move_to(dev, 0, 50, 50, 20, 20, 0, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 20, 20, 0);
libinput_dispatch(li);
litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 0);
litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 90, 90, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 90, 90, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
libinput_dispatch(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 4);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
libinput_dispatch(li);
for (ntaps = 0; ntaps <= range; ntaps++) {
/* Finger down is palm after touch begin */
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
libinput_dispatch(li);
litest_timeout_tap();
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
/* Finger down is palm after tap move threshold */
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 60, 60, 10, 1);
+ litest_touch_move_to(dev, 0, 50, 50, 60, 60, 10);
litest_drain_events(li);
- litest_touch_move_to_extended(dev, 0, 60, 60, 60, 60, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 60, 60, 60, 60, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
LIBINPUT_BUTTON_STATE_PRESSED);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
LIBINPUT_BUTTON_STATE_PRESSED);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
LIBINPUT_BUTTON_STATE_PRESSED);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
litest_timeout_tap();
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
litest_assert_button_event(li,
litest_touch_down(dev, other, 60, 50);
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
- litest_touch_move_to(dev, other, 60, 50, 65, 50, 10, 1);
+ litest_touch_move_to(dev, other, 60, 50, 65, 50, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_up(dev, other);
litest_touch_down(dev, 0, 50, 50);
litest_touch_down(dev, 1, 60, 60);
litest_drain_events(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, this);
litest_touch_up(dev, other);
litest_touch_down(dev, this, 50, 50);
litest_touch_down(dev, other, 60, 60);
litest_drain_events(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, this);
libinput_dispatch(li);
litest_touch_down(dev, (this + 1) % 3, 60, 50);
litest_touch_down(dev, (this + 2) % 3, 70, 50);
litest_drain_events(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, this);
libinput_dispatch(li);
litest_timeout_tap();
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, this);
libinput_dispatch(li);
litest_touch_down(dev, (this + 2) % 4, 70, 50);
litest_touch_down(dev, (this + 3) % 4, 80, 50);
litest_drain_events(li);
- litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, this);
libinput_dispatch(li);
LIBINPUT_BUTTON_STATE_PRESSED);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
}
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_timeout_tap();
}
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
litest_timeout_tap();
libinput_dispatch(li);
}
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
/* keep palm finger down */
}
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
/* keep palm finger down */
libinput_dispatch(li);
/* Changes to palm after dwt timeout */
- litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 50, 50, axes, 1);
libinput_dispatch(li);
litest_touch_up(dev, 0);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 50, 20, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 50, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_touch_down(dev, 0, 20, 20);
litest_touch_down(dev, 1, 70, 20);
- litest_touch_move_to(dev, 0, 20, 20, 80, 80, 20, 0);
- litest_touch_move_to(dev, 1, 70, 20, 80, 50, 20, 0);
+ litest_touch_move_to(dev, 0, 20, 20, 80, 80, 20);
+ litest_touch_move_to(dev, 1, 70, 20, 80, 50, 20);
litest_touch_up(dev, 1);
litest_touch_up(dev, 0);
litest_touch_down(dev, 0, 49, 50);
litest_touch_down(dev, 1, 51, 50);
- litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10, 10);
+ litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10);
/* Avoid a small scroll being seen as a tap */
if (want_sleep) {
litest_touch_down(dev, 1, 55, 30);
/* start diagonally */
- litest_touch_move_two_touches(dev, 45, 30, 55, 30, 10, 10, 10, 0);
+ litest_touch_move_two_touches(dev, 45, 30, 55, 30, 10, 10, 10);
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_POINTER_AXIS,
litest_touch_down(dev, 1, 25, 20);
/* Move roughly straight horizontally for >100ms to set axis lock */
- litest_touch_move_two_touches(dev, 20, 20, 25, 20, 55, 10, 15, 10);
+ litest_touch_move_two_touches(dev, 20, 20, 25, 20, 55, 10, 15);
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_POINTER_AXIS,
* contain some horizontal movement while the lock changes; don't
* check for single-axis yet
*/
- litest_touch_move_two_touches(dev, 75, 30, 80, 30, 2, 20, 15, 10);
+ litest_touch_move_two_touches(dev, 75, 30, 80, 30, 2, 20, 15);
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_POINTER_AXIS,
litest_drain_events(li);
/* Move some more, roughly vertically, and check new axis lock */
- litest_touch_move_two_touches(dev, 77, 50, 82, 50, 1, 40, 15, 10);
+ litest_touch_move_two_touches(dev, 77, 50, 82, 50, 1, 40, 15);
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_POINTER_AXIS,
litest_drain_events(li);
/* Move in a clear diagonal direction to ensure the lock releases */
- litest_touch_move_two_touches(dev, 78, 90, 83, 90, -60, -60, 20, 10);
+ litest_touch_move_two_touches(dev, 78, 90, 83, 90, -60, -60, 20);
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_POINTER_AXIS,
litest_touch_down(dev, 0, 49, 50);
litest_touch_down(dev, 1, 51, 50);
- litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, y_move, 100, 10);
+ litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, y_move, 100);
litest_touch_up(dev, 1);
litest_touch_up(dev, 0);
libinput_dispatch(li);
20, 20,
30, 20,
30, 40,
- 10, 1);
+ 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
}
/* start with motion */
litest_touch_down(dev, 0, 70, 70);
- litest_touch_move_to(dev, 0, 70, 70, 49, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 70, 49, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* 2fg scroll */
litest_touch_down(dev, 1, 51, 50);
- litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, 20, 5, 0);
+ litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, 20, 5);
litest_touch_up(dev, 1);
libinput_dispatch(li);
litest_timeout_finger_switch();
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
- litest_touch_move_to(dev, 0, 49, 70, 49, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 49, 70, 49, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* back to 2fg scroll, lifting the other finger */
litest_touch_down(dev, 1, 51, 50);
- litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, 20, 5, 0);
+ litest_touch_move_two_touches(dev, 49, 50, 51, 50, 0, 20, 5);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_timeout_finger_switch();
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* move with second finger */
- litest_touch_move_to(dev, 1, 51, 70, 51, 50, 10, 0);
+ litest_touch_move_to(dev, 1, 51, 70, 51, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_up(dev, 1);
libinput_device_config_scroll_set_natural_scroll_enabled(dev->libinput_device, 1);
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 99, 80);
- litest_touch_move_to(dev, 0, 99, 80, 99, 20, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 80, 99, 20, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
struct libinput *li = dev->libinput;
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10);
litest_touch_up(dev, 0);
litest_drain_events(li);
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 99, 80);
- litest_touch_move_to(dev, 0, 99, 80, 99, 20, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 80, 99, 20, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
struct libinput *li = dev->libinput;
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10);
litest_touch_up(dev, 0);
if (!touchpad_has_horiz_edge_scroll_size(dev))
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 20, 99);
- litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 70, 99);
- litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 20, 99);
- litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 70, 99);
- litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 20, 99);
- litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 99, 70, 99, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_touch_down(dev, 0, 70, 99);
- litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 99, 20, 99, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_timeout_hysteresis();
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 99, 20, 99, 20 + mm/2, 8, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 20 + mm/2, 8);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_assert_empty_queue(li);
/* now move slowly up to the 2mm scroll threshold. we expect events */
- litest_touch_move_to(dev, 0, 99, 20 + mm/2, 99, 20 + mm * 2, 20, 0);
+ litest_touch_move_to(dev, 0, 99, 20 + mm/2, 99, 20 + mm * 2, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 99, 10);
- litest_touch_move_to(dev, 0, 99, 10, 99, 70, 12, 0);
+ litest_touch_move_to(dev, 0, 99, 10, 99, 70, 12);
/* moving outside -> no motion event */
- litest_touch_move_to(dev, 0, 99, 70, 20, 70, 12, 0);
+ litest_touch_move_to(dev, 0, 99, 70, 20, 70, 12);
/* moving down outside edge once scrolling had started -> scroll */
- litest_touch_move_to(dev, 0, 20, 70, 40, 99, 12, 0);
+ litest_touch_move_to(dev, 0, 20, 70, 40, 99, 12);
litest_touch_up(dev, 0);
libinput_dispatch(li);
/* moving into the edge zone must not trigger scroll events */
litest_touch_down(dev, 0, 20, 20);
- litest_touch_move_to(dev, 0, 20, 20, 99, 20, 22, 10);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 22, 10);
+ litest_touch_move_to(dev, 0, 20, 20, 99, 20, 22);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 22);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_enable_edge_scroll(dev);
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 80, 10);
litest_touch_up(dev, 0);
litest_wait_for_event_of_type(li, LIBINPUT_EVENT_POINTER_AXIS, -1);
litest_touch_down(dev, 0, 49, 50);
litest_touch_down(dev, 1, 51, 50);
- litest_touch_move_two_touches(dev, 49, 50, 51, 50, 20, 30, 10, 10);
+ litest_touch_move_two_touches(dev, 49, 50, 51, 50, 20, 30, 10);
libinput_dispatch(li);
litest_touch_up(dev, 0);
litest_touch_up(dev, 1);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 40);
- litest_touch_move_to(dev, 0, 99, 40, 99, 95, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 40, 99, 95, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* in the button zone now, make sure we still get events */
- litest_touch_move_to(dev, 0, 99, 95, 99, 100, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 95, 99, 100, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* and out of the zone again */
- litest_touch_move_to(dev, 0, 99, 100, 99, 70, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 100, 99, 70, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* still out of the zone */
- litest_touch_move_to(dev, 0, 99, 70, 99, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 70, 99, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
}
END_TEST
litest_touch_down(dev, 0, 20, 99);
/* within left button */
- litest_touch_move_to(dev, 0, 20, 99, 40, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 99, 40, 99, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* over to right button */
- litest_touch_move_to(dev, 0, 40, 99, 60, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 40, 99, 60, 99, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
/* within right button */
- litest_touch_move_to(dev, 0, 60, 99, 80, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 60, 99, 80, 99, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
}
END_TEST
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 95);
- litest_touch_move_to(dev, 0, 20, 95, 70, 95, 10, 5);
+ litest_touch_move_to(dev, 0, 20, 95, 70, 95, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
litest_button_click(dev, BTN_LEFT, true);
* edge scrolling, click, then scrolling without lifting the finger
* is so small we'll let it pass.
*/
- litest_touch_move_to(dev, 0, 70, 95, 90, 95, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 95, 90, 95, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_button_click(dev, BTN_LEFT, false);
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 95);
- litest_touch_move_to(dev, 0, 20, 95, 70, 95, 10, 5);
+ litest_touch_move_to(dev, 0, 20, 95, 70, 95, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
litest_button_click(dev, BTN_LEFT, true);
libinput_event_destroy(event);
/* clickfinger releases pointer -> expect movement */
- litest_touch_move_to(dev, 0, 70, 95, 90, 95, 10, 0);
+ litest_touch_move_to(dev, 0, 70, 95, 90, 95, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_empty_queue(li);
/* move into area, move vertically, move back to edge */
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 99, 50, 15, 2);
- litest_touch_move_to(dev, 0, 99, 50, 20, 50, 15, 2);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 50, 15);
+ litest_touch_move_to(dev, 0, 99, 50, 20, 50, 15);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_AXIS);
- litest_touch_move_to(dev, 0, 20, 50, 20, 20, 15, 2);
- litest_touch_move_to(dev, 0, 20, 20, 99, 20, 15, 2);
+ litest_touch_move_to(dev, 0, 20, 50, 20, 20, 15);
+ litest_touch_move_to(dev, 0, 20, 20, 99, 20, 15);
litest_assert_empty_queue(li);
- litest_touch_move_to(dev, 0, 99, 20, 99, 50, 15, 2);
+ litest_touch_move_to(dev, 0, 99, 20, 99, 50, 15);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_AXIS);
}
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to(dev, 0, 99, 50, 99, 70, 5, 0);
+ litest_touch_move_to(dev, 0, 99, 50, 99, 70, 5);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 5, 50);
- litest_touch_move_to(dev, 0, 5, 50, 5, 70, 5, 0);
+ litest_touch_move_to(dev, 0, 5, 50, 5, 70, 5);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 1);
- litest_touch_move_to(dev, 0, 20, 1, 70, 1, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 1, 70, 1, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to(dev, 0, 99, 50, 99, 70, 5, 0);
+ litest_touch_move_to(dev, 0, 99, 50, 99, 70, 5);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 95);
- litest_touch_move_to(dev, 0, 99, 95, 99, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 95, 99, 99, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 5, 95);
- litest_touch_move_to(dev, 0, 5, 95, 5, 99, 5, 0);
+ litest_touch_move_to(dev, 0, 5, 95, 5, 99, 5);
litest_touch_up(dev, 0);
}
END_TEST
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 5);
- litest_touch_move_to(dev, 0, 99, 5, 99, 9, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 5, 99, 9, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 5, 5);
- litest_touch_move_to(dev, 0, 5, 5, 5, 9, 5, 0);
+ litest_touch_move_to(dev, 0, 5, 5, 5, 9, 5);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 20);
- litest_touch_move_to(dev, 0, 99, 20, 75, 99, 20, 10);
+ litest_touch_move_to(dev, 0, 99, 20, 75, 99, 20);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
}
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 1);
- litest_touch_move_to(dev, 0, 20, 1, 50, 30, 20, 10);
+ litest_touch_move_to(dev, 0, 20, 1, 50, 30, 20);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to(dev, 0, 99, 50, 0, 70, 20, 0);
+ litest_touch_move_to(dev, 0, 99, 50, 0, 70, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 1);
- litest_touch_move_to(dev, 0, 50, 1, 50, 60, 20, 0);
+ litest_touch_move_to(dev, 0, 50, 1, 50, 60, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 99, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 99, 50, 10);
litest_drain_events(li);
- litest_touch_move_to(dev, 0, 99, 50, 99, 90, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 50, 99, 90, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 0, 2, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 0, 2, 10);
litest_drain_events(li);
- litest_touch_move_to(dev, 0, 0, 2, 50, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 0, 2, 50, 50, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* first finger is palm, second finger isn't so we trigger 2fg
* scrolling */
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to(dev, 0, 99, 50, 99, 40, 35, 12);
- litest_touch_move_to(dev, 0, 99, 40, 99, 50, 35, 12);
+ litest_touch_move_to(dev, 0, 99, 50, 99, 40, 45);
+ litest_touch_move_to(dev, 0, 99, 40, 99, 50, 45);
litest_assert_empty_queue(li);
litest_touch_down(dev, 1, 50, 50);
litest_assert_empty_queue(li);
- litest_touch_move_two_touches(dev, 99, 50, 50, 50, 0, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 99, 50, 50, 50, 0, -20, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
}
END_TEST
/* two fingers moving up/down in the left/right palm zone must not
* generate events */
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to(dev, 0, 99, 50, 99, 40, 10, 0);
- litest_touch_move_to(dev, 0, 99, 40, 99, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 99, 50, 99, 40, 10);
+ litest_touch_move_to(dev, 0, 99, 40, 99, 50, 10);
litest_assert_empty_queue(li);
/* This set generates events */
litest_touch_down(dev, 1, 1, 50);
- litest_touch_move_to(dev, 1, 1, 50, 1, 40, 10, 0);
- litest_touch_move_to(dev, 1, 1, 40, 1, 50, 10, 0);
+ litest_touch_move_to(dev, 1, 1, 50, 1, 40, 10);
+ litest_touch_move_to(dev, 1, 1, 40, 1, 50, 10);
litest_assert_empty_queue(li);
- litest_touch_move_two_touches(dev, 99, 50, 1, 50, 0, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 99, 50, 1, 50, 0, -20, 10);
litest_assert_empty_queue(li);
}
END_TEST
return;
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10, 1);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_drain_events(li);
litest_event(dev, EV_ABS, ABS_MT_TOOL_TYPE, MT_TOOL_PALM);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
- litest_touch_move_to(dev, 0, 70, 70, 50, 40, 10, 1);
+ litest_touch_move_to(dev, 0, 70, 70, 50, 40, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
return;
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10, 1);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_drain_events(li);
litest_event(dev, EV_ABS, ABS_MT_TOOL_TYPE, MT_TOOL_PALM);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
- litest_touch_move_to(dev, 0, 70, 70, 50, 40, 10, 1);
+ litest_touch_move_to(dev, 0, 70, 70, 50, 40, 10);
litest_assert_empty_queue(li);
litest_event(dev, EV_ABS, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
- litest_touch_move_to(dev, 0, 50, 40, 70, 70, 10, 1);
+ litest_touch_move_to(dev, 0, 50, 40, 70, 70, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_pop_event_frame(dev);
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 50, 50, 50, 80, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 50, 80, 10);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down_extended(dev, 0, 50, 99, axes);
- litest_touch_move_to(dev, 0, 50, 50, 80, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 99, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 70, 80, 90, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 70, 80, 90, 10);
litest_drain_events(li);
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, 0, 80, 90, 50, 20,
- axes, 10, 0);
+ litest_touch_move_to_extended(dev, 0, 80, 90, 50, 20, axes, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 80, 90);
- litest_touch_move_to_extended(dev, 0, 80, 90, 50, 20,
- axes, 10, 0);
- litest_touch_move_to(dev, 0, 50, 20, 80, 90, 10, 0);
+ litest_touch_move_to_extended(dev, 0, 80, 90, 50, 20, axes, 10);
+ litest_touch_move_to(dev, 0, 50, 20, 80, 90, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
- litest_touch_move_to_extended(dev, 0, 99, 50, 20, 50, axes, 20, 0);
+ litest_touch_move_to_extended(dev, 0, 99, 50, 20, 50, axes, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
/* within dwt timeout, dwt blocks events */
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to_extended(touchpad, 0, 50, 50, 20, 50, axes, 20, 0);
+ litest_touch_move_to_extended(touchpad, 0, 50, 50, 20, 50, axes, 20);
litest_assert_empty_queue(li);
litest_timeout_dwt_short();
litest_assert_empty_queue(li);
/* after dwt timeout, pressure blocks events */
- litest_touch_move_to_extended(touchpad, 0, 20, 50, 50, 50, axes, 20, 0);
+ litest_touch_move_to_extended(touchpad, 0, 20, 50, 50, 50, axes, 20);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 50, 50);
litest_event(dev, EV_ABS, ABS_PRESSURE, 50);
litest_pop_event_frame(dev);
- litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_touch_up(dev, 0);
libinput_dispatch(li);
litest_drain_events(li);
litest_hover_start(dev, 0, 50, 50);
- litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_hover_end(dev, 0);
litest_assert_empty_queue(li);
/* hover the finger */
litest_hover_start(dev, 0, 50, 50);
- litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_assert_empty_queue(li);
/* touch the finger on the sensor */
- litest_touch_move_to(dev, 0, 70, 70, 50, 50, 10, 10);
+ litest_touch_move_to(dev, 0, 70, 70, 50, 50, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* go back to hover */
- litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_hover_end(dev, 0);
litest_assert_empty_queue(li);
for (i = 0; i < 3; i++) {
/* hover the finger */
- litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_hover_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_assert_empty_queue(li);
/* touch the finger */
- litest_touch_move_to(dev, 0, 70, 70, 50, 50, 10, 10);
+ litest_touch_move_to(dev, 0, 70, 70, 50, 50, 10);
libinput_dispatch(li);
/* start a new touch to be sure */
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_empty_queue(li);
/* now move the finger */
- litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10, 10);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
litest_touch_up(dev, 0);
litest_hover_start(dev, 1, 50, 50);
litest_pop_event_frame(dev);
- litest_hover_move_two_touches(dev, 25, 25, 50, 50, 50, 50, 10, 0);
+ litest_hover_move_two_touches(dev, 25, 25, 50, 50, 50, 50, 10);
litest_push_event_frame(dev);
litest_hover_end(dev, 0);
litest_touch_down(touchpad, 0, 49, 70);
litest_touch_down(touchpad, 1, 51, 70);
- litest_touch_move_two_touches(touchpad, 49, 70, 51, 70, 0, -40, 10, 0);
+ litest_touch_move_two_touches(touchpad, 49, 70, 51, 70, 0, -40, 10);
libinput_dispatch(li);
litest_wait_for_event(li);
BTN_RIGHT,
LIBINPUT_BUTTON_STATE_PRESSED);
- litest_touch_move_to(touchpad, 0, 40, 30, 40, 70, 10, 0);
- litest_touch_move_to(touchpad, 1, 60, 30, 60, 70, 10, 0);
+ litest_touch_move_to(touchpad, 0, 40, 30, 40, 70, 10);
+ litest_touch_move_to(touchpad, 1, 60, 30, 60, 70, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
litest_assert_scroll() which tests for the trailing 0/0 scroll
for us.
*/
- litest_touch_move_to(touchpad, 0, 40, 70, 40, 60, 10, 0);
- litest_touch_move_to(touchpad, 1, 60, 70, 60, 60, 10, 0);
+ litest_touch_move_to(touchpad, 0, 40, 70, 40, 60, 10);
+ litest_touch_move_to(touchpad, 1, 60, 70, 60, 60, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
- litest_touch_move_to(touchpad, 0, 40, 60, 40, 30, 10, 0);
- litest_touch_move_to(touchpad, 1, 60, 60, 60, 30, 10, 0);
+ litest_touch_move_to(touchpad, 0, 40, 60, 40, 30, 10);
+ litest_touch_move_to(touchpad, 1, 60, 60, 60, 30, 10);
litest_touch_up(touchpad, 0);
litest_touch_up(touchpad, 1);
else
y = 30;
litest_touch_down(dev, 0, x, y);
- litest_touch_move_to(dev, 0, x, y, 70, 70, 10, 10);
+ litest_touch_move_to(dev, 0, x, y, 70, 70, 10);
litest_touch_up(dev, 0);
libinput_dispatch(libinput1);
libinput_dispatch(libinput2);
litest_keyboard_key(keyboard, KEY_A, false);
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* after timeout - motion events*/
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_keyboard_key(keyboard, KEY_A, false);
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* after timeout - motion events*/
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
we're still within timeout - no events */
msleep(10);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_empty_queue(li);
litest_timeout_dwt_short();
libinput_dispatch(li);
/* same touch after timeout - motion events*/
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 10, 1);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_keyboard_key(keyboard, KEY_A, true);
msleep(1); /* make sure touch starts after key press */
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* touch still down - no events */
litest_keyboard_key(keyboard, KEY_A, false);
libinput_dispatch(li);
- litest_touch_move_to(touchpad, 0, 70, 50, 30, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 70, 50, 30, 50, 5);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* touch still down - no events */
litest_timeout_dwt_short();
libinput_dispatch(li);
- litest_touch_move_to(touchpad, 0, 30, 50, 50, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 30, 50, 50, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_keyboard_key(keyboard, KEY_A, true);
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_timeout_dwt_long();
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* key is up, but still within timeout */
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_timeout_dwt_long();
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* Touch starting after re-issuing the dwt timeout */
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_assert_empty_queue(li);
litest_keyboard_key(keyboard, KEY_A, false);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* key is up, but still within timeout */
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5);
litest_assert_empty_queue(li);
/* Expire dwt timeout. Because the touch started after re-issuing
* expect. But it's hard to trigger in real life too.
*/
litest_timeout_dwt_long();
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
/* If the below check for motion event fails because no events are
* in the pipe, the buggy behavior was fixed and this test case
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
libinput_dispatch(li);
litest_timeout_dwt_long();
libinput_dispatch(li);
litest_keyboard_key(keyboard, KEY_A, false);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
/* key is up, but still within timeout */
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5);
litest_assert_empty_queue(li);
/* expire timeout, but touch started before release */
litest_timeout_dwt_long();
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_timeout_dwt_long();
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_timeout_dwt_short();
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
litest_touch_down(touchpad, 0, 50, 50);
litest_touch_up(touchpad, 0);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 5);
litest_keyboard_key(keyboard, KEY_A, false);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_timeout_dwt_short();
libinput_dispatch(li);
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5, 1);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 50, 5);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
- litest_touch_move_to(touchpad, 0, 99, 20, 99, 80, 60, 10);
+ litest_touch_move_to(touchpad, 0, 99, 20, 99, 80, 60);
libinput_dispatch(li);
litest_assert_empty_queue(li);
- litest_touch_move_to(touchpad, 0, 99, 80, 99, 20, 60, 10);
+ litest_touch_move_to(touchpad, 0, 99, 80, 99, 20, 60);
litest_touch_up(touchpad, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_touch_down(touchpad, 0, 99, 20);
libinput_dispatch(li);
litest_timeout_edgescroll();
- litest_touch_move_to(touchpad, 0, 99, 20, 99, 30, 10, 10);
+ litest_touch_move_to(touchpad, 0, 99, 20, 99, 30, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
* pointer-moving touch once the timeout expires. We'll fix that
* when we need to.
*/
- litest_touch_move_to(touchpad, 0, 99, 30, 99, 80, 10, 5);
+ litest_touch_move_to(touchpad, 0, 99, 30, 99, 80, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_delete_device(keyboard);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_keyboard_key(keyboard, KEY_A, false);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_empty_queue(li);
litest_timeout_dwt_long();
disable_dwt(touchpad);
/* touch already down -> keeps being ignored */
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 70, 10, 0);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 70, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
/* touch down during timeout -> still discarded */
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_empty_queue(li);
litest_delete_device(keyboard);
litest_touch_down(touchpad, 0, 50, 50);
libinput_dispatch(li);
litest_timeout_dwt_long();
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_delete_device(keyboard);
litest_touch_down(touchpad, 0, 50, 50);
libinput_dispatch(li);
litest_timeout_dwt_long();
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_delete_device(keyboard);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
enable_dwt(touchpad);
/* touch already down -> still sends events */
- litest_touch_move_to(touchpad, 0, 70, 50, 50, 70, 10, 0);
+ litest_touch_move_to(touchpad, 0, 70, 50, 50, 70, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
libinput_dispatch(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_delete_device(keyboard);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_BUTTON);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_delete_device(keyboard);
litest_drain_events(li);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
libinput_dispatch(li);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
* ctrl+B across two devices is *not* a dwt modifier combo
*/
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(touchpad, 0, 50, 50);
- litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
litest_touch_up(touchpad, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down_extended(dev, 0, 50, 99, axes);
- litest_touch_move_to(dev, 0, 50, 99, 80, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 99, 80, 99, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 59, 99);
litest_touch_move_extended(dev, 0, 59, 99, axes);
- litest_touch_move_to(dev, 0, 60, 99, 80, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 60, 99, 80, 99, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 99);
- litest_touch_move_to(dev, 0, 50, 99, 60, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 99, 60, 99, 10);
litest_touch_move_extended(dev, 0, 65, 99, axes);
- litest_touch_move_to(dev, 0, 65, 99, 80, 99, 10, 0);
+ litest_touch_move_to(dev, 0, 65, 99, 80, 99, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
/* exceed the speed movement threshold in slot 0 */
litest_touch_down(dev, 0, 50, 20);
- litest_touch_move_to(dev, 0, 50, 20, 70, 99, 15, 0);
+ litest_touch_move_to(dev, 0, 50, 20, 70, 99, 15);
litest_touch_up(dev, 0);
litest_drain_events(li);
litest_touch_down(dev, 2, 90, 50);
libinput_dispatch(li);
for (int i = 0, y = 50; i < 10; i++, y++) {
- litest_touch_move_to(dev, 1, 50, y, 50, y + 1, 1, 0);
- litest_touch_move_to(dev, 2, 50, y, 50, y + 1, 1, 0);
+ litest_touch_move_to(dev, 1, 50, y, 50, y + 1, 1);
+ litest_touch_move_to(dev, 2, 50, y, 50, y + 1, 1);
}
libinput_dispatch(li);
litest_touch_up(dev, 1);
litest_touch_down(dev, 1, 70, 70);
libinput_dispatch(li);
- litest_touch_move_to(dev, first, 50, 50, 50, 30, 10, 1);
+ litest_touch_move_to(dev, first, 50, 50, 50, 30, 10);
litest_drain_events(li);
/* release touch 0, continue other slot with 0's coords */
litest_touch_move(dev, second, 50, 30.1);
litest_pop_event_frame(dev);
libinput_dispatch(li);
- litest_touch_move_to(dev, second, 50, 30, 50, 11, 10, 1);
+ litest_touch_move_to(dev, second, 50, 30, 50, 11, 10);
libinput_dispatch(li);
event = libinput_get_event(li);
do {
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10, 0);
+ litest_touch_move_to(dev, 0, 50, 50, 70, 50, 10);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50);
- litest_touch_move_to(dev, 0, 50, 50, 80, 50, 20, 10);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 50, 20);
litest_touch_up(dev, 0);
libinput_dispatch(li);
struct libinput_event_pointer *ptrev;
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_drain_events(li);
/* this test uses a specific test device to trigger a >20mm jump to
* test jumps. These numbers may not work on any other device */
litest_disable_log_handler(li);
- litest_touch_move_to(dev, 0, 90, 30, 20, 80, 1, 0);
+ litest_touch_move_to(dev, 0, 90, 30, 20, 80, 1);
litest_assert_empty_queue(li);
litest_restore_log_handler(li);
- litest_touch_move_to(dev, 0, 20, 80, 21, 81, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 80, 21, 81, 10);
litest_touch_up(dev, 0);
/* expect lots of little events, no big jump */
struct libinput_event_pointer *ptrev;
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_drain_events(li);
/* this test uses a specific test device to trigger a >7mm but <20mm
litest_assert_empty_queue(li);
litest_restore_log_handler(li);
- litest_touch_move_to(dev, 0, 90, 88, 91, 89, 10, 0);
+ litest_touch_move_to(dev, 0, 90, 88, 91, 89, 10);
litest_touch_up(dev, 0);
/* expect lots of little events, no big jump */
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_ADDED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_ADDED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_DEVICE_REMOVED);
litest_touch_down(dev, 0, 20, 30);
- litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10, 0);
+ litest_touch_move_to(dev, 0, 20, 30, 90, 30, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
litest_axis_set_value(axes, ABS_MT_PRESSURE, pressure);
litest_axis_set_value(axes, ABS_PRESSURE, pressure);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes,
+ 10);
litest_touch_up(dev, 0);
if (pressure < threshold)
litest_assert_empty_queue(li);
litest_touch_down(dev, 0, 30, 50);
litest_touch_down_extended(dev, 1, 50, 50, axes);
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 10, 1);
+ litest_touch_move_to(dev, 0, 50, 50, 80, 80, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
- litest_touch_move_to_extended(dev, 1,
- 50, 50,
- 80, 80,
- axes, 10, 1);
- litest_assert_empty_queue(li);
- litest_touch_move_to(dev, 0, 80, 80, 20, 50, 10, 1);
- litest_touch_move_to_extended(dev, 1,
- 80, 80,
- 50, 50,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 1, 50, 50, 80, 80, axes, 10);
+ litest_assert_empty_queue(li);
+ litest_touch_move_to(dev, 0, 80, 80, 20, 50, 10);
+ litest_touch_move_to_extended(dev, 1, 80, 80, 50, 50, axes, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
}
litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
litest_event(dev, EV_SYN, SYN_REPORT, 0);
libinput_dispatch(li);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes, 10);
litest_assert_empty_queue(li);
}
END_TEST
libinput_dispatch(li);
/* make one finger real */
- litest_touch_move_to(dev, 0, 40, 50, 41, 52, 10, 10);
+ litest_touch_move_to(dev, 0, 40, 50, 41, 52, 10);
litest_drain_events(li);
/* tripletap should now be 3 fingers tap */
litest_touch_down(dev, 0, 40, 50);
litest_touch_down(dev, 1, 60, 50);
- litest_touch_move_two_touches(dev, 40, 50, 60, 50, 0, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 40, 50, 60, 50, 0, -20, 10);
/* This should trigger a scroll end event */
litest_push_event_frame(dev);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 1);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 1);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes, 10);
litest_touch_up(dev, 0);
litest_assert_empty_queue(li);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 15);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 15);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes, 10);
litest_touch_up(dev, 0);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 15);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 15);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 1);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 1);
litest_touch_down_extended(dev, 1, 70, 70, axes);
- litest_touch_move_to_extended(dev, 1,
- 70, 70,
- 80, 90,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 1, 70, 70, 80, 90, axes, 10);
litest_assert_empty_queue(li);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 15);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 15);
- litest_touch_move_to_extended(dev, 0,
- 80, 80,
- 50, 50,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 80, 80, 50, 50, axes, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_axis_set_value(axes, ABS_MT_TOUCH_MAJOR, 30);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 30);
litest_touch_down_extended(dev, 0, 50, 50, axes);
- litest_touch_move_to_extended(dev, 0,
- 50, 50,
- 80, 80,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 50, 50, 80, 80, axes, 10);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);
litest_axis_set_value_unchecked(axes, ABS_MT_TOUCH_MAJOR, 90);
litest_axis_set_value(axes, ABS_MT_TOUCH_MINOR, 90);
- litest_touch_move_to_extended(dev, 0,
- 80, 80,
- 50, 50,
- axes, 10, 1);
+ litest_touch_move_to_extended(dev, 0, 80, 80, 50, 50, axes, 10);
litest_assert_empty_queue(li);
}
END_TEST
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 20);
- litest_touch_move_to(dev, 0, 20, 20, 85, 80, 20, 0);
+ litest_touch_move_to(dev, 0, 20, 20, 85, 80, 20);
litest_touch_down(dev, 1, 20, 80);
- litest_touch_move_two_touches(dev, 85, 80, 20, 80, -20, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 85, 80, 20, 80, -20, -20, 10);
libinput_dispatch(li);
litest_touch_up(dev, 0);
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 20);
- litest_touch_move_to(dev, 0, 20, 20, 80, 80, 20, 0);
+ litest_touch_move_to(dev, 0, 20, 20, 80, 80, 20);
litest_drain_events(li);
litest_touch_down(dev, 1, 79, 80);
- litest_touch_move_two_touches(dev, 80, 80, 79, 80, -20, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 80, 80, 79, 80, -20, -20, 10);
libinput_dispatch(li);
litest_touch_up(dev, 0);
litest_drain_events(li);
litest_touch_down(dev, 0, 20, 20);
- litest_touch_move_to(dev, 0, 20, 20, 60, 80, 20, 0);
+ litest_touch_move_to(dev, 0, 20, 20, 60, 80, 20);
litest_drain_events(li);
litest_touch_down(dev, 1, 59, 80);
- litest_touch_move_two_touches(dev, 60, 80, 59, 80, -20, -20, 10, 0);
+ litest_touch_move_two_touches(dev, 60, 80, 59, 80, -20, -20, 10);
libinput_dispatch(li);
litest_touch_up(dev, 0);
struct libinput *li = tp->libinput;
litest_touch_down(tp, 0, 50, 50);
- litest_touch_move_to(tp, 0, 50, 50, 60, 80, 20, 0);
+ litest_touch_move_to(tp, 0, 50, 50, 60, 80, 20);
litest_touch_up(tp, 0);
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
}
struct libinput *li = tp->libinput;
litest_touch_down(tp, 0, 20, 20);
- litest_touch_move_to(tp, 0, 20, 20, 60, 80, 20, 0);
+ litest_touch_move_to(tp, 0, 20, 20, 60, 80, 20);
litest_touch_up(tp, 0);
litest_assert_empty_queue(li);
}