Skip to content

danialias/axmol-gesture-recognizers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Axmol Engine Gesture Recognizers

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

How to integrate gestures code inside your (or new) project

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 and Content folders from the sample project and add those of this repository
  • Add the source files on CMakeList.txt

License MIT

About

Touch Gesture Recognizers for Axmol Engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.9%
  • C 0.1%