<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-3.3.xsd
'>
<head>
</head>
<!--
Index for DEF nodes
:
BackgroundDefault,
BackgroundTouchCone,
DarkBlue,
DefaultCylinderSensor,
DefaultKeySensor,
DefaultMaterial,
DefaultPlaneSensor,
DefaultSphereSensor,
DefaultStringSensor,
DefaultTouchSensor,
GreenAppearance,
GreyMaterial,
JustifyMiddle,
KeyboardProcessor,
KeyText,
LightBrownAppearance,
RedAppearance,
ReferenceTexture,
SphereSensorText,
StringText,
TransformBox,
TransformCylinder,
TransformSphere
Index for Viewpoint image
:
Viewpoint_1
-->
<Scene>
<WorldInfo title='UserInteractivitySensorNodes.x3d'/>
<Viewpoint description='User interactivity sensor nodes' position='0 0 12'/>
<Background DEF='BackgroundDefault' groundColor='0.2 0.4 0.6' skyColor='0.2 0.4 0.6'/>
<!-- ROUTE information for BackgroundTouchCone node:
[from DefaultTouchSensor.isActive to set_bind
]
-->
<Background DEF='BackgroundTouchCone' skyColor='0.5 0.7 0.9'/>
<Transform translation='0 4 0'>
<Shape>
<Text string='"Sensor node examples"'>
<FontStyle justify='"MIDDLE" "MIDDLE"' size='1.5'/>
</Text>
<Appearance>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 1 0'>
</Transform>
<Group>
<![CDATA[
ecmascript:
function keyInput (inputValue)
{
// Browser.print ('keyInput=' + inputValue + '\n'); // console output
keyOutput = new MFString (inputValue); // type conversion
}
function finalTextInput (inputValue)
{
// Browser.print ('finalText=' + inputValue + '\n'); // console output
stringOutput = new MFString (inputValue); // type conversion
}
function enteredTextInput (inputValue)
{
Browser.print ('enteredText=' + inputValue + '\n'); // console output
}
]]>
</Scene>
</X3D>
<!--
Index for DEF nodes
:
BackgroundDefault,
BackgroundTouchCone,
DarkBlue,
DefaultCylinderSensor,
DefaultKeySensor,
DefaultMaterial,
DefaultPlaneSensor,
DefaultSphereSensor,
DefaultStringSensor,
DefaultTouchSensor,
GreenAppearance,
GreyMaterial,
JustifyMiddle,
KeyboardProcessor,
KeyText,
LightBrownAppearance,
RedAppearance,
ReferenceTexture,
SphereSensorText,
StringText,
TransformBox,
TransformCylinder,
TransformSphere
Index for Viewpoint image
:
Viewpoint_1
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity/UserInteractivitySensorNodesIndex.html
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints.
-->