A TouchSensor node can be added to any group. It senses Click and Move actions. When the viewer's cursor moves over the sensed group ( a VRML group containing a sensor node) of shapes, isOver eventOut of TouchSensor produces output as a TRUE. As long as, a cursor is over the group of shape, it stays at TRUE level. |
When the viewer produces click action, isActive eventOut of TouchSensor produces TRUE and it will produce FALSE as soon as click action ends. |