We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
ControlP5 Multitouch (Read 1013 times)
ControlP5 Multitouch
Dec 25th, 2009, 4:41am
 
Hi!

Can anyone explain how the "multitouch"-method of ControlP5's ControlWindow class works?

I currently restarted work on a virtual MIDI controller with can be controller via a (multi-)touchscreen: nuigroup.com/forums/viewthread/4993/P0/

To be more pricise: When there are two touches my TUIO app (reaTIVision) sends two TUIO messages which are received by my app. How do i have to handle this array which is used when calling:  
controlP5.controlWindow.multitouch(array);
array[0][0] is the X-value, array[0][1] is Y, array[0][2] is mouse_pressed or released
But what if there are two or more touches? And what if there are two touches (array.length=2) and touch "0" is released? Can I cut the array (array.length=1)?

The managment of this array is kind of tricky, isn't it?
Are there any examples? Has anybody successfully used the multitouch method and how?

Re: ControlP5 Multitouch
Reply #1 - Dec 26th, 2009, 3:34am
 
Ok, Andreas Schlegel who developed ControlP5 said the multitouch capability isn't ready and working... what a pitty Sad
Page Index Toggle Pages: 1