mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 05:34:00 +00:00
ZVISION: Create methods for setting left, right, up, down cursors
This commit is contained in:
parent
4c1e8b3f45
commit
003b30c77b
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user