Coder Social home page Coder Social logo

ofxgestures's People

Contributors

arturoc avatar tallavi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ofxgestures's Issues

Where should we register/deregister for touch events

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?

how to use this class?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.