Original version by Alfonso Grillo
Adaptation for Axmol Engine by Daniel Alias on 24/12/14 (yy/mm/dd)
This project is an extension for Axmol Engine that provide touch Gesture Recognizers.
The classes recognize the following gestures:
- Swipe (one finger, 4 directions)
- Long press (one or multiple fingers)
- Pinch with rotation (two fingers)
- Pan (one or multiple fingers)
- Tap (one or multiple taps with one or multiple fingers)
This work was inspired by Apple documentation about the Gesture Recognizers:
Apple Gesture Recognizers for iOS
Gestures in action on YouTube
The repository contains two folders inside Source
folder:
- Gestures
- Test
The actual gesture recognition requires only the Gestures
folder.
The Test
folder contains various example scenes. To try the code you can do the following steps:
- Delete
Source
andContent
folders from the sample project and add those of this repository - Add the source files on CMakeList.txt
License MIT