ZVISION: Create methods for setting left, right, up, down cursors

This commit is contained in:
richiesams 2013-08-14 10:18:41 -05:00
parent 4c1e8b3f45
commit 003b30c77b
2 changed files with 22 additions and 0 deletions

View File

@ -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)

View File

@ -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: