aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-14 10:18:41 -0500
committerrichiesams2013-08-14 10:18:41 -0500
commit003b30c77b34c9447bab3927d206101d5f341b4f (patch)
treeb05ad1a822c451ef0239a31f9143aa45f52a5e7f
parent4c1e8b3f453fec9e18743a636bcf2d1c83135c2e (diff)
downloadscummvm-rg350-003b30c77b34c9447bab3927d206101d5f341b4f.tar.gz
scummvm-rg350-003b30c77b34c9447bab3927d206101d5f341b4f.tar.bz2
scummvm-rg350-003b30c77b34c9447bab3927d206101d5f341b4f.zip
ZVISION: Create methods for setting left, right, up, down cursors
-rw-r--r--engines/zvision/cursor_manager.cpp16
-rw-r--r--engines/zvision/cursor_manager.h6
2 files changed, 22 insertions, 0 deletions
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: