Table of Contents

Class VirtualButtonConfig

Namespace
Stride.Input
Assembly
Stride.Input.dll

Describes the configuration composed by a collection of VirtualButtonBinding.

public class VirtualButtonConfig : TrackingCollection<VirtualButtonBinding>, IList<VirtualButtonBinding>, ICollection<VirtualButtonBinding>, IReadOnlyList<VirtualButtonBinding>, IReadOnlyCollection<VirtualButtonBinding>, IEnumerable<VirtualButtonBinding>, IEnumerable, ITrackingCollectionChanged
Inheritance
VirtualButtonConfig
Implements
Inherited Members
Extension Methods

Constructors

VirtualButtonConfig()

Initializes a new instance of the VirtualButtonConfig class.

public VirtualButtonConfig()

Properties

BindingNames

Gets the binding names.

public IEnumerable<object> BindingNames { get; }

Property Value

IEnumerable<object>

The binding names.

Methods

GetValue(InputManager, object)

Gets the value for a particular binding.

public virtual float GetValue(InputManager inputManager, object name)

Parameters

inputManager InputManager
name object

Returns

float

Value of the binding

IsDown(InputManager, object)

Gets the held down state for a particular binding.

public virtual bool IsDown(InputManager inputManager, object name)

Parameters

inputManager InputManager
name object

Returns

bool

true when currently held down; otherwise, false.

IsPressed(InputManager, object)

Gets the pressed state for a particular binding.

public virtual bool IsPressed(InputManager inputManager, object name)

Parameters

inputManager InputManager
name object

Returns

bool

true when pressed since the last frame; otherwise, false.

IsReleased(InputManager, object)

Gets the pressed state for a particular binding.

public virtual bool IsReleased(InputManager inputManager, object name)

Parameters

inputManager InputManager
name object

Returns

bool

true when released since the last frame; otherwise, false.