From a770419abcf109ca45b047f2bb361887632db00c Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 29 Apr 2014 12:56:22 +0300 Subject: MADS: Add an isCursorVisible() method This will probably be used by the menu class, but it's nice to have nonetheless --- engines/mads/events.cpp | 4 ++++ engines/mads/events.h | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'engines/mads') diff --git a/engines/mads/events.cpp b/engines/mads/events.cpp index ac03dd5665..6ec16402ef 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 529581cae8..6428108709 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 */ -- cgit v1.2.3