Docs / Input binder

Glossary: InputType

The values of InputType.

The three shapes of actions and inputs.

An enum, in the namespace BorrowedTorch.InputBinding.Types. The Type of a handle. An input is bound to an action of its own shape only, or the bind returns TypesMismatch. The actions page shows it in context.

Values

Button →

A ButtonAction, driven by ButtonInputs: keys, mouse, pad and MIDI buttons.

OneAxis →

A OneAxisAction, driven by OneAxisInputs: a float, such as a trigger or a wheel.

TwoAxes →

A TwoAxesAction, driven by TwoAxesInputs: a Vector2, such as a stick or the mouse’s movement.