Table of Contents

Class VirtualButton.GamePad

Namespace
Stride.Input
Assembly
Stride.Input.dll

GamePad virtual button.

public class VirtualButton.GamePad : VirtualButton, IVirtualButton
Inheritance
VirtualButton.GamePad
Implements
Inherited Members

Constructors

GamePad(string, int, int, bool)

protected GamePad(string name, int id, int padIndex, bool isPositiveAndNegative)

Parameters

name string
id int
padIndex int
isPositiveAndNegative bool

Fields

A

Equivalent to A.

public static readonly VirtualButton.GamePad A

Field Value

VirtualButton.GamePad

B

Equivalent to B.

public static readonly VirtualButton.GamePad B

Field Value

VirtualButton.GamePad

Back

Equivalent to Back.

public static readonly VirtualButton.GamePad Back

Field Value

VirtualButton.GamePad

LeftShoulder

Equivalent to LeftShoulder.

public static readonly VirtualButton.GamePad LeftShoulder

Field Value

VirtualButton.GamePad

LeftThumb

Equivalent to LeftThumb.

public static readonly VirtualButton.GamePad LeftThumb

Field Value

VirtualButton.GamePad

LeftThumbAxisX

Equivalent to the X Axis of LeftThumb.

public static readonly VirtualButton.GamePad LeftThumbAxisX

Field Value

VirtualButton.GamePad

LeftThumbAxisY

Equivalent to the Y Axis of LeftThumb.

public static readonly VirtualButton.GamePad LeftThumbAxisY

Field Value

VirtualButton.GamePad

LeftTrigger

Equivalent to LeftTrigger.

public static readonly VirtualButton.GamePad LeftTrigger

Field Value

VirtualButton.GamePad

PadDown

Equivalent to PadDown.

public static readonly VirtualButton.GamePad PadDown

Field Value

VirtualButton.GamePad

PadIndex

The pad index.

public readonly int PadIndex

Field Value

int

PadLeft

Equivalent to PadLeft.

public static readonly VirtualButton.GamePad PadLeft

Field Value

VirtualButton.GamePad

PadRight

Equivalent to PadRight.

public static readonly VirtualButton.GamePad PadRight

Field Value

VirtualButton.GamePad

PadUp

Equivalent to PadUp.

public static readonly VirtualButton.GamePad PadUp

Field Value

VirtualButton.GamePad

RightShoulder

Equivalent to RightShoulder.

public static readonly VirtualButton.GamePad RightShoulder

Field Value

VirtualButton.GamePad

RightThumb

Equivalent to RightThumb.

public static readonly VirtualButton.GamePad RightThumb

Field Value

VirtualButton.GamePad

RightThumbAxisX

Equivalent to the X Axis of RightThumb.

public static readonly VirtualButton.GamePad RightThumbAxisX

Field Value

VirtualButton.GamePad

RightThumbAxisY

Equivalent to the Y Axis of RightThumb.

public static readonly VirtualButton.GamePad RightThumbAxisY

Field Value

VirtualButton.GamePad

RightTrigger

Equivalent to RightTrigger.

public static readonly VirtualButton.GamePad RightTrigger

Field Value

VirtualButton.GamePad

Start

Equivalent to Start.

public static readonly VirtualButton.GamePad Start

Field Value

VirtualButton.GamePad

X

Equivalent to X.

public static readonly VirtualButton.GamePad X

Field Value

VirtualButton.GamePad

Y

Equivalent to Y.

public static readonly VirtualButton.GamePad Y

Field Value

VirtualButton.GamePad

Methods

BuildButtonName()

protected override string BuildButtonName()

Returns

string

GetValue(InputManager)

Gets the value associated with this virtual button from an input manager.

public override float GetValue(InputManager manager)

Parameters

manager InputManager

The manager.

Returns

float

System.Single.

IsDown(InputManager)

Indicate if the button is currently down

public override bool IsDown(InputManager manager)

Parameters

manager InputManager

The input manager

Returns

bool

IsPressed(InputManager)

Indicate if the button has been pressed since the last frame

public override bool IsPressed(InputManager manager)

Parameters

manager InputManager

The input manager

Returns

bool

IsReleased(InputManager)

Indicate if the button has been released since the last frame

public override bool IsReleased(InputManager manager)

Parameters

manager InputManager

The input manager

Returns

bool

OfGamePad(int)

Return an instance of a particular GamePad.

public VirtualButton.GamePad OfGamePad(int index)

Parameters

index int

The gamepad index.

Returns

VirtualButton.GamePad

A new GamePad button linked to the gamepad index.