4

The Kivy gesture documentation is a bit lacking and refers only to the gesture example.

I was wondering why Kivy does not provide any helper methods like on_swipe_left, on_swipe_up etc. Preferably taking minscore as an argument.

Why does one have to manually create a database with base64 encoded strings instead of having the framework handle this automatically? And is there a library that does such a thing already?

dan-klasson
  • 13,734
  • 14
  • 63
  • 101
  • Possible duplicate of [Kivy: Swiping (Carousel & ScreenManager)](http://stackoverflow.com/questions/30934445/kivy-swiping-carousel-screenmanager) – Michael Currie Aug 16 '16 at 09:49

1 Answers1

0

If you look into kivy-examples/gestures/my_gestures.py and gesture_board.py, you can see an example on how to manage any gesture you want. Simply generate the text equivalent of your drawing, and store it in my_gestures.py, and you can then detect any similar gesture.

gaborous
  • 15,832
  • 10
  • 83
  • 102