front_processing/src/Trakers_gestures/TuioFunctions.pde
author bastiena
Thu, 05 Apr 2012 15:54:44 +0200
changeset 17 fda26bfcabef
parent 10 925b7ee746e3
child 51 03ea3d7ddbe1
permissions -rw-r--r--
Middleware : new gesture implemented : WAVE new kind of detection : postures new postures implemented : BEND KNEE_UP CROSS (developpement, but should be dropped because of collisions with SWIPE gestures) Gesture/Posture detectors got a link towards Debug (For debug purpose only, will be removed later)

/*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));
    }
}