Table of Contents

Struct GamepadAxisBinding

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A gamepad stick or trigger that drives an axis action.

public readonly record struct GamepadAxisBinding : IEquatable<GamepadAxisBinding>
Implements
Inherited Members

Constructors

GamepadAxisBinding(GamepadAxis, bool, float)

A gamepad stick or trigger that drives an axis action.

public GamepadAxisBinding(GamepadAxis Axis, bool Invert = false, float Deadzone = 0.2)

Parameters

Axis GamepadAxis

The stick or trigger.

Invert bool

Whether to flip the sign of the value.

Deadzone float

Values smaller than this in size are read as 0.

Properties

Axis

The stick or trigger.

public GamepadAxis Axis { get; init; }

Property Value

GamepadAxis

Deadzone

Values with a size below this are read as 0, after any inversion. Defaults to 0.2.

public float Deadzone { get; init; }

Property Value

float

Invert

Whether to flip the sign of the value, so that a stick can be read the other way.

public bool Invert { get; init; }

Property Value

bool