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

TypeId, UserId improperly set #3

Open
nomve opened this issue Mar 10, 2016 · 2 comments
Open

TypeId, UserId improperly set #3

nomve opened this issue Mar 10, 2016 · 2 comments

Comments

@nomve
Copy link
Owner

nomve commented Mar 10, 2016

Check if they are always properly set.

@mblinsitu
Copy link

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);

@nomve
Copy link
Owner Author

nomve commented Mar 18, 2016

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.

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