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:
parent
78c9de7b8f
commit
1099218fdd
|
@ -1,6 +1,17 @@
|
|||
package flash.ui {
|
||||
|
||||
import __ruffle__.stub_getter;
|
||||
|
||||
public final class Mouse {
|
||||
public static native function hide(): 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue