HTML Encoding and Default Values⤴
<TouchSensor
autoOffset='true'
enabled='true'
metadata='X3DMetadataObject'
></TouchSensor>
Inheritance⤴
- X3DNode(18)
- X3DChildNode(12)
- X3DSensorNode(3)
- X3DPointingDeviceSensorNode(2)
- X3DDragSensorNode(4)
- TouchSensor
Constructor⤴
-
TouchSensor(ctx)⤴
-
Constructor for TouchSensor
Parameters:
Name Type Argument Default Description ctxObject <optional>
null context object, containing initial settings like namespace
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 | X3DSensorNode |
|
Specifies whether this sensor is enabled. A disabled sensor does not produce any output. | |
| metadata | SFNode | X3DMetadataObject | X3DNode |
|
Field to add metadata information |
documentation