API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classVectorAction
A named two-dimensional input, fed by a stick, by four direction buttons, or by several such bindings at once. Each alternative binding is evaluated as a whole vector and the longest one wins, so x never comes from the keyboard while y comes from the pad. The result is clamped to unit length rather than normalized: a digital diagonal is no faster than a cardinal direction, while analog input below full deflection keeps its magnitude.
import { VectorAction } from '@codexo/exojs'A named two-dimensional input, fed by a stick, by four direction buttons, or by several such bindings at once.
Each alternative binding is evaluated as a whole vector and the longest one wins, so x never comes from the keyboard while y comes from the pad. The result is clamped to unit length rather than normalized: a digital diagonal is no faster than a cardinal direction, while analog input below full deflection keeps its magnitude.
new(binding: 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.>, options: ActionOptionsOptions shared by every action.): VectorActionkind: "vector"active: booleanbinding: Bindingchannels: readonly number[]defaultBinding: Binding