greenhouse
a creative coding toolkit for spatial interfaces

Blurt Events

A blurt event is a discrete event that does not have a duration or an intensity, like a keystroke.

  • Blurt ()
  • BlurtVanish ()
  • Utters ()

Example

#include "Greenhouse.h"


class CustomText  :  public Text
{
  public:

  CustomText (const Str &s)  :  Text (s)
    { SetName ("BlurtText"); }

  void Blurt (BlurtEvent *e) //if a blurt event is received
    { if (Utters (e, "n")) //check to see if n was pressed
        INFORM ("My name is " + Name ());
    }

  void BlurtVanish (BlurtEvent *e) //if a blurt event is received
    { if (Utters (e, "n")) //check to see if n was pressed
        INFORM ("See ya later, " + Name ());
    }
};

void Setup ()
{ CustomText *ct = new CustomText ("Hello, Blurt!");
  ct -> SlapOnFeld ();
}