29 #ifndef __X3DKEYSENSOR_H__
30 #define __X3DKEYSENSOR_H__
96 Inst< SFNode> _metadata = 0,
97 Inst< SFBool> _isActive = 0,
98 Inst< SFInt32> _actionKeyPress = 0,
99 Inst< SFInt32> _actionKeyRelease = 0,
100 Inst< SFBool> _altKey = 0,
101 Inst< SFBool> _controlKey = 0,
102 Inst< SFBool> _shiftKey = 0,
103 Inst< SFString> _keyPress = 0,
104 Inst< SFString> _keyRelease = 0
108 virtual void keyboardDown(
int key,
bool special_key );
111 virtual void keyboardUp(
int key,
bool special_key );
Contains the SFInt32 field class.
Contains the SFString field class.
Header file for X3DKeyDeviceSensorNode, X3D scene-graph node.
A KeySensor node generates events when the user presses keys on the keyboard.
Definition: KeySensor.h:91
H3DUniquePtr< SFString > keyPress
The keyPress field events are generated as keys which produce characters are pressed.
Definition: KeySensor.h:159
H3DUniquePtr< SFString > keyRelease
The keyRelease field events are generated as keys which produce characters are released.
Definition: KeySensor.h:167
H3DUniquePtr< SFBool > controlKey
Generates events when control key is used.
Definition: KeySensor.h:143
H3DUniquePtr< SFBool > altKey
Generates events when alt key is used.
Definition: KeySensor.h:135
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: KeySensor.h:170
H3DUniquePtr< SFInt32 > actionKeyPress
The actionKeyPress fields contains an integer that specifies which action key was the last one to be ...
Definition: KeySensor.h:119
H3DUniquePtr< SFBool > shiftKey
Generates events when shift key is used.
Definition: KeySensor.h:151
H3DUniquePtr< SFInt32 > actionKeyRelease
The actionKeyRelease fields contains an integer that specifies which action key was the last one to b...
Definition: KeySensor.h:127
This abstract node type is the base type for all sensor node types which operate using key devices.
Definition: X3DKeyDeviceSensorNode.h:43
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194