Kivy simple gestures (swipes)

The documentation for Kivy documents is a bit absent and applies only to gesture examples .

I was wondering why Kivy does not provide any helper methods such as on_swipe_left, on_swipe_upetc. It is preferable to use minscore as an argument.

Why do I need to manually create a database with base64 encoded strings instead of automatically processing the structure? And is there a library that is already doing such a thing?

+4
source share
1 answer

If you look at kivy-examples/gestures/my_gestures.pyand gesture_board.py, you can see an example of how to control any gesture you want. Just generate the text equivalent of your drawing and save it to my_gestures.py, and then you can detect any similar gesture.

0
source

Source: https://habr.com/ru/post/1570249/


All Articles