API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeActionBinding
Any binding descriptor an action can be rebound with - the second argument of ActionMap.rebind. Deliberately the union of every kind's descriptor rather than a conditional type resolved from the action being rebound. A conditional over the map's own type parameter, however written, stops TypeScript inferring that parameter at every OTHER `ActionMap<T>` site - `scene.inputs.attach(map)` included - so the precision would be paid for by breaking inference for every caller. The ACTION NAME is still checked against the map's declared actions, and a mismatched binding shape is rejected at runtime by the action itself.
import { ActionBinding } from '@codexo/exojs'Any binding descriptor an action can be rebound with - the second argument of ActionMap.rebind.
Deliberately the union of every kind's descriptor rather than a conditional type resolved from the action being rebound. A conditional over the map's own type parameter, however written, stops TypeScript inferring that parameter at every OTHER `ActionMap<T>` site - `scene.inputs.attach(map)` included - so the precision would be paid for by breaking inference for every caller. The ACTION NAME is still checked against the map's declared actions, and a mismatched binding shape is rejected at runtime by the action itself.
ButtonBindingSources a ButtonAction accepts: one channel, or several interchangeable ones. | ChordBindingA binding accepted by ChordAction: a `'+'`/`'|'` string of case-insensitive Keyboard token names (`'Control+S'`, `'Control+S|Meta+S'`), an InputChord array of… | OneOrManyA single value or a list of alternatives. Actions accept one binding directly and several as an array - there are no variadic constructors, so the options obje…<AxisBindingA directly signed source (a stick axis) or a composite built from two button groups.> | OneOrManyA single value or a list of alternatives. Actions accept one binding directly and several as an array - there are no variadic constructors, so the options obje…<VectorBindingA two-dimensional binding with at least one source.> | SequenceBindingA binding accepted by SequenceAction: a `'>'`-separated, `'+'`-joined, `'|'`-alternated string pattern (`'Down>Down+Right>Right'`, `'A+B|C>D'`), or an InputSeq…