Mobile Gesture Recognition Toolkit

Okay, made some progress. For anyone interested in seeing how this is coming together, I’ve pushed my project up to github:

So far, I’ve only got the tap and swipe gesture recognizers done, but I’ve also got a lot of infrastructure in place for doing the rest of them fairly easily. The Gesture Recognizers themselves are in C++, but the sample project uses them from Blueprint.

The basic process is:

  1. Add a gesture recognizer component to an actor. In the sample project, it’s the player’s Character blueprint
  2. Configure the gesture recognizer to identify the types of gestures you want detected
  3. Add the GestureEnded delegate event to your blueprint (Green button)
  4. Do whatever you need to do in your blueprint. If you need more details, you can query the gesture recognizer. In the sample project, the blueprint queries for the number of taps and the type of swipe.

It’s still early and rough, but I think it’s a good approach. Feel free to check it out and provide feedback.