ScummVM API documentation
Chewy::EventsManager Class Reference

Public Member Functions

 EventsManager (Graphics::Screen *screen, uint refreshRate=1000/50)
 
void delay (size_t time)
 
void update ()
 
bool keyEventPending ()
 
bool eventPending ()
 
Common::Event getPendingKeyEvent ()
 
Common::Event getPendingEvent ()
 
void warpMouse (const Common::Point &newPos)
 
void clearEvents ()
 
void setHotKey (Common::KeyCode key)
 
int16 getSwitchCode ()
 

Public Attributes

KbdInfo _kbInfo
 
Common::Point _mousePos
 
bool _flag1 = false
 
bool _flag2 = false
 
Graphics::Screen_screen
 

Member Function Documentation

◆ update()

void Chewy::EventsManager::update ( )

Handles doing a brief delay, checking for timer updates, and polling events

◆ keyEventPending()

bool Chewy::EventsManager::keyEventPending ( )
inline

Returns true if any unprocessed keyboard events are pending

◆ eventPending()

bool Chewy::EventsManager::eventPending ( )
inline

Returns true if any unprocessed event other than key events are pending

◆ getPendingKeyEvent()

Common::Event Chewy::EventsManager::getPendingKeyEvent ( )
inline

Returns the next pending unprocessed keyboard event

◆ getPendingEvent()

Common::Event Chewy::EventsManager::getPendingEvent ( )
inline

Returns the next event, if any

◆ warpMouse()

void Chewy::EventsManager::warpMouse ( const Common::Point newPos)

Sets the mouse position

◆ clearEvents()

void Chewy::EventsManager::clearEvents ( )

Clear any pending events


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