Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use standalone gessture detection? #6

Open
lapsio opened this issue Jan 11, 2014 · 1 comment
Open

Is it possible to use standalone gessture detection? #6

lapsio opened this issue Jan 11, 2014 · 1 comment

Comments

@lapsio
Copy link

lapsio commented Jan 11, 2014

I'd really like to use camera-based gessture detection and I could find it only in your project. Is it possible to use gesture.js standalone and provide custom callbacks?

@willyvvu
Copy link
Owner

Creating a standalone version is a great idea. Unfortunately, I don't have much time to create a standalone version, but I'll tell you where you can piece together the parts. Feel free to fork/create a new repository if you get it to work!

The majority of the code should be in gesture.js. You can see commented-out callbacks for activating each of the movement events in lines 186 to 213.

Also, you need the last 4 elements in index.html. Specifically, you'll need lines 261 to 264.

Happy coding, and let me know how it goes,
Willy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants