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 |
| void Chewy::EventsManager::update | ( | ) |
Handles doing a brief delay, checking for timer updates, and polling events
| void Chewy::EventsManager::warpMouse | ( | const Common::Point & | newPos | ) |
Sets the mouse position
| void Chewy::EventsManager::clearEvents | ( | ) |
Clear any pending events
|
inline |
Activate a filter that drops key-up events until the next key-down.