◆ EventsManager()
| MADS::EventsManager::EventsManager |
( |
MADSEngine * |
vm | ) |
|
◆ ~EventsManager()
| MADS::EventsManager::~EventsManager |
( |
| ) |
|
◆ loadCursors()
| void MADS::EventsManager::loadCursors |
( |
const Common::Path & |
spritesName | ) |
|
Loads the sprite set containing the cursors
◆ setCursor()
| void MADS::EventsManager::setCursor |
( |
CursorType |
cursorId | ) |
|
◆ setCursor2()
| void MADS::EventsManager::setCursor2 |
( |
CursorType |
cursorId | ) |
|
◆ showCursor()
| void MADS::EventsManager::showCursor |
( |
| ) |
|
◆ hideCursor()
| void MADS::EventsManager::hideCursor |
( |
| ) |
|
◆ isCursorVisible()
| bool MADS::EventsManager::isCursorVisible |
( |
| ) |
|
Returns if the mouse cursor is visible
◆ waitCursor()
| void MADS::EventsManager::waitCursor |
( |
| ) |
|
◆ freeCursors()
| void MADS::EventsManager::freeCursors |
( |
| ) |
|
Free currently loaded cursors
◆ pollEvents()
| void MADS::EventsManager::pollEvents |
( |
| ) |
|
◆ setEventTarget()
| void MADS::EventsManager::setEventTarget |
( |
EventTarget * |
target | ) |
|
|
inline |
Sets an event handler other than the events manager
◆ mousePos()
Return the current mouse position
◆ currentPos()
Return the current mouse position
◆ delay()
| void MADS::EventsManager::delay |
( |
int |
amount | ) |
|
Delay for a given number of frames
◆ waitForNextFrame()
| void MADS::EventsManager::waitForNextFrame |
( |
| ) |
|
◆ checkForNextFrameCounter()
| bool MADS::EventsManager::checkForNextFrameCounter |
( |
| ) |
|
Checks for whether the next game frame number has been reached.
◆ getFrameCounter()
| uint32 MADS::EventsManager::getFrameCounter |
( |
| ) |
const |
|
inline |
Gets the current frame counter
◆ clearEvents()
| void MADS::EventsManager::clearEvents |
( |
| ) |
|
Clears all currently pending keypresses
◆ isKeyPressed()
| bool MADS::EventsManager::isKeyPressed |
( |
| ) |
const |
|
inline |
Returns true if there's any pending keys to be processed
◆ isActionTriggered()
| bool MADS::EventsManager::isActionTriggered |
( |
| ) |
const |
|
inline |
Returns true if there's any pending actions to be processed
◆ getKey()
Gets the next pending keypress
◆ getAction()
Gets the next pending action
The documentation for this class was generated from the following file: