Lines Matching defs:dev
37 struct litest_device *dev = litest_current_device();
38 struct libinput *li = dev->libinput;
40 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT))
45 litest_button_click(dev, BTN_LEFT, true);
50 litest_button_click(dev, BTN_LEFT, false);
60 struct litest_device *dev = litest_current_device();
61 struct libinput_device *device = dev->libinput_device;
87 struct litest_device *dev = litest_current_device();
88 struct libinput_device *device = dev->libinput_device;
114 struct litest_device *dev = litest_current_device();
115 struct libinput_device *device = dev->libinput_device;
119 if (libevdev_get_id_vendor(dev->evdev) == VENDOR_ID_APPLE &&
120 libevdev_get_id_product(dev->evdev) == PRODUCT_ID_APPLE_APPLETOUCH)
144 struct litest_device *dev = litest_current_device();
145 struct libinput *li = dev->libinput;
147 litest_enable_clickfinger(dev);
151 litest_touch_down(dev, 0, 50, 50);
152 litest_event(dev, EV_KEY, BTN_LEFT, 1);
153 litest_event(dev, EV_SYN, SYN_REPORT, 0);
154 litest_event(dev, EV_KEY, BTN_LEFT, 0);
155 litest_event(dev, EV_SYN, SYN_REPORT, 0);
156 litest_touch_up(dev, 0);
169 struct litest_device *dev = litest_current_device();
170 struct libinput *li = dev->libinput;
172 if (dev->which == LITEST_SYNAPTICS_PHANTOMCLICKS) {
178 litest_enable_clickfinger(dev);
182 litest_event(dev, EV_KEY, BTN_LEFT, 1);
183 litest_event(dev, EV_SYN, SYN_REPORT, 0);
184 litest_event(dev, EV_KEY, BTN_LEFT, 0);
185 litest_event(dev, EV_SYN, SYN_REPORT, 0);
198 struct litest_device *dev = litest_current_device();
199 struct libinput *li = dev->libinput;
201 litest_enable_clickfinger(dev);
205 litest_event(dev, EV_KEY, BTN_LEFT, 1);
206 litest_event(dev, EV_SYN, SYN_REPORT, 0);
207 litest_event(dev, EV_KEY, BTN_LEFT, 0);
208 litest_event(dev, EV_SYN, SYN_REPORT, 0);
218 struct litest_device *dev = litest_current_device();
219 struct libinput *li = dev->libinput;
221 litest_enable_clickfinger(dev);
225 litest_touch_down(dev, 0, 50, 50);
226 litest_touch_down(dev, 1, 70, 70);
227 litest_event(dev, EV_KEY, BTN_LEFT, 1);
228 litest_event(dev, EV_SYN, SYN_REPORT, 0);
229 litest_event(dev, EV_KEY, BTN_LEFT, 0);
230 litest_event(dev, EV_SYN, SYN_REPORT, 0);
231 litest_touch_up(dev, 0);
232 litest_touch_up(dev, 1);
245 struct litest_device *dev = litest_current_device();
246 struct libinput *li = dev->libinput;
248 if (litest_slot_count(dev) < 3)
251 litest_enable_clickfinger(dev);
255 litest_touch_down(dev, 0, 50, 50);
256 litest_touch_down(dev, 1, 60, 70);
257 litest_touch_down(dev, 2, 70, 70);
258 litest_event(dev, EV_KEY, BTN_LEFT, 1);
259 litest_event(dev, EV_SYN, SYN_REPORT, 0);
260 litest_event(dev, EV_KEY, BTN_LEFT, 0);
261 litest_event(dev, EV_SYN, SYN_REPORT, 0);
262 litest_touch_up(dev, 0);
263 litest_touch_up(dev, 1);
264 litest_touch_up(dev, 2);
279 struct litest_device *dev = litest_current_device();
280 struct libinput *li = dev->libinput;
282 if (litest_slot_count(dev) >= 3 ||
283 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP))
286 litest_enable_clickfinger(dev);
290 litest_touch_down(dev, 0, 50, 50);
291 litest_touch_down(dev, 1, 60, 70);
292 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
293 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 1);
294 litest_event(dev, EV_SYN, SYN_REPORT, 0);
295 litest_event(dev, EV_KEY, BTN_LEFT, 1);
296 litest_event(dev, EV_SYN, SYN_REPORT, 0);
297 litest_event(dev, EV_KEY, BTN_LEFT, 0);
298 litest_event(dev, EV_SYN, SYN_REPORT, 0);
299 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
300 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 0);
301 litest_event(dev, EV_SYN, SYN_REPORT, 0);
302 litest_touch_up(dev, 0);
303 litest_touch_up(dev, 1);
318 struct litest_device *dev = litest_current_device();
319 struct libinput *li = dev->libinput;
321 if (litest_slot_count(dev) < 4)
324 litest_enable_clickfinger(dev);
328 litest_touch_down(dev, 0, 50, 50);
329 litest_touch_down(dev, 1, 60, 70);
330 litest_touch_down(dev, 2, 70, 70);
331 litest_touch_down(dev, 3, 80, 70);
332 litest_event(dev, EV_KEY, BTN_LEFT, 1);
333 litest_event(dev, EV_SYN, SYN_REPORT, 0);
334 litest_event(dev, EV_KEY, BTN_LEFT, 0);
335 litest_event(dev, EV_SYN, SYN_REPORT, 0);
336 litest_touch_up(dev, 0);
337 litest_touch_up(dev, 1);
338 litest_touch_up(dev, 2);
339 litest_touch_up(dev, 3);
349 struct litest_device *dev = litest_current_device();
350 struct libinput *li = dev->libinput;
352 if (litest_slot_count(dev) >= 3 ||
353 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_QUADTAP))
356 litest_enable_clickfinger(dev);
360 litest_touch_down(dev, 0, 50, 50);
361 litest_touch_down(dev, 1, 60, 70);
362 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
363 litest_event(dev, EV_KEY, BTN_TOOL_QUADTAP, 1);
364 litest_event(dev, EV_SYN, SYN_REPORT, 0);
365 litest_event(dev, EV_KEY, BTN_LEFT, 1);
366 litest_event(dev, EV_SYN, SYN_REPORT, 0);
367 litest_event(dev, EV_KEY, BTN_LEFT, 0);
368 litest_event(dev, EV_SYN, SYN_REPORT, 0);
369 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
370 litest_event(dev, EV_KEY, BTN_TOOL_QUADTAP, 0);
371 litest_event(dev, EV_SYN, SYN_REPORT, 0);
372 litest_touch_up(dev, 0);
373 litest_touch_up(dev, 1);
381 struct litest_device *dev = litest_current_device();
382 struct libinput *li = dev->libinput;
384 if (litest_slot_count(dev) != 3 ||
385 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP))
388 litest_enable_clickfinger(dev);
392 litest_touch_down(dev, 0, 50, 50);
393 litest_touch_down(dev, 1, 60, 70);
394 litest_touch_down(dev, 2, 70, 70);
395 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 0);
396 litest_event(dev, EV_KEY, BTN_TOOL_QUADTAP, 1);
397 litest_event(dev, EV_SYN, SYN_REPORT, 0);
398 litest_event(dev, EV_KEY, BTN_LEFT, 1);
399 litest_event(dev, EV_SYN, SYN_REPORT, 0);
400 litest_event(dev, EV_KEY, BTN_LEFT, 0);
401 litest_event(dev, EV_SYN, SYN_REPORT, 0);
402 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 1);
403 litest_event(dev, EV_KEY, BTN_TOOL_QUADTAP, 0);
404 litest_event(dev, EV_SYN, SYN_REPORT, 0);
405 litest_touch_up(dev, 0);
406 litest_touch_up(dev, 1);
407 litest_touch_up(dev, 2);
417 struct litest_device *dev = litest_current_device();
418 struct libinput *li = dev->libinput;
423 if (libinput_device_get_size(dev->libinput_device, &w, &h) == 0 &&
427 litest_enable_clickfinger(dev);
431 litest_touch_down(dev, 0, 90, 50);
432 litest_touch_down(dev, 1, 10, 50);
433 litest_event(dev, EV_KEY, BTN_LEFT, 1);
434 litest_event(dev, EV_SYN, SYN_REPORT, 0);
435 litest_event(dev, EV_KEY, BTN_LEFT, 0);
436 litest_event(dev, EV_SYN, SYN_REPORT, 0);
437 litest_touch_up(dev, 0);
438 litest_touch_up(dev, 1);
449 litest_touch_down(dev, 0, 50, 5);
450 litest_touch_down(dev, 1, 50, 95);
451 litest_event(dev, EV_KEY, BTN_LEFT, 1);
452 litest_event(dev, EV_SYN, SYN_REPORT, 0);
453 litest_event(dev, EV_KEY, BTN_LEFT, 0);
454 litest_event(dev, EV_SYN, SYN_REPORT, 0);
455 litest_touch_up(dev, 0);
456 litest_touch_up(dev, 1);
476 struct litest_device *dev = litest_current_device();
477 struct libinput *li = dev->libinput;
479 if (litest_slot_count(dev) < 3)
482 litest_enable_clickfinger(dev);
486 litest_touch_down(dev, 0, 90, 20);
487 litest_touch_down(dev, 1, 10, 15);
488 litest_touch_down(dev, 2, 10, 15);
490 litest_event(dev, EV_KEY, BTN_LEFT, 1);
491 litest_event(dev, EV_SYN, SYN_REPORT, 0);
492 litest_event(dev, EV_KEY, BTN_LEFT, 0);
493 litest_event(dev, EV_SYN, SYN_REPORT, 0);
494 litest_touch_up(dev, 0);
495 litest_touch_up(dev, 1);
496 litest_touch_up(dev, 2);
509 struct litest_device *dev = litest_current_device();
510 struct libinput *li = dev->libinput;
512 if (litest_slot_count(dev) > 2)
515 litest_enable_clickfinger(dev);
519 litest_touch_down(dev, 0, 90, 15);
520 litest_touch_down(dev, 1, 10, 15);
522 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
523 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 1);
524 litest_event(dev, EV_SYN, SYN_REPORT, 0);
526 litest_event(dev, EV_KEY, BTN_LEFT, 1);
527 litest_event(dev, EV_SYN, SYN_REPORT, 0);
528 litest_event(dev, EV_KEY, BTN_LEFT, 0);
529 litest_event(dev, EV_SYN, SYN_REPORT, 0);
530 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
531 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 0);
532 litest_event(dev, EV_SYN, SYN_REPORT, 0);
533 litest_touch_up(dev, 0);
534 litest_touch_up(dev, 1);
547 struct litest_device *dev = litest_current_device();
548 struct libinput *li = dev->libinput;
553 libinput_device_config_click_set_method(dev->libinput_device,
558 litest_touch_down(dev, 0, 40, 60);
559 litest_touch_down(dev, 1, 60, 100);
560 litest_event(dev, EV_KEY, BTN_LEFT, 1);
561 litest_event(dev, EV_SYN, SYN_REPORT, 0);
562 litest_event(dev, EV_KEY, BTN_LEFT, 0);
563 litest_event(dev, EV_SYN, SYN_REPORT, 0);
564 litest_touch_up(dev, 0);
565 litest_touch_up(dev, 1);
577 litest_touch_down(dev, 0, 40, 100);
578 litest_touch_down(dev, 1, 60, 95);
579 litest_event(dev, EV_KEY, BTN_LEFT, 1);
580 litest_event(dev, EV_SYN, SYN_REPORT, 0);
581 litest_event(dev, EV_KEY, BTN_LEFT, 0);
582 litest_event(dev, EV_SYN, SYN_REPORT, 0);
583 litest_touch_up(dev, 0);
584 litest_touch_up(dev, 1);
594 litest_touch_down(dev, 0, 50, 75);
595 litest_touch_down(dev, 1, 55, 100);
596 litest_event(dev, EV_KEY, BTN_LEFT, 1);
597 litest_event(dev, EV_SYN, SYN_REPORT, 0);
598 litest_event(dev, EV_KEY, BTN_LEFT, 0);
599 litest_event(dev, EV_SYN, SYN_REPORT, 0);
600 litest_touch_up(dev, 0);
601 litest_touch_up(dev, 1);
614 struct litest_device *dev = litest_current_device();
615 struct libinput *li = dev->libinput;
619 litest_enable_buttonareas(dev);
621 litest_touch_down(dev, 0, 95, 95);
622 litest_event(dev, EV_KEY, BTN_LEFT, 1);
623 litest_event(dev, EV_SYN, SYN_REPORT, 0);
624 litest_event(dev, EV_KEY, BTN_LEFT, 0);
625 litest_event(dev, EV_SYN, SYN_REPORT, 0);
626 litest_touch_up(dev, 0);
634 litest_enable_clickfinger(dev);
639 litest_touch_down(dev, 0, 95, 95);
640 litest_event(dev, EV_KEY, BTN_LEFT, 1);
641 litest_event(dev, EV_SYN, SYN_REPORT, 0);
642 litest_event(dev, EV_KEY, BTN_LEFT, 0);
643 litest_event(dev, EV_SYN, SYN_REPORT, 0);
644 litest_touch_up(dev, 0);
657 struct litest_device *dev = litest_current_device();
658 struct libinput *li = dev->libinput;
662 litest_enable_buttonareas(dev);
664 litest_touch_down(dev, 0, 95, 95);
665 litest_event(dev, EV_KEY, BTN_LEFT, 1);
666 litest_event(dev, EV_SYN, SYN_REPORT, 0);
671 litest_enable_clickfinger(dev);
673 litest_event(dev, EV_KEY, BTN_LEFT, 0);
674 litest_event(dev, EV_SYN, SYN_REPORT, 0);
675 litest_touch_up(dev, 0);
684 litest_touch_down(dev, 0, 95, 95);
685 litest_event(dev, EV_KEY, BTN_LEFT, 1);
686 litest_event(dev, EV_SYN, SYN_REPORT, 0);
687 litest_event(dev, EV_KEY, BTN_LEFT, 0);
688 litest_event(dev, EV_SYN, SYN_REPORT, 0);
689 litest_touch_up(dev, 0);
702 struct litest_device *dev = litest_current_device();
703 struct libinput *li = dev->libinput;
705 litest_enable_clickfinger(dev);
710 litest_touch_down(dev, 0, 95, 95);
711 litest_event(dev, EV_KEY, BTN_LEFT, 1);
712 litest_event(dev, EV_SYN, SYN_REPORT, 0);
713 litest_event(dev, EV_KEY, BTN_LEFT, 0);
714 litest_event(dev, EV_SYN, SYN_REPORT, 0);
715 litest_touch_up(dev, 0);
723 litest_enable_buttonareas(dev);
725 litest_touch_down(dev, 0, 95, 95);
726 litest_event(dev, EV_KEY, BTN_LEFT, 1);
727 litest_event(dev, EV_SYN, SYN_REPORT, 0);
728 litest_event(dev, EV_KEY, BTN_LEFT, 0);
729 litest_event(dev, EV_SYN, SYN_REPORT, 0);
730 litest_touch_up(dev, 0);
743 struct litest_device *dev = litest_current_device();
744 struct libinput *li = dev->libinput;
746 litest_enable_clickfinger(dev);
751 litest_touch_down(dev, 0, 95, 95);
752 litest_event(dev, EV_KEY, BTN_LEFT, 1);
753 litest_event(dev, EV_SYN, SYN_REPORT, 0);
757 litest_enable_buttonareas(dev);
759 litest_event(dev, EV_KEY, BTN_LEFT, 0);
760 litest_event(dev, EV_SYN, SYN_REPORT, 0);
761 litest_touch_up(dev, 0);
767 litest_touch_down(dev, 0, 95, 95);
768 litest_event(dev, EV_KEY, BTN_LEFT, 1);
769 litest_event(dev, EV_SYN, SYN_REPORT, 0);
770 litest_event(dev, EV_KEY, BTN_LEFT, 0);
771 litest_event(dev, EV_SYN, SYN_REPORT, 0);
772 litest_touch_up(dev, 0);
785 struct litest_device *dev = litest_current_device();
786 struct libinput *li = dev->libinput;
788 litest_enable_clickfinger(dev);
793 litest_touch_down(dev, 0, 20, 99);
794 litest_touch_down(dev, 1, 90, 15);
795 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
796 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 1);
797 litest_event(dev, EV_SYN, SYN_REPORT, 0);
800 litest_event(dev, EV_KEY, BTN_LEFT, 1);
801 litest_event(dev, EV_SYN, SYN_REPORT, 0);
802 litest_event(dev, EV_KEY, BTN_LEFT, 0);
803 litest_event(dev, EV_SYN, SYN_REPORT, 0);
815 struct litest_device *dev = litest_current_device();
816 struct libinput *li = dev->libinput;
818 litest_enable_clickfinger(dev);
821 litest_touch_down(dev, 0, 5, 99);
822 litest_touch_down(dev, 1, 90, 15);
823 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
824 litest_event(dev, EV_KEY, BTN_TOOL_QUADTAP, 1);
825 litest_event(dev, EV_SYN, SYN_REPORT, 0);
828 litest_event(dev, EV_KEY, BTN_LEFT, 1);
829 litest_event(dev, EV_SYN, SYN_REPORT, 0);
830 litest_event(dev, EV_KEY, BTN_LEFT, 0);
831 litest_event(dev, EV_SYN, SYN_REPORT, 0);
845 struct litest_device *dev = litest_current_device();
846 struct libinput_device *device = dev->libinput_device;
868 struct litest_device *dev = litest_current_device();
869 struct libinput *li = dev->libinput;
871 litest_enable_clickfinger(dev);
875 litest_touch_down(dev, 0, 50, 50);
876 litest_event(dev, EV_KEY, BTN_LEFT, 1);
877 litest_event(dev, EV_SYN, SYN_REPORT, 0);
878 litest_event(dev, EV_KEY, BTN_LEFT, 0);
879 litest_event(dev, EV_SYN, SYN_REPORT, 0);
880 litest_touch_up(dev, 0);
893 struct litest_device *dev = litest_current_device();
894 struct libinput *li = dev->libinput;
896 litest_enable_clickfinger(dev);
900 litest_touch_down(dev, 0, 50, 50);
901 litest_touch_down(dev, 1, 50, 50);
902 litest_event(dev, EV_KEY, BTN_LEFT, 1);
903 litest_event(dev, EV_SYN, SYN_REPORT, 0);
904 litest_event(dev, EV_KEY, BTN_LEFT, 0);
905 litest_event(dev, EV_SYN, SYN_REPORT, 0);
906 litest_touch_up(dev, 0);
907 litest_touch_up(dev, 1);
920 struct litest_device *dev = litest_current_device();
921 struct libinput *li = dev->libinput;
923 litest_enable_clickfinger(dev);
927 litest_touch_down(dev, 0, 50, 50);
928 litest_touch_down(dev, 1, 50, 50);
929 litest_touch_down(dev, 2, 50, 50);
930 litest_event(dev, EV_KEY, BTN_LEFT, 1);
931 litest_event(dev, EV_SYN, SYN_REPORT, 0);
932 litest_event(dev, EV_KEY, BTN_LEFT, 0);
933 litest_event(dev, EV_SYN, SYN_REPORT, 0);
934 litest_touch_up(dev, 0);
935 litest_touch_up(dev, 1);
936 litest_touch_up(dev, 2);
949 struct litest_device *dev = litest_current_device();
950 struct libinput *li = dev->libinput;
953 int nslots = litest_slot_count(dev);
955 litest_enable_clickfinger(dev);
958 litest_touch_down(dev, 0, 40, 50);
963 litest_touch_down(dev, 1, 50, 50);
965 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
972 litest_touch_down(dev, 2, 60, 50);
974 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
975 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 1);
980 litest_button_click(dev, BTN_LEFT, true);
987 litest_push_event_frame(dev);
991 litest_touch_move(dev, 2, 60, 50 + i);
995 litest_touch_move(dev, 1, 50, 50 + i);
998 litest_touch_move(dev, 0, 40, 50 + i);
1001 litest_pop_event_frame(dev);
1007 litest_button_click(dev, BTN_LEFT, false);
1013 litest_touch_up(dev, 2);
1015 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 1);
1016 litest_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, 0);
1022 litest_touch_up(dev, 1);
1024 litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);
1028 litest_touch_up(dev, 0);
1038 struct litest_device *dev = litest_current_device();
1039 struct libinput *li = dev->libinput;
1043 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1044 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1045 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1046 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1059 struct litest_device *dev = litest_current_device();
1060 struct libinput *li = dev->libinput;
1062 litest_enable_buttonareas(dev);
1068 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1069 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1070 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1071 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1080 struct litest_device *dev = litest_current_device();
1081 struct libinput *li = dev->libinput;
1085 litest_touch_down(dev, 0, 50, 50);
1086 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1087 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1097 litest_touch_down(dev, 1, 70, 70);
1098 litest_touch_move_to(dev, 1, 70, 70, 80, 50, 5);
1099 litest_touch_up(dev, 1);
1103 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1104 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1105 litest_touch_up(dev, 0);
1114 struct litest_device *dev = litest_current_device();
1115 struct libinput *li = dev->libinput;
1116 struct libevdev *evdev = dev->evdev;
1126 if (libinput_device_get_size(dev->libinput_device, &w, &h) != 0)
1135 litest_touch_down(dev, 0, 50, 50);
1136 litest_touch_move_to(dev, 0, 50, 50, 54, 54, 10);
1137 litest_touch_move_to(dev, 0, 54, 54, 46, 46, 10);
1138 litest_touch_move_to(dev, 0, 46, 46, 50, 50, 10);
1141 litest_button_click(dev, BTN_LEFT, true);
1144 litest_touch_move_to(dev, 0, 50, 50, 50 + dist, 50 + dist, 10);
1145 litest_touch_move_to(dev, 0, 50 + dist, 50 + dist, 50, 50, 10);
1146 litest_touch_move_to(dev, 0, 50, 50, 50 - dist, 50 - dist, 10);
1150 litest_button_click(dev, BTN_LEFT, false);
1154 litest_touch_move_to(dev, 0, 50, 50, 50 + dist, 50 + dist, 10);
1155 litest_touch_move_to(dev, 0, 50 + dist, 50 + dist, 50, 50, 10);
1156 litest_touch_move_to(dev, 0, 50, 50, 50 - dist, 50 - dist, 10);
1161 litest_touch_move_to(dev, 0, 50, 50, 70, 70, 10);
1168 struct litest_device *dev = litest_current_device();
1169 struct libinput *li = dev->libinput;
1173 litest_touch_down(dev, 0, 10, 90);
1174 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1175 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1181 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1182 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1183 litest_touch_up(dev, 0);
1197 struct litest_device *dev = litest_current_device();
1198 struct libinput *li = dev->libinput;
1202 litest_touch_down(dev, 0, 50, 90);
1203 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1204 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1210 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1211 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1212 litest_touch_up(dev, 0);
1226 struct litest_device *dev = litest_current_device();
1227 struct libinput *li = dev->libinput;
1231 litest_touch_down(dev, 0, 90, 90);
1232 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1233 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1239 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1240 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1241 litest_touch_up(dev, 0);
1255 struct litest_device *dev = litest_current_device();
1256 struct libinput *li = dev->libinput;
1258 litest_enable_tap(dev->libinput_device);
1267 litest_touch_down(dev, 0, 20, 90);
1268 litest_touch_up(dev, 0);
1269 litest_touch_down(dev, 0, 20, 90);
1270 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1271 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1284 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1285 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1286 litest_touch_up(dev, 0);
1297 struct litest_device *dev = litest_current_device();
1298 struct libinput *li = dev->libinput;
1300 litest_enable_tap(dev->libinput_device);
1309 litest_touch_down(dev, 0, 90, 90);
1310 litest_touch_up(dev, 0);
1311 litest_touch_down(dev, 0, 90, 90);
1312 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1313 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1326 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1327 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1328 litest_touch_up(dev, 0);
1339 struct litest_device *dev = litest_current_device();
1340 struct libinput *li = dev->libinput;
1356 litest_touch_down(dev, 0, 20, 90);
1357 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1358 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1366 litest_touch_move_to(dev, 0, 20, 90, 50, 50, 20);
1373 litest_touch_move_to(dev, 0, 50, 50, 20, 90, 20);
1401 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1402 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1403 litest_touch_up(dev, 0);
1415 struct litest_device *dev = litest_current_device();
1416 struct libinput *li = dev->libinput;
1429 litest_touch_down(dev, 0, 20, 90);
1430 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1431 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1438 litest_touch_down(dev, 1, 20, 20);
1439 litest_touch_move_to(dev, 1, 20, 20, 80, 20, 15);
1466 litest_touch_up(dev, 1);
1469 litest_touch_down(dev, 1, 20, 20);
1470 litest_touch_move_to(dev, 1, 20, 20, 20, 80, 15);
1494 litest_touch_up(dev, 1);
1496 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1497 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1498 litest_touch_up(dev, 0);
1510 struct litest_device *dev = litest_current_device();
1511 struct libinput *li = dev->libinput;
1520 litest_touch_down(dev, 0, 30, 90);
1521 litest_touch_move_to(dev, 0, 30, 90, 90, 90, 15);
1524 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1525 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1532 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1533 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1534 litest_touch_up(dev, 0);
1546 struct litest_device *dev = litest_current_device();
1547 struct libinput *li = dev->libinput;
1556 litest_touch_down(dev, 0, 80, 90);
1557 litest_touch_move_to(dev, 0, 80, 90, 30, 90, 15);
1560 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1561 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1568 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1569 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1570 litest_touch_up(dev, 0);
1582 struct litest_device *dev = litest_current_device();
1583 struct libinput *li = dev->libinput;
1587 litest_hover_start(dev, 0, 50, 50);
1589 litest_hover_move_to(dev, 0, 50, 50, 90, 90, 10);
1592 litest_touch_move_to(dev, 0, 90, 90, 91, 91, 1);
1594 litest_button_click(dev, BTN_LEFT, true);
1602 litest_button_click(dev, BTN_LEFT, false);
1603 litest_touch_up(dev, 0);
1613 struct litest_device *dev = litest_current_device();
1614 struct libinput *li = dev->libinput;
1618 litest_touch_down(dev, 0, 10, 5);
1619 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1620 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1627 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1628 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1629 litest_touch_up(dev, 0);
1641 struct litest_device *dev = litest_current_device();
1642 struct libinput *li = dev->libinput;
1646 litest_touch_down(dev, 0, 90, 5);
1647 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1648 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1655 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1656 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1657 litest_touch_up(dev, 0);
1669 struct litest_device *dev = litest_current_device();
1670 struct libinput *li = dev->libinput;
1674 litest_touch_down(dev, 0, 50, 5);
1675 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1676 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1683 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1684 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1685 litest_touch_up(dev, 0);
1697 struct litest_device *dev = litest_current_device();
1698 struct libinput *li = dev->libinput;
1708 litest_touch_down(dev, 0, 80, 5);
1714 litest_touch_move_to(dev, 0, 80, 5, 80, 90, 20);
1717 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1718 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1719 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1720 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1722 litest_touch_up(dev, 0);
1731 struct litest_device *dev = litest_current_device();
1732 struct libinput *li = dev->libinput;
1742 litest_touch_down(dev, 0, 80, 5);
1748 litest_touch_move_to(dev, 0, 80, 5, 80, 90, 20);
1753 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1754 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1755 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1756 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1758 litest_touch_up(dev, 0);
1767 struct litest_device *dev = litest_current_device();
1768 struct libinput *li = dev->libinput;
1770 litest_enable_clickfinger(dev);
1774 litest_touch_down(dev, 0, 90, 5);
1775 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1776 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1777 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1778 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1779 litest_touch_up(dev, 0);
1790 litest_touch_down(dev, 0, 90, 5);
1791 litest_touch_down(dev, 1, 80, 5);
1792 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1793 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1794 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1795 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1796 litest_touch_up(dev, 0);
1797 litest_touch_up(dev, 1);
1810 struct litest_device *dev = litest_current_device();
1811 struct libinput *li = dev->libinput;
1815 libinput_device_config_send_events_set_mode(dev->libinput_device,
1817 litest_enable_clickfinger(dev);
1820 litest_touch_down(dev, 0, 90, 5);
1821 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1822 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1823 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1824 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1825 litest_touch_up(dev, 0);
1836 litest_touch_down(dev, 0, 90, 5);
1837 litest_touch_down(dev, 1, 10, 5);
1838 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1839 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1840 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1841 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1842 litest_touch_up(dev, 0);
1843 litest_touch_up(dev, 1);
1858 struct litest_device *dev = litest_current_device();
1859 struct libinput_device *device = dev->libinput_device;
1860 struct libinput *li = dev->libinput;
1867 litest_touch_down(dev, 0, 30, 95);
1868 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1869 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1890 struct litest_device *dev = litest_current_device();
1891 struct libinput *li = dev->libinput;
1893 litest_enable_buttonareas(dev);
1894 litest_enable_middleemu(dev);
1897 litest_touch_down(dev, 0, 30, 95);
1898 litest_touch_down(dev, 1, 80, 95);
1899 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1900 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1906 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1907 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1908 litest_touch_up(dev, 0);
1909 litest_touch_up(dev, 1);
1923 struct litest_device *dev = litest_current_device();
1924 struct libinput *li = dev->libinput;
1926 litest_enable_buttonareas(dev);
1927 litest_enable_middleemu(dev);
1930 litest_touch_down(dev, 0, 49, 95);
1931 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1932 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1938 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1939 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1940 litest_touch_up(dev, 0);
1954 struct litest_device *dev = litest_current_device();
1955 struct libinput *li = dev->libinput;
1957 litest_enable_buttonareas(dev);
1958 litest_enable_middleemu(dev);
1961 litest_touch_down(dev, 0, 51, 95);
1962 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1963 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1969 litest_event(dev, EV_KEY, BTN_LEFT, 0);
1970 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1971 litest_touch_up(dev, 0);
1985 struct litest_device *dev = litest_current_device();
1986 struct libinput *li = dev->libinput;
1988 litest_enable_buttonareas(dev);
1991 litest_touch_down(dev, 0, 49, 95);
1992 litest_event(dev, EV_KEY, BTN_LEFT, 1);
1993 litest_event(dev, EV_SYN, SYN_REPORT, 0);
1999 litest_enable_middleemu(dev);
2001 litest_event(dev, EV_KEY, BTN_LEFT, 0);
2002 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2003 litest_touch_up(dev, 0);
2013 litest_touch_down(dev, 0, 49, 95);
2014 litest_event(dev, EV_KEY, BTN_LEFT, 1);
2015 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2016 litest_event(dev, EV_KEY, BTN_LEFT, 0);
2017 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2018 litest_touch_up(dev, 0);
2033 struct litest_device *dev = litest_current_device();
2034 struct libinput *li = dev->libinput;
2036 litest_enable_buttonareas(dev);
2037 litest_enable_middleemu(dev);
2041 litest_touch_down(dev, 0, 30, 95);
2042 litest_touch_down(dev, 1, 70, 95);
2043 litest_event(dev, EV_KEY, BTN_LEFT, 1);
2044 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2050 litest_disable_middleemu(dev);
2052 litest_event(dev, EV_KEY, BTN_LEFT, 0);
2053 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2054 litest_touch_up(dev, 0);
2055 litest_touch_up(dev, 1);
2064 litest_touch_down(dev, 0, 49, 95);
2065 litest_event(dev, EV_KEY, BTN_LEFT, 1);
2066 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2067 litest_event(dev, EV_KEY, BTN_LEFT, 0);
2068 litest_event(dev, EV_SYN, SYN_REPORT, 0);
2069 litest_touch_up(dev, 0);