[RFC] Multitouch support, step one
Henrik Rydberg
rydberg at euromail.se
Mon Mar 15 12:14:59 PDT 2010
Jeremy Huddleston wrote:
> I actually like the idea of using the valuators to send the data over the wire. Why not use the valuators to also send data like:
>
> valuator 0 = core X
> valuator 1 = core Y
> valuator 2 = multi-touch 0 tracking id
> valuator 3 = multi-touch 0 group id
> valuator 4 = multi-touch 0 x
> valuator 5 = multi-touch 0 y
> valuator 6 = multi-touch 0 pressure
> valuator 7 = multi-touch 1 tracking id
> valuator 8 = multi-touch 1 group id
> valuator 9 = multi-touch 1 x
> valuator 10 = multi-touch 1 y
> valuator 11 = multi-touch 1 pressure
If this is the way you want to go, you might want to consider splitting the data
into a stream of events, such that you only need to define valuators for one
contact, then send the information for each each contact sequentially.
I would also consider using a lower-level protocol such as a buffered device
stream, to avoid the semantic multiplexing introduced by the above approach.
Henrik
More information about the xorg-devel
mailing list