Coder Social home page Coder Social logo

Comments (3)

rpavlik avatar rpavlik commented on September 3, 2024

The source code in question is InterfaceCallbacks.cs, I think. AFAICT, the whole generated section can be upstreamed in some form (probably have to swap the Unity vec3/quat/matrix types for something general), and I think some basic lifecycle methods would allow replacement of the remaining unity-specific code in that file, leaving a unity-specific class that contains a member of this upstream type, providing access to the clientkit context and calling lifecycle methods based on the frame loop callbacks.

I'm adding some comments that should assist with this. This could start with copying the code "up", then we could review and adapt the Unity code to re-use rather than duplicate, so that this could start without needing to do any Unity development.

from osvr-unity.

JeroMiya avatar JeroMiya commented on September 3, 2024

Are there interface types that produce more than one report type (per a single source path)? Like, maybe something that supports pose and button callbacks? Or would the different report types be exposed on different source paths?

The reason I ask is that it might be useful to separate the interface callbacks each into their own Interface class, with a single event to subscribe to for that event. Then all the callback classes could derive from a common generic class and/or implement a common interface.

Edit: answered my own question - there are certainly interfaces with more than one supported callback type. e.g. pose interfaces might also support orientation callbacks, and so on.

from osvr-unity.

JeroMiya avatar JeroMiya commented on September 3, 2024

This can be closed. It will be implemented as part of this issue:
OSVR/Managed-OSVR#7

from osvr-unity.

Related Issues (20)

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.