API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeFocusNavigationPolicy

@codexo/exojs / input / stable

Which nodes the arrow keys and the D-pad may move focus to - see InteractionSystem.focusNavigation. - `'ui'` restricts navigation to the scene's UI layer, so the arrow keys stay available to the game itself. - `'always'` navigates both layers, exactly the set Tab traverses. - `'never'` turns directional navigation off, including InteractionSystem.focusInDirection. An active interaction scope replaces the candidate set with its own subtree whichever layer it lives in - a modal is navigable regardless of the policy, which only ever decides what an UNSCOPED navigation may reach.

0
props
0
methods
0
events
Import
import { FocusNavigationPolicy } from '@codexo/exojs'

Which nodes the arrow keys and the D-pad may move focus to - see InteractionSystem.focusNavigation.

- `'ui'` restricts navigation to the scene's UI layer, so the arrow keys stay available to the game itself. - `'always'` navigates both layers, exactly the set Tab traverses. - `'never'` turns directional navigation off, including InteractionSystem.focusInDirection.

An active interaction scope replaces the candidate set with its own subtree whichever layer it lives in - a modal is navigable regardless of the policy, which only ever decides what an UNSCOPED navigation may reach.

Definition1
"always" | "never" | "ui"
Source