vialab / SMT

Simple Multi-Touch (SMT) Toolkit
http://vialab.science.uoit.ca/smt
GNU General Public License v3.0
43 stars 18 forks source link

Previous coordonate of a touch #192

Closed Kimaker closed 10 years ago

Kimaker commented 10 years ago

Hello. Sorry to bother you again. Is it possible to get a previous coordonate of a touch? Like the objects pmouseX or pmouseY in Processing? I found some touch getPathpoints(), but I would like pick the only previous value.

kiwistrongis commented 10 years ago

Um it's not super easy, because of the way the data is stored. There's Touch.xSpeed and Touch.ySpeed. There's also Touch.getPath(), which returns a vector of TuioPoints, which have time data.

Kimaker commented 10 years ago

Yes! Touch.xSpeed and Touch.ySpeed are perfect, but they don't seem appear in the reference of the library. Thank you again!

kiwistrongis commented 10 years ago

You're welcome :).

paluka commented 10 years ago

Are you going to write a tutorial explaining this @kiwistrongis ?

kiwistrongis commented 10 years ago

It's covered in the fourth basic tutorial already: http://kalev.io/smt/tutorial/four.php I could have mentioned the xSpeed and ySpeed bit, but I don't like them... I guess I'll add them in.