Parsing / dev / input / mouse0 for Multi-Touch

I need to enable gesture detection (in user space) from the touchpad of a multi-touch touchscreen touchpad on linux. Reading from the mouse device file (/ dev / input / mouse0) for the touchpad, I realized that this is the PS / 2 protocol.

In short, this is 1 bit for: XY character and overflow, 3 mouse buttons and a constant “1”, followed by 1 byte for delta X and Y.

This is 3 bytes. But I see no way to determine which finger belongs to when there is more than one finger on the touch panel. Suggestions?

+5
source share

All Articles