Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Stub Stage.mouseLock #16963

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core/src/avm2/globals/flash/display/Stage.as
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package flash.display {
[Ruffle(NativeInstanceInit)]
public class Stage extends DisplayObjectContainer {
private var _colorCorrection:String = ColorCorrection.DEFAULT;
private var _mouseLock:Boolean = false;

public function Stage() {
throw new Error("You cannot construct new instances of the Stage.")
Expand Down Expand Up @@ -267,5 +268,15 @@ package flash.display {
stub_getter("flash.display.Stage", "colorCorrectionSupport");
return ColorCorrectionSupport.UNSUPPORTED;
}

public function get mouseLock():Boolean {
stub_getter("flash.display.Stage", "mouseLock");
return this._mouseLock;
}

public function set mouseLock(value:Boolean):void {
stub_setter("flash.display.Stage", "mouseLock");
this._mouseLock = value;
}
}
}