Lines Matching refs:uhdev
543 uhdev = self.uhdev
544 evdev = uhdev.get_evdev()
547 r = uhdev.event(0, 0, (None, True, None))
549 events = uhdev.next_sync_events()
550 self.debug_reports(r, uhdev, events)
554 r = uhdev.event(0, 0, (None, False, None))
556 events = uhdev.next_sync_events()
557 self.debug_reports(r, uhdev, events)
561 r = uhdev.event(0, 0, (None, None, True))
563 events = uhdev.next_sync_events()
564 self.debug_reports(r, uhdev, events)
568 r = uhdev.event(0, 0, (None, None, False))
570 events = uhdev.next_sync_events()
571 self.debug_reports(r, uhdev, events)
575 r = uhdev.event(0, 0, (True, None, None))
577 events = uhdev.next_sync_events()
578 self.debug_reports(r, uhdev, events)
582 r = uhdev.event(0, 0, (False, None, None))
584 events = uhdev.next_sync_events()
585 self.debug_reports(r, uhdev, events)
589 r = uhdev.event(0, 0, (True, True, None))
592 events = uhdev.next_sync_events()
593 self.debug_reports(r, uhdev, events)
600 r = uhdev.event(0, 0, (False, None, None))
602 events = uhdev.next_sync_events()
603 self.debug_reports(r, uhdev, events)
608 r = uhdev.event(0, 0, (None, False, None))
610 events = uhdev.next_sync_events()
611 self.debug_reports(r, uhdev, events)
618 uhdev = self.uhdev
622 r = uhdev.event(0, -1)
624 events = uhdev.next_sync_events()
625 self.debug_reports(r, uhdev, events)
628 r = uhdev.event(1, 0)
630 events = uhdev.next_sync_events()
631 self.debug_reports(r, uhdev, events)
634 r = uhdev.event(-1, 2)
637 events = uhdev.next_sync_events()
638 self.debug_reports(r, uhdev, events)
652 uhdev = self.uhdev
655 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
658 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
661 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
664 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
667 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
670 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
673 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
676 assert uhdev.fake_report(*event) == uhdev.create_report(*event)
680 uhdev.create_report(*event)
687 def is_wheel_highres(self, uhdev): argument
688 evdev = uhdev.get_evdev()
693 uhdev = self.uhdev
696 high_res_wheel = self.is_wheel_highres(uhdev)
701 mult = uhdev.wheel_multiplier
703 r = uhdev.event(0, 0, wheels=1 * mult)
708 events = uhdev.next_sync_events()
709 self.debug_reports(r, uhdev, events)
712 r = uhdev.event(0, 0, wheels=-1 * mult)
717 events = uhdev.next_sync_events()
718 self.debug_reports(r, uhdev, events)
721 r = uhdev.event(-1, 2, wheels=3 * mult)
728 events = uhdev.next_sync_events()
729 self.debug_reports(r, uhdev, events)
737 def is_hwheel_highres(self, uhdev): argument
738 evdev = uhdev.get_evdev()
743 uhdev = self.uhdev
746 high_res_wheel = self.is_wheel_highres(uhdev)
747 high_res_hwheel = self.is_hwheel_highres(uhdev)
753 hmult = uhdev.hwheel_multiplier
754 vmult = uhdev.wheel_multiplier
756 r = uhdev.event(0, 0, wheels=(0, 1 * hmult))
761 events = uhdev.next_sync_events()
762 self.debug_reports(r, uhdev, events)
765 r = uhdev.event(0, 0, wheels=(0, -1 * hmult))
772 events = uhdev.next_sync_events()
773 self.debug_reports(r, uhdev, events)
776 r = uhdev.event(-1, 2, wheels=(0, 3 * hmult))
783 events = uhdev.next_sync_events()
784 self.debug_reports(r, uhdev, events)
787 r = uhdev.event(-1, 2, wheels=(-3 * vmult, 4 * hmult))
797 events = uhdev.next_sync_events()
798 self.debug_reports(r, uhdev, events)
806 def is_wheel_highres(self, uhdev): argument
807 high_res = super().is_wheel_highres(uhdev)
812 assert uhdev.wheel_multiplier == 1
817 uhdev = self.uhdev
819 if not self.is_wheel_highres(uhdev):
822 assert uhdev.wheel_multiplier > 1
823 assert 120 % uhdev.wheel_multiplier == 0
826 uhdev = self.uhdev
828 if not self.is_wheel_highres(uhdev):
831 assert uhdev.wheel_multiplier > 1
834 mult = uhdev.wheel_multiplier
836 r = uhdev.event(0, 0, wheels=1)
841 events = uhdev.next_sync_events()
842 self.debug_reports(r, uhdev, events)
845 r = uhdev.event(0, 0, wheels=-1)
850 events = uhdev.next_sync_events()
851 self.debug_reports(r, uhdev, events)
862 r = uhdev.event(1, -2, wheels=1)
863 events = uhdev.next_sync_events()
864 self.debug_reports(r, uhdev, events)
867 r = uhdev.event(1, -2, wheels=1)
869 events = uhdev.next_sync_events()
870 self.debug_reports(r, uhdev, events)
878 def is_wheel_highres(self, uhdev): argument
879 high_res = super().is_wheel_highres(uhdev)
881 assert uhdev.wheel_multiplier == 1
886 uhdev = self.uhdev
888 assert uhdev.wheel_multiplier == 1
895 def is_hwheel_highres(self, uhdev): argument
896 high_res = super().is_hwheel_highres(uhdev)
901 assert uhdev.hwheel_multiplier == 1
906 uhdev = self.uhdev
908 if not self.is_hwheel_highres(uhdev):
911 assert uhdev.hwheel_multiplier > 1
912 assert 120 % uhdev.hwheel_multiplier == 0
915 uhdev = self.uhdev
917 if not self.is_hwheel_highres(uhdev):
920 assert uhdev.hwheel_multiplier > 1
923 hmult = uhdev.hwheel_multiplier
925 r = uhdev.event(0, 0, wheels=(0, 1))
930 events = uhdev.next_sync_events()
931 self.debug_reports(r, uhdev, events)
934 r = uhdev.event(0, 0, wheels=(0, -1))
939 events = uhdev.next_sync_events()
940 self.debug_reports(r, uhdev, events)
951 r = uhdev.event(1, -2, wheels=(0, 1))
952 events = uhdev.next_sync_events()
953 self.debug_reports(r, uhdev, events)
956 r = uhdev.event(1, -2, wheels=(0, 1))
958 events = uhdev.next_sync_events()
959 self.debug_reports(r, uhdev, events)