API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classInputBinding
One subscription to one or more input channels. Tracks active state, fires the onStart / onActive / onStop / onTrigger Signals each frame, and registers itself with whichever owner created it (typically an InputSystem, Gamepad, or scene-bound proxy). Construct via the owner's `onStart` / `onActive` / `onStop` / `onTrigger` factory methods rather than `new InputBinding(...)` directly - the returned binding is caller-owned from that point on. Lifecycle: a binding lives until unbind is called, the owner disposes it, or - for scene-bound bindings - the scene unloads.
import { InputBinding } from '@codexo/exojs'One subscription to one or more input channels. Tracks active state, fires the onStart / onActive / onStop / onTrigger Signals each frame, and registers itself with whichever owner created it (typically an InputSystem, Gamepad, or scene-bound proxy).
Construct via the owner's `onStart` / `onActive` / `onStop` / `onTrigger` factory methods rather than `new InputBinding(...)` directly - the returned binding is caller-owned from that point on.
Lifecycle: a binding lives until unbind is called, the owner disposes it, or - for scene-bound bindings - the scene unloads.
new(channels: readonly number[], options: InputBindingOptionsConstruction options shared by every binding factory method., detacher: InternalChannelDetacher | null, watermark: number, constructionBaseline: Float32Array<ArrayBufferLike> | null): InputBinding[dispose](): voidunbind(): voidchannels: readonly number[]defaultTriggerThreshold: numberactive: booleanvalue: number