diff -r 8a21bec5d45f -r e4e7db2435f8 front_processing/src/Trakers_gestures/TuioFunctions.pde --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/front_processing/src/Trakers_gestures/TuioFunctions.pde Thu Mar 22 16:00:17 2012 +0100 @@ -0,0 +1,18 @@ +/*FONCTION DE RECEPTION DES MESSAGES OSC +Entrée : +Sortie : Appel aux différentes fonctions de dessin si un message est reçu*/ +void tuioInput() +{ + fill(255); + Vector tuioStringList = tuioClient.getTuioStrings(); + if(tuioStringList == null || tuioStringList.size() <= 0) + { + showMask(); + text("Gesture non détectée.", width/2 - 20, 20); + } + else + { + showMask(); + showGestureMessage((TuioString)tuioStringList.elementAt(0)); + } +}