MADS: Add an isCursorVisible() method

This will probably be used by the menu class, but it's nice to have nonetheless
This commit is contained in:
Filippos Karapetis 2014-04-29 12:56:22 +03:00
parent 60e78c9f1d
commit a770419abc
2 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,10 @@ void EventsManager::hideCursor() {
CursorMan.showMouse(false);
}
bool EventsManager::isCursorVisible() {
return CursorMan.isVisible();
}
void EventsManager::waitCursor() {
CursorType cursorId = (CursorType)MIN(_cursorSprites->getCount(), (int)CURSOR_WAIT);
_newCursorId = cursorId;

View File

@ -103,6 +103,11 @@ public:
*/
void hideCursor();
/**
* Returns if the mouse cursor is visible
*/
bool isCursorVisible();
/**
* Shows the wait cursor
*/