Get X and Y position of TUIO object
in
Contributed Library Questions
•
8 months ago
Hello,
this is how I get X and Y position into array based on mouse cursor:
- r[0].x = mouseX;
- r[0].y = mouseY;
- s[0].x = xhist[(index+1)%history];
- s[0].y = yhist[(index+1)%history];
- index = (index+1)%history;
- xhist[index] = mouseX;
- yhist[index] = mouseY;
Cheers
1