◆ showCursor()
void MM::Xeen::EventsManager::showCursor |
( |
| ) |
|
◆ hideCursor()
void MM::Xeen::EventsManager::hideCursor |
( |
| ) |
|
◆ isCursorVisible()
bool MM::Xeen::EventsManager::isCursorVisible |
( |
| ) |
|
Returns if the mouse cursor is visible
◆ pollEvents()
void MM::Xeen::EventsManager::pollEvents |
( |
| ) |
|
Polls the ScummVM backend for any pending events
◆ pollEventsAndWait()
void MM::Xeen::EventsManager::pollEventsAndWait |
( |
| ) |
|
Polls for events, and wait a slight delay. This ensures the game doesn't use up 100% of the CPU
◆ clearEvents()
void MM::Xeen::EventsManager::clearEvents |
( |
| ) |
|
Clears all pending events
◆ debounceMouse()
void MM::Xeen::EventsManager::debounceMouse |
( |
| ) |
|
Waits for a mouse press to be released
◆ addEvent() [1/2]
Adds a keyboard event to the queue
◆ addEvent() [2/2]
void MM::Xeen::EventsManager::addEvent |
( |
bool |
leftButton, |
|
|
bool |
rightButton |
|
) |
| |
Adds a mouse button event to the queue
◆ getEvent()
Returns the next pending key/mouse press, if any
◆ isEventPending()
bool MM::Xeen::EventsManager::isEventPending |
( |
| ) |
const |
|
inline |
Returns true if a key or mouse event is pending
◆ isKeyMousePressed()
bool MM::Xeen::EventsManager::isKeyMousePressed |
( |
| ) |
|
Returns true if a key or mouse press is pending
◆ wait()
bool MM::Xeen::EventsManager::wait |
( |
uint |
numFrames, |
|
|
bool |
interruptable = true |
|
) |
| |
Waits for a given number of frames
- Parameters
-
numFrames | Number of frames to wait |
interruptable | If set, aborts if the mouse or a key is pressed |
- Returns
- True if the wait was aborted
◆ ipause()
void MM::Xeen::EventsManager::ipause |
( |
uint |
amount | ) |
|
◆ ipause5()
void MM::Xeen::EventsManager::ipause5 |
( |
uint |
amount | ) |
|
Pauses a set amount past the previous call to timeMark5
◆ waitForPressAnimated()
void MM::Xeen::EventsManager::waitForPressAnimated |
( |
| ) |
|
Waits for a key or mouse press, animating the 3d view in the background
◆ waitForPress()
void MM::Xeen::EventsManager::waitForPress |
( |
| ) |
|
Waits for a key or mouse press
The documentation for this class was generated from the following file: