tallavi / ofxgestures Goto Github PK
View Code? Open in Web Editor NEWcross platform gesture recognizing add-on for OpenFrameworks
cross platform gesture recognizing add-on for OpenFrameworks
Hi @arturoc ,
We made allot of changes to ofxGestures, in the spirit of your PR. The latest version is on more_gestures branch. It’s global, contains your interface changes, and has more gestures - tap and long press.
We did run into problem with touch event registrations.
The of core events is not global and it’s part of the window. If that window is destroyed and recreated, we lose the touch events. Also, on scenarios with other view controllers (iOS) or activities (Android) besides the OFActivity, ofxGestures’s state becomes dirty and we need to reset the current touches map when the ofApp starts running again. We found no way (event) to know when the message loop starts or stops, we also found no way to know when there’s a new app running and we need to reregister touch events.
Regarding the registration when there’s a new ofApp, sure, we can resolve it by putting a line in the setup of the ofApp that tells ofxGestures to reregister, but it hurts the seamlessness of the solution. Regarding the foreground/background issue, we resolved it with a way completely external to OF (we have our own cross platform way of knowing when the current activity is foreground/background), but it makes the solution incomplete. Any thoughts?
Hi
Will this work on windows, right now im getting touchPoints in an of app running win 8.1 and want to get gestures..... So i found your addon but i was not able to get my head on how to use this.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.