Docs / Input binder

Glossary: OneAxisInput

The members of OneAxisInput, in alphabetical order.

Color legend plain property method

A single axis, such as a trigger, a wheel or a knob, with its value this frame.

A class, in the namespace BorrowedTorch.InputBinding.Types.Inputs. It derives from BaseInput. Its identity is its Source and AxisId. 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

AxisId →

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

Value →

float · The axis this frame, 0 at first unless the constructor was given one. Live data: what a one-axis action’s callback gets. The game sets it before each update.

Methods

OneAxisInput() →

OneAxisInput(InputSource source, int axisId, float? value = null) · A one-axis input, at the value, or 0.

Parameter Type Description
source InputSource Which kind of device.
axisId int Which axis of the source.
value float? The value to start at. Default: null, for 0.