KeySensor

Element Information

Model

Attributes

Used By

Source

<xs:element name="KeySensor">
  <xs:annotation>
    <xs:appinfo>
      <xs:attribute name="actionKeyPress" type="SFInt32" fixed="outputOnlyField"/>
      <xs:attribute name="actionKeyRelease" type="SFInt32" fixed="outputOnlyField"/>
      <xs:attribute name="altKey" type="SFBool" fixed="outputOnlyField"/>
      <xs:attribute name="controlKey" type="SFBool" fixed="outputOnlyField"/>
      <xs:attribute name="shiftKey" type="SFBool" fixed="outputOnlyField"/>
      <xs:attribute name="keyPress" type="SFString" fixed="outputOnlyField"/>
      <xs:attribute name="keyRelease" type="SFString" fixed="outputOnlyField"/>
      <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="KeyDeviceSensor"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
    </xs:appinfo>
    <xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/keyboard.html#KeySensor"/>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="X3DKeyDeviceSensorNode">
        <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample