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:
parent
60e78c9f1d
commit
a770419abc
2 changed files with 9 additions and 0 deletions
|
@ -77,6 +77,10 @@ void EventsManager::hideCursor() {
|
||||||
CursorMan.showMouse(false);
|
CursorMan.showMouse(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool EventsManager::isCursorVisible() {
|
||||||
|
return CursorMan.isVisible();
|
||||||
|
}
|
||||||
|
|
||||||
void EventsManager::waitCursor() {
|
void EventsManager::waitCursor() {
|
||||||
CursorType cursorId = (CursorType)MIN(_cursorSprites->getCount(), (int)CURSOR_WAIT);
|
CursorType cursorId = (CursorType)MIN(_cursorSprites->getCount(), (int)CURSOR_WAIT);
|
||||||
_newCursorId = cursorId;
|
_newCursorId = cursorId;
|
||||||
|
|
|
@ -103,6 +103,11 @@ public:
|
||||||
*/
|
*/
|
||||||
void hideCursor();
|
void hideCursor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns if the mouse cursor is visible
|
||||||
|
*/
|
||||||
|
bool isCursorVisible();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows the wait cursor
|
* Shows the wait cursor
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue