From 003b30c77b34c9447bab3927d206101d5f341b4f Mon Sep 17 00:00:00 2001 From: richiesams Date: Wed, 14 Aug 2013 10:18:41 -0500 Subject: ZVISION: Create methods for setting left, right, up, down cursors --- engines/zvision/cursor_manager.cpp | 16 ++++++++++++++++ engines/zvision/cursor_manager.h | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/engines/zvision/cursor_manager.cpp b/engines/zvision/cursor_manager.cpp index 0e7c2bc6cd..50fa5031b2 100644 --- a/engines/zvision/cursor_manager.cpp +++ b/engines/zvision/cursor_manager.cpp @@ -122,6 +122,22 @@ void CursorManager::cursorDown(bool pushed) { changeCursor(_currentCursor, pushed); } +void CursorManager::setLeftCursor() { + changeCursor("leftarrow"); +} + +void CursorManager::setRightCursor() { + changeCursor("rightarrow"); +} + +void CursorManager::setUpCursor() { + changeCursor("zuparrow"); +} + +void CursorManager::setDownCursor() { + changeCursor("downarrow"); +} + void CursorManager::revertToIdle() { _currentCursor = "idle"; if (!_cursorIsPushed) diff --git a/engines/zvision/cursor_manager.h b/engines/zvision/cursor_manager.h index 496c652c8c..fd61ac25be 100644 --- a/engines/zvision/cursor_manager.h +++ b/engines/zvision/cursor_manager.h @@ -69,6 +69,12 @@ public: void changeCursor(const Common::String &cursorName); void changeCursor(const Common::String &cursorName, bool pushed); void cursorDown(bool pushed); + + void setLeftCursor(); + void setRightCursor(); + void setUpCursor(); + void setDownCursor(); + void revertToIdle(); private: -- cgit v1.2.3