Docs / Input binder

Glossary: TwoAxesInput

The members of TwoAxesInput, in alphabetical order.

Color legend plain property method

A pair of axes, such as a stick or the mouse’s movement, with its value this frame.

A class, in the namespace BorrowedTorch.InputBinding.Types.Inputs. It derives from BaseInput. Its identity is its Source and AxesId. The binder passes its value on as it is, with no range or dead zone of its own. The inputs page shows it in context, with code.

Names are colored by what they are: a property or a method; values and fields keep the plain color.

Properties

AxesId →

int · Read-only. Which pair of axes of its source, in a numbering the game chooses. Part of the identity.

Value →

Vector2, of System.Numerics · The pair of axes this frame, zero at first unless the constructor was given one. Live data: what a two-axes action’s callback gets. The game sets it before each update.

Methods

TwoAxesInput() →

TwoAxesInput(InputSource source, int axesId, Vector2? value = null) · A two-axes input, at the value, or zero.

Parameter Type Description
source InputSource Which kind of device.
axesId int Which pair of axes of the source.
value Vector2? The value to start at. Default: null, for zero.