Docs / Input binder

Input binder glossary: actions

The three actions, their base and their shapes, one page per type.

Each type has a page listing its members in alphabetical order, each with its type or signature and what it does. The sidebar lists the members of each class under its name. An enum’s page lists its values.

Type What it is
BaseAction The base of the three actions: a name, a description and a representation.
ButtonAction An action driven by a button: its callback gets the ButtonState and the player.
OneAxisAction An action driven by a single axis: its callback gets the float value and the player.
TwoAxesAction An action driven by a pair of axes: its callback gets the Vector2 value of System.Numerics and the player.
InputType The three shapes, button, one axis and two axes, that an input and its action share.