front_processing/src/Trakers_gestures/TuioFunctions.pde
author ymh <ymh.work@gmail.com>
Thu, 02 Aug 2012 11:39:46 +0200
changeset 72 48a37ea3452c
parent 51 03ea3d7ddbe1
permissions -rw-r--r--
Added tag V00.02 for changeset 2220313b692e

/*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();
        textSize(32);
        text("Gesture non détectée.", width/2, height/2);
    }
    else
    {
        showMask();
        showGestureMessage((TuioString)tuioStringList.elementAt(0));
    }
}