Utility functions for managing focus with a d-pad.
Available since
1.0.0
.Static methods
staticisBetterFocusForRelativePosition(object1:DisplayObject, object2:DisplayObject, focusedRect:Rectangle, relativePosition:RelativePosition):Bool
Determines if object1
is a better choice than object2
when changing
focus to the specified position relative to the current focus.
Note: it's acceptable pass in null
for object2
to check if an item
is at the relative position to the focused rectangle.
Available since
1.0.0
.See also:
feathers.layout.RelativePosition