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 ()
 
void warpMouse (const Common::Point &newPos)
 
void clearEvents ()
 
void setHotKey (Common::KeyCode key)
 
int16 getSwitchCode ()
 
void ignoreNextKeyUp ()
 

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

◆ warpMouse()

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

Sets the mouse position

◆ clearEvents()

void Chewy::EventsManager::clearEvents ( )

Clear any pending events

◆ ignoreNextKeyUp()

void Chewy::EventsManager::ignoreNextKeyUp ( )
inline

Activate a filter that drops key-up events until the next key-down.


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