summaryrefslogtreecommitdiff
path: root/test/litest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/litest.c')
-rw-r--r--test/litest.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/litest.c b/test/litest.c
index 5b09ec4e..2e17009e 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -2496,6 +2496,27 @@ litest_button_scroll(struct litest_device *dev,
}
void
+litest_button_scroll_locked(struct litest_device *dev,
+ unsigned int button,
+ double dx, double dy)
+{
+ struct libinput *li = dev->libinput;
+
+ litest_button_click_debounced(dev, li, button, 1);
+ litest_button_click_debounced(dev, li, button, 0);
+
+ libinput_dispatch(li);
+ litest_timeout_buttonscroll();
+ libinput_dispatch(li);
+
+ litest_event(dev, EV_REL, REL_X, dx);
+ litest_event(dev, EV_REL, REL_Y, dy);
+ litest_event(dev, EV_SYN, SYN_REPORT, 0);
+
+ libinput_dispatch(li);
+}
+
+void
litest_keyboard_key(struct litest_device *d, unsigned int key, bool is_press)
{
struct input_event *ev;