165

Sensing viewer actions
Syntax: TouchSensor

  • A TouchSensor node senses the cursor's touch
  • isOver - send true/false when cursor over/not over
  • isActive - send true/false when mouse button pressed/released
  • touchTime - send time when mouse button released
  • Transform {
        children [
            DEF Touched TouchSensor { }
    	Shape { . . . }
            . . .
        ]
    }