Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLKeyDeviceSensorNodeType

All Superinterfaces:
java.util.EventListener, FrameStateListener, VRMLChildNodeType, VRMLNode, VRMLNodeType, VRMLSensorNodeType, VRMLWorldRootChildNodeType, Xj3DKeyListener

public interface VRMLKeyDeviceSensorNodeType
extends VRMLSensorNodeType, Xj3DKeyListener

A sensor that takes it's input from a keyboard device.

These sensors handle an active status that determines when they should receive key information from the user interface.

The key mappings passed through to the sensor are implemented in a ui toolkit independent way through the Xj3DKeyListener/Xj3DKeyEvent objects.

Version:
$Revision: 1.9 $
Author:
Justin Couch

Method Summary
 boolean requiresLastEventOnly()
          See if this key device sensor requires only the last key sent or all of them.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLSensorNodeType
getEnabled, getIsActive, setEnabled
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
 
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
 
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
 
Methods inherited from interface org.web3d.vrml.util.Xj3DKeyListener
keyPressed, keyReleased
 

Method Detail

requiresLastEventOnly

boolean requiresLastEventOnly()
See if this key device sensor requires only the last key sent or all of them. This is used to determine what is sent to the implementation. For example, a StringSensor would want all the keys, but the KeySensor only wants the last one.

Returns:
true if this only requires the last key event

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium