Table of Contents

Struct GamepadButtonAxisBinding

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

A pair of gamepad buttons that move an axis action negative and positive.

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

Constructors

GamepadButtonAxisBinding(GamepadButton, GamepadButton, float)

A pair of gamepad buttons that move an axis action negative and positive.

public GamepadButtonAxisBinding(GamepadButton Negative, GamepadButton Positive, float Scale = 1)

Parameters

Negative GamepadButton

The button that moves the axis toward -1.

Positive GamepadButton

The button that moves the axis toward 1.

Scale float

How much each held button adds to the value.

Properties

Negative

The button that moves the axis toward -1.

public GamepadButton Negative { get; init; }

Property Value

GamepadButton

Positive

The button that moves the axis toward 1.

public GamepadButton Positive { get; init; }

Property Value

GamepadButton

Scale

The amount each held button adds to the value. The total is clamped to -1 to 1.

public float Scale { get; init; }

Property Value

float