avm2: Stub Mouse.supportsCursor and Mouse.supportsNativeCursor

Since these are static properties, Ruffle previously (correctly)
returned `undefined` for SWFs that tried to access them, intead
of throwing an error.
This commit is contained in:
Aaron Hill 2023-02-28 20:42:04 -06:00
parent 78c9de7b8f
commit 1099218fdd
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,17 @@
package flash.ui { package flash.ui {
import __ruffle__.stub_getter;
public final class Mouse { public final class Mouse {
public static native function hide(): void; public static native function hide(): void;
public static native function show(): void; public static native function show(): void;
public static function get supportsCursor():Boolean {
stub_getter("flash.ui.Mouse", "supportsCursor");
return true;
}
public static function get supportsNativeCursor():Boolean {
stub_getter("flash.ui.Mouse", "supportsNativeCursor");
return true;
}
} }
} }