mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 20:50:56 +00:00
FULLPIPE: Implement CInputController::setCursor()
This commit is contained in:
parent
ee18a54554
commit
3d3ebc6ae7
@ -86,8 +86,17 @@ void CInputController::drawCursor(int x, int y) {
|
||||
warning("STUB: CInputController::drawCursor(%d, %d)", x, y);
|
||||
}
|
||||
|
||||
void CInputController::setCursor(int id) {
|
||||
warning("STUB: CInputController::setCursor(%d)", id);
|
||||
void CInputController::setCursor(int cursorId) {
|
||||
if (_cursorIndex == -1 || _cursorsArray[_cursorIndex]->pictureId != cursorId) {
|
||||
_cursorIndex = -1;
|
||||
|
||||
for (uint i = 0; i < _cursorsArray.size(); i++) {
|
||||
if (_cursorsArray[i]->pictureId == cursorId) {
|
||||
_cursorIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CursorInfo::CursorInfo() {
|
||||
|
@ -56,7 +56,7 @@ class CInputController {
|
||||
int _cursorIndex;
|
||||
CursorsArray _cursorsArray;
|
||||
Common::Rect _cursorBounds;
|
||||
int _cursorItemPicture;
|
||||
Picture *_cursorItemPicture;
|
||||
|
||||
public:
|
||||
CInputController();
|
||||
|
Loading…
x
Reference in New Issue
Block a user