Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Simple swipe detection library — Gideros Forum

Simple swipe detection library

stetsostetso Member
edited April 2017 in Code snippets
Hi,

in my most recent project I needed to use simple swipes (4 and 8 (or any other number of) directions) and taps so I came up with a little class that detects those "gestures". It is pretty straightforward and sends the events to stage. Maybe someone else finds it useful so I am publishing it :)
Since I will keep using it for now, I update/fix things as I go!

https://github.com/stetso/GidSwipe

Suggestions and feedback welcome...
Cheers!
+1 -1 (+3 / -0 )Share on Facebook

Comments

  • hgy29hgy29 Maintainer
    Thanks I'll certainly have a look at it, since I tryed to use Gestures.lua from Gideros Coding Easy and the latter seemed buggy: crashes and wrong gestures recognized.
  • stetsostetso Member
    edited April 2017
    Sure, feel free tu use it. However, it really can only detect swipes, not complex gestures. :)

    Should be enough for a Blitz Breaker or Match-3 game...
Sign In or Register to comment.