Table of contents
Chapter index
Previous slide
Next slide
165
Syntax: TouchSensor
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 { . . . } . . . ] }