![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class encapsulates the state associated with a mouse button event.
Public Types | |
| enum | MouseButton { NoButton = 0x0, LeftButton = 0x1, MiddleButton = 0x2, RightButton = 0x4 } |
| enum | MouseModifier { NoModifier = 0x0, AltModifier = 0x1, CtrlModifier = 0x2, ShiftModifier = 0x4 } |
Protected Attributes | |
| unsigned int | myX |
| unsigned int | myY |
| double | myNormalizedX |
| double | myNormalizedY |
| int | myWheel |
| MouseButton | myButtonState |
| MouseModifier | myModifiers |
| makVrv::DtMouseState::DtMouseState | ( | ) |
Default constructor.
| makVrv::DtMouseState::DtMouseState | ( | int | x, |
| int | y, | ||
| double | nx, | ||
| double | ny, | ||
| int | wheel, | ||
| MouseButton | buttonState, | ||
| MouseModifier | modState | ||
| ) |
Construct a mouse event.
|
virtual |
Destructor.
| makVrv::DtMouseState::DtMouseState | ( | const DtMouseState & | ) |
Copy constructor.
| DtMouseState& makVrv::DtMouseState::operator= | ( | const DtMouseState & | ) |
Assignment operator.
|
virtual |
Return the X-axis coorindate of the mouse.
|
virtual |
Set the X-axis value.
|
virtual |
Return the Y-axis coorindate of the mouse.
|
virtual |
Set the Y-axis value.
|
virtual |
Get the X value normalized ( -1 .. 1)
|
virtual |
Set the normalized X value.
|
virtual |
Get the Y value normalized ( -1 .. 1)
|
virtual |
Set the normalized Y value.
|
virtual |
Returns the wheel value of the mouse.
|
virtual |
Set the wheel value.
|
virtual |
Return state of the left button.
|
virtual |
Set the state of the left mouse button.
|
virtual |
Return state of the middle button.
|
virtual |
Set the state of the middle mouse button.
|
virtual |
Return state of the right button.
|
virtual |
Set the state of the right mouse button.
|
virtual |
get the entire state vector instead of using the boolean accessors
|
virtual |
set the entire state vector instead of using the boolean mutators
|
virtual |
Return if the alt modifier key was pressed with the mouse event.
|
virtual |
Set the alt (modifier) variable.
|
virtual |
Return if the ctrl modifier key was pressed with the mouse event.
|
virtual |
Set the ctrl (modifier) variable.
|
virtual |
Return if the shift modifier key was pressed with the mouse event.
|
virtual |
Set the shift (modifier) variable.
|
virtual |
Get the entire modifier vector instead of using the boolean accessors.
|
virtual |
Set the entire modifier vector instead of using the boolean mutators.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |