29 #ifndef __MOUSESENSOR_H__
30 #define __MOUSESENSOR_H__
62 Inst< SFNode > _metadata = 0,
63 Inst< SFBool > _isActive = 0,
64 Inst< SFVec2f > _position = 0,
65 Inst< SFBool > _leftButton = 0,
66 Inst< SFBool > _middleButton = 0,
67 Inst< SFBool > _rightButton = 0,
68 Inst< SFVec2f > _motion = 0,
69 Inst< SFBool > _scrollUp = 0,
70 Inst< SFBool > _scrollDown = 0
78 virtual void mouseMotionAction(
int x,
int y );
85 virtual void mouseButtonAction(
int button,
int state );
89 virtual void mouseWheelAction(
int direction );
93 static void buttonCallback(
int button,
int state );
97 static void motionCallback(
int x,
int y );
100 static void wheelCallback(
int direction );
143 static list< MouseSensor * > instances;
144 static bool invalid_instance_ptr;
Contains the SFVec2f field class.
Header file for X3DSensorNode, X3D scene-graph node.
A sensor node for reading mouse values.
Definition: MouseSensor.h:47
H3DUniquePtr< SFBool > scrollUp
The scrollUp field generates a TRUE event when the mouse scroll wheel is moved up.
Definition: MouseSensor.h:131
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: MouseSensor.h:140
H3DUniquePtr< SFBool > leftButton
The status of the left button.
Definition: MouseSensor.h:110
H3DUniquePtr< SFBool > scrollDown
The scrollDown field generates a TRUE event when the mouse scroll wheel is moved down.
Definition: MouseSensor.h:137
H3DUniquePtr< SFVec2f > position
The position of the mouse in window relative coordinates.
Definition: MouseSensor.h:105
H3DUniquePtr< SFBool > rightButton
The status of the right button.
Definition: MouseSensor.h:120
H3DUniquePtr< SFBool > middleButton
The status of the middle button.
Definition: MouseSensor.h:115
H3DUniquePtr< SFVec2f > motion
The relative motion since in the last change of the position field.
Definition: MouseSensor.h:125
This abstract node type is the base type for all sensors.
Definition: X3DSensorNode.h:40
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