Closed hsteinel closed 3 years ago
Yes! You can use verticalSwipe
or horizontalSwipe
(see README)
For your information. I found a bug in your verticalSwipe Calculation. No matter if you swiped up or down, swiped up is always true. I solved it with this:
bool swipedUp = angle <0 && angle.abs () <(3 * math.pi / 4) && angle.abs ()> (math.pi / 4);
bool swipedDown = angle> 0 && angle.abs () <(3 * math.pi / 4) && angle.abs ()> (math.pi / 4);
Is it possible to disable only one direction?