diff --git a/engines/mads/events.cpp b/engines/mads/events.cpp index ac03dd56656..6ec16402ef0 100644 --- a/engines/mads/events.cpp +++ b/engines/mads/events.cpp @@ -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; diff --git a/engines/mads/events.h b/engines/mads/events.h index 529581cae84..6428108709d 100644 --- a/engines/mads/events.h +++ b/engines/mads/events.h @@ -103,6 +103,11 @@ public: */ void hideCursor(); + /** + * Returns if the mouse cursor is visible + */ + bool isCursorVisible(); + /** * Shows the wait cursor */