Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DMacMouse Class Reference

Inherits U4DEngine::U4DInputElement.

Public Member Functions

 U4DMacMouse (INPUTELEMENTTYPE uInputElementType, U4DControllerInterface *uControllerInterface)
 
void update (double dt)
 
void action ()
 
void changeState (INPUTELEMENTACTION &uInputAction, U4DVector2n &uPosition)
 
void setDataPosition (U4DVector2n uData)
 
U4DVector2n getDataPosition ()
 
U4DVector2n getPreviousDataPosition ()
 
void setDataMagnitude (float uValue)
 
float getDataMagnitude ()
 
U4DVector2n getDataDeltaPosition ()
 
bool getIsDragged ()
 
bool getDirectionReversal ()
 
bool getIsMoving ()
 
bool getIsPressed ()
 
bool getIsReleased ()
 
U4DMacMouseStateManagergetStateManager ()
 
U4DVector2n mapMousePosition (U4DVector2n &uPosition)
 
- Public Member Functions inherited from U4DEngine::U4DInputElement
 U4DInputElement (INPUTELEMENTTYPE uInputElementType, U4DControllerInterface *uControllerInterface)
 
INPUTELEMENTTYPE getInputElementType ()
 
void setControllerInterface (U4DControllerInterface *uControllerInterface)
 

Public Attributes

U4DVector2n previousDataPosition
 
U4DVector2n dataPosition
 
U4DVector2n dataDeltaPosition
 
U4DVector2n previousDataDeltaPosition
 
U4DVector2n motionAccumulator
 
float dataMagnitude
 
bool isActive
 
bool directionReversal
 
- Public Attributes inherited from U4DEngine::U4DInputElement
U4DControllerInterfacecontrollerInterface
 

Additional Inherited Members

- Protected Attributes inherited from U4DEngine::U4DInputElement
INPUTELEMENTTYPE inputElementType