Node: TouchSensor

X3D: 3.3
Component: PointingDeviceSensor
Status:
experimental

Quick Links

➨ Fields

TouchSensor tracks location and state of the pointing device, and detects when user points at geometry. Hint: X3DOM, running in an HTML environment, you actually don't need this node, as you can simply use HTML events (like onclick) on your nodes. However, this node is implemented to complete the pointing device sensor component, and it may be useful to ensure compatibility with older X3D scene content.

HTML Encoding and Default Values

<TouchSensor autoOffset='true' enabled='true' metadata='X3DMetadataObject' ></TouchSensor>

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
autoOffset SFBool true X3DDragSensorNode Determines whether offset values from previous drag gestures are remembered / accumulated.
enabled SFBool true Core/X3DSensorNode Specifies whether this sensor is enabled. A disabled sensor does not produce any output.
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information