ScummVM API documentation
Myst3::Cursor Class Reference
Inheritance diagram for Myst3::Cursor:
Myst3::Drawable

Public Member Functions

 Cursor (Myst3Engine *vm)
 
void changeCursor (uint32 index)
 
bool isPositionLocked ()
 
void lockPosition (bool lock)
 
Common::Point getPosition (bool scaled=true)
 
void updatePosition (const Common::Point &mouse)
 
void getDirection (float &pitch, float &heading)
 
void draw () override
 
void setVisible (bool show)
 
bool isVisible ()
 
- Public Member Functions inherited from Myst3::Drawable
virtual void drawOverlay ()
 
bool isConstrainedToWindow () const
 
bool is3D () const
 
bool isScaled () const
 

Additional Inherited Members

- Protected Attributes inherited from Myst3::Drawable
bool _isConstrainedToWindow
 
bool _is3D
 
bool _scaled
 

Member Function Documentation

◆ getPosition()

Common::Point Myst3::Cursor::getPosition ( bool  scaled = true)

Get the mouse cursor position

By default it is in 640x480 equivalent coordinates

Parameters
scaledWhen false the position is in actual game screen coordinates.
Returns

The documentation for this class was generated from the following file: