Global mouse-cursor override, independent of the per-widget hover cursor (UIComponent.hoverCursor). Use it to force a shape regardless of what the pointer is over — e.g. a wait cursor across a blocking load.

Custom bitmap cursors are not offered: OpenFL 9.5.2 compiles out Mouse.registerCursor, so only the built-in UICursor shapes are available. Desktop only in practice (supportsCursor is false on mobile).

Static variables

staticread onlysupportsCursor:Bool

Whether the platform shows a persistent cursor (false on most mobile devices).

Static methods

staticbusy(on:Bool):Void

Convenience busy toggle: the wait cursor while on, automatic otherwise.

Parameters:

on

true shows the wait cursor

staticinlinehide():Void

Hides the pointer entirely (pair with show).

staticinlinereset():Void

Restores automatic cursor selection (the object under the pointer decides).

staticinlineset(cursor:MouseCursor):Void

Forces the global cursor shape until reset.

Parameters:

cursor

the shape (a UICursor or any OpenFL MouseCursor)

staticinlineshow():Void

Shows the pointer after hide.