Multitouch ID strategy (SOLVED)

Has anyone written code for successfully persisting multitouch id numbers?

What I’m thinking now is to keep a list of positions for touches, and then associate first ID number at a new position as new touches are added. Then when number of touches changes look at list of positions and update / set new relative ID based on last IDs and proximity to last position.

Sounds like you want the new “id” field from the touch table? It was introduced in 1.2.100:

We’ve introduced a new field id in the action.touch table, which allows you to more easily track touches.

(I’ve reported the fact that it’s not in the documentation)

4 Likes

Ah, thank you!

Edit: Should also note in the docs that the id is 0 based.

2 Likes