API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classActionBase
Shared contract of every action kind. An action owns a BINDING DESCRIPTOR (what the developer declared, or what a player later rebound it to) and, separately, the absolute channel indices that descriptor currently resolves to. The two are kept apart because the descriptor is stable and serializable while the channels depend on runtime context: which gamepad slot the owning ActionMap was given. An action never resolves a gamepad slot on its own. The owning map drives _rebind, which is also how a rebind or a profile application reaches an action - so the map can apply a whole set of changes and re-arm every action's baseline in one transaction rather than leaving intermediate states visible.
import { ActionBase } from '@codexo/exojs'Shared contract of every action kind.
An action owns a BINDING DESCRIPTOR (what the developer declared, or what a player later rebound it to) and, separately, the absolute channel indices that descriptor currently resolves to. The two are kept apart because the descriptor is stable and serializable while the channels depend on runtime context: which gamepad slot the owning ActionMap was given.
An action never resolves a gamepad slot on its own. The owning map drives _rebind, which is also how a rebind or a profile application reaches an action - so the map can apply a whole set of changes and re-arm every action's baseline in one transaction rather than leaving intermediate states visible.
new(binding: Binding): ActionBase<Binding>binding: Bindingchannels: readonly number[]defaultBinding: Binding