ScummVM API documentation
Access::EventsManager Class Reference

Public Member Functions

 EventsManager (AccessEngine *vm)
 
 ~EventsManager ()
 
uint32 getFrameCounter () const
 
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 zeroKeysActions ()
 
bool getAction (Common::CustomEventType &action)
 
Common::CustomEventType peekAction () const
 
Common::KeyCode peekKeyCode () const
 
bool isKeyActionPending () const
 
void delay (int time=5)
 
void delayUntilNextFrame ()
 
void debounceLeft ()
 
void debounceRight ()
 
void clearEvents ()
 
void waitKeyActionMouse ()
 
const Common::PointgetMousePos () const
 
Common::Point calcRawMouse ()
 
int checkMouseBox1 (const Common::Array< Common::Rect > &rects)
 
bool isKeyActionMousePressed ()
 
void centerMousePos ()
 
void restrictMouse ()
 
uint32 getDoubleClickTime () const
 
uint32 getPriorFrameTime () const
 

Static Public Member Functions

static int16 clipMouseCenter (int16 mousePos, int16 length, int16 maxLength, int16 &warpMousePos)
 

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
 
bool _interfaceOff
 

Constructor & Destructor Documentation

◆ EventsManager()

Access::EventsManager::EventsManager ( AccessEngine vm)

Constructor

◆ ~EventsManager()

Access::EventsManager::~EventsManager ( )

Destructor

Member Function Documentation

◆ getFrameCounter()

uint32 Access::EventsManager::getFrameCounter ( ) const
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: