ScummVM API documentation
Access::EventsManager Class Reference

Public Member Functions

 EventsManager (AccessEngine *vm)
 
 ~EventsManager ()
 
uint32 getFrameCounter ()
 
void forceSetCursor (CursorType cursorId)
 
void setNormalCursor (CursorType cursorId)
 
void setCursor (CursorType cursorId)
 
void setCursorData (Graphics::ManagedSurface *src, const Common::Rect &r)
 
CursorType getCursor () const
 
void showCursor ()
 
void hideCursor ()
 
bool isCursorVisible ()
 
void pollEvents (bool skipTimers=false)
 
void pollEventsAndWait ()
 
void zeroKeys ()
 
bool getKey (Common::KeyState &key)
 
bool isKeyPending () const
 
void delay (int time=5)
 
void debounceLeft ()
 
void clearEvents ()
 
void waitKeyMouse ()
 
Common::PointgetMousePos ()
 
Common::Point calcRawMouse ()
 
int checkMouseBox1 (Common::Array< Common::Rect > &rects)
 
bool isKeyMousePressed ()
 
void centerMousePos ()
 
void restrictMouse ()
 

Public Attributes

CursorType _cursorId
 
CursorType _normalMouse
 
bool _leftButton
 
bool _rightButton
 
bool _middleButton
 
bool _wheelUp
 
bool _wheelDown
 
Common::Point _mousePos
 
int _mouseCol
 
int _mouseRow
 
bool _cursorExitFlag
 
int _vbCount
 

Constructor & Destructor Documentation

◆ EventsManager()

Access::EventsManager::EventsManager ( AccessEngine vm)

Constructor

◆ ~EventsManager()

Access::EventsManager::~EventsManager ( )

Destructor

Member Function Documentation

◆ getFrameCounter()

uint32 Access::EventsManager::getFrameCounter ( )
inline

Return frame counter

◆ forceSetCursor()

void Access::EventsManager::forceSetCursor ( CursorType  cursorId)

Sets the cursor and reset the normal cursor

◆ setNormalCursor()

void Access::EventsManager::setNormalCursor ( CursorType  cursorId)

Sets the normal cursor

◆ setCursor()

void Access::EventsManager::setCursor ( CursorType  cursorId)

Sets the cursor

◆ setCursorData()

void Access::EventsManager::setCursorData ( Graphics::ManagedSurface src,
const Common::Rect r 
)

Set the image for the inventory cursor

◆ getCursor()

CursorType Access::EventsManager::getCursor ( ) const
inline

Return the current cursor Id

◆ showCursor()

void Access::EventsManager::showCursor ( )

Show the mouse cursor

◆ hideCursor()

void Access::EventsManager::hideCursor ( )

Hide the mouse cursor

◆ isCursorVisible()

bool Access::EventsManager::isCursorVisible ( )

Returns if the mouse cursor is visible


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