Skip to content

incompatibility of hidio with Multi-touch (MT) Protocol (version B) Hid touchscreens. #47

Description

@jyg

Trying to use hid/ hidio with a touchscreen on linux laptop, it appears that the current vesrion of hidio (as found here) is incompatible with my Multi-touch (MT) Protocol (version B) touchscreen.

In hidio.c, on line 526 some events are filtered (when they appear several times) and not sent to Pd. Furthermore, some events are duplicated as there is an instruction hidio_output_event(x, output_element) both in the parent function (hidio.c, line 528) and in the called function (hidio_linux.c, line 361).

For a correct use of the MT Protocol, each incoming event has to be transmitted, only one time, in order of arrival. (for an presentation of the protocol, see https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt)

To solve this issue In my case, I commented the lines 519-533 of hidio.c, but this may generate some issues with other hid-devices types. However, I don't think that the instruction hidio_output_event shoud be present in both hidio.c and hidio_linux.c.

As I don't know if there is an active mainainer for hid/hidio, I posted this issue here too : avilleret/hid#3
(from https://github.com/jyg/PdMultitouch/blob/master/hidio/Readme.md)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions