Giter Site home page Giter Site logo

TypeId, UserId improperly set about tuio.js HOT 2 OPEN

nomve avatar nomve commented on August 22, 2024
TypeId, UserId improperly set

from tuio.js.

Comments (2)

mblinsitu avatar mblinsitu commented on August 22, 2024

TypeId and UserId are swapped: the protocol specifies that "the first two bytes of the type/user attribute are therefore encoding the User ID, while the second half of the attribute encode the actual Type ID resulting in two 16bit unsigned integer values."

In TuioComponent.js - setTypeUserId, change

        this.typeId = bufferView.getUint16(0);
        this.userId = bufferView.getUint16(2);

to

        this.typeId = bufferView.getUint16(2);
        this.userId = bufferView.getUint16(0);

from tuio.js.

nomve avatar nomve commented on August 22, 2024

Thanks. There are I think other issues with it, but I didn't have time to check it out. In general, I developed this for something else, where in the end I didn't use Tuio2. I actually never had a device with Tuio2 and it was never tested with anything real, just with the simulator.

I hope to have the things that are supposed be implemented bug-free at one point, but I'm not sure what the long term status of this project is.

from tuio.js.

Related Issues (7)

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.