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

some issue with multitouchscreen protocol #1

Open
jyg opened this issue Jan 24, 2019 · 2 comments
Open

some issue with multitouchscreen protocol #1

jyg opened this issue Jan 24, 2019 · 2 comments

Comments

@jyg
Copy link

jyg commented Jan 24, 2019

Hi. I contact you because I was working too on hidio a few months ago, trying to use it with my multitouchscreen laptop (linux). Unfortunately, the version found here (https://puredata.info/downloads/hidio/releases/0.1) is incompatible with Multi-touch (MT) Protocol (version B) touchscreens.
So I created a fork, and I explained the problem here https://github.com/jyg/PdMultitouch/tree/master/hidio .
I have to further investigate, but it seems that for some events, hidio_output_event(x, output_element) is triggered twice, (under linux, both in hidio.c and in hidio_linux.c). Could you check if this is true in mac version ?
I have no time to make a PR now, but as soon as I can, I'lll do it.
Thanks

@Benitoite
Copy link
Owner

Benitoite commented Jan 24, 2019 via email

@jyg
Copy link
Author

jyg commented Jan 25, 2019

I may suggest you to test hidio with some controllers you own (mouse, pad, joystick) to check if there aren't any events duplicated twice on the object's outlet when you move the controller, due to the fact that hidio_output_event(x, current_element) is called twice (line 528 of hidio.c and line 361 of hidio_linux.c or lines 234 and further of hidio_darwin.c).

I commented the lines 519-533 of hidio.c. You should try this and test if this changes something for you.

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