mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
TSAGE: Implement R2R 2 parameter versions of Player disableControl and enableControl
This commit is contained in:
parent
0319cd06ef
commit
b5e5328184
@ -3073,9 +3073,22 @@ void Player::enableControl() {
|
||||
}
|
||||
}
|
||||
|
||||
void Player::enableControl(CursorType cursor) {
|
||||
void Player::disableControl(CursorType cursorId, CursorType objectId) {
|
||||
if (cursorId != -1)
|
||||
R2_GLOBALS._events.setCursor(cursorId);
|
||||
else if (objectId != CURSOR_NONE)
|
||||
R2_GLOBALS._events.setCursor(objectId);
|
||||
|
||||
disableControl();
|
||||
}
|
||||
|
||||
void Player::enableControl(CursorType cursorId, CursorType objectId) {
|
||||
enableControl();
|
||||
R2_GLOBALS._events.setCursor(cursor);
|
||||
|
||||
if (cursorId != -1)
|
||||
R2_GLOBALS._events.setCursor(cursorId);
|
||||
else if (objectId != CURSOR_NONE)
|
||||
R2_GLOBALS._events.setCursor(objectId);
|
||||
}
|
||||
|
||||
void Player::process(Event &event) {
|
||||
|
@ -646,7 +646,8 @@ public:
|
||||
|
||||
void disableControl();
|
||||
void enableControl();
|
||||
void enableControl(CursorType cursor);
|
||||
void disableControl(CursorType cursorId, CursorType objectId);
|
||||
void enableControl(CursorType cursorId, CursorType objectId = CURSOR_NONE);
|
||||
};
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user