API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeSerializedActionBinding

@codexo/exojs / input / stable

One action's binding in its persistable form - the shape a BindingProfile stores and a save file round-trips. Chord and sequence bindings are stored NORMALIZED (alternatives of channel groups, and steps of those) rather than as the `'Control+S|Meta+S'` shorthand a developer may have written the default with: the shorthand resolves only `Keyboard` names, so a player who rebinds a chord onto a gamepad button could not be expressed in it. `kind` is validated against the live action when a profile is applied. A stored binding whose kind no longer matches is rejected rather than partially applied - an action that changed from a button into an axis between builds is a developer-side break, not something to guess at.

0
props
0
methods
0
events
Import
import { SerializedActionBinding } from '@codexo/exojs'

One action's binding in its persistable form - the shape a BindingProfile stores and a save file round-trips.

Chord and sequence bindings are stored NORMALIZED (alternatives of channel groups, and steps of those) rather than as the `'Control+S|Meta+S'` shorthand a developer may have written the default with: the shorthand resolves only `Keyboard` names, so a player who rebinds a chord onto a gamepad button could not be expressed in it.

`kind` is validated against the live action when a profile is applied. A stored binding whose kind no longer matches is rejected rather than partially applied - an action that changed from a button into an axis between builds is a developer-side break, not something to guess at.

Definition1
Source