Table of Contents

Class VirtualButtonBinding

Namespace
Stride.Input
Assembly
Stride.Input.dll

Describes a binding between a name and a IVirtualButton.

public class VirtualButtonBinding
Inheritance
VirtualButtonBinding

Constructors

VirtualButtonBinding()

Initializes a new instance of the VirtualButtonBinding class.

public VirtualButtonBinding()

VirtualButtonBinding(object, IVirtualButton)

Initializes a new instance of the VirtualButtonBinding class.

public VirtualButtonBinding(object name, IVirtualButton button = null)

Parameters

name object

The name.

button IVirtualButton

The button.

Properties

Button

Gets or sets the virtual button.

public IVirtualButton Button { get; set; }

Property Value

IVirtualButton

The virtual button.

Name

Gets or sets the name of this virtual button.

public object Name { get; set; }

Property Value

object

The name.

Methods

GetValue(InputManager)

Gets the value for a particular binding.

public virtual float GetValue(InputManager manager)

Parameters

manager InputManager

Returns

float

Value of the binding

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.