API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classInputScope
One input context: the action maps that are in charge while it is the topmost scope on a SceneInputs stack. A scope claims exactly the controls its maps currently bind. While it is pushed, no scope below it - and no map attached outside the stack with `scene.inputs.attach` - observes those controls at all, through neither live values nor this frame's event history. Controls nothing in the scope binds fall through untouched, so a pause menu that binds only Escape and the D-pad leaves the gameplay below it fully playable if that is what the game wants. Maps within one scope are peers: they never mask each other, and two of them binding the same control both see it. A scope groups MAPS, not actions. There is deliberately no `addAction` - an action belongs to exactly one map for its lifetime, and a lone hotkey is a one-action map rather than a second ownership path.
import { InputScope } from '@codexo/exojs'One input context: the action maps that are in charge while it is the topmost scope on a SceneInputs stack.
A scope claims exactly the controls its maps currently bind. While it is pushed, no scope below it - and no map attached outside the stack with `scene.inputs.attach` - observes those controls at all, through neither live values nor this frame's event history. Controls nothing in the scope binds fall through untouched, so a pause menu that binds only Escape and the D-pad leaves the gameplay below it fully playable if that is what the game wants.
Maps within one scope are peers: they never mask each other, and two of them binding the same control both see it.
A scope groups MAPS, not actions. There is deliberately no `addAction` - an action belongs to exactly one map for its lifetime, and a lone hotkey is a one-action map rather than a second ownership path.
new(maps?: AnyActionMapAny action map, whatever actions it declares - the type a collection of maps (an InputScope, a scope stack) is written against. ActionMap itself cannot serve t… | readonly AnyActionMapAny action map, whatever actions it declares - the type a collection of maps (an InputScope, a scope stack) is written against. ActionMap itself cannot serve t…[]): InputScope