VirtualButtonBinding Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Describes a binding between a name and a IVirtualButton.
System.Object →
VirtualButtonBinding
Derived from VirtualButtonBinding:
public class VirtualButtonBinding
| Name | Description | |
|---|---|---|
| Constructors | ||
| VirtualButtonBinding() | Initializes a new instance of the VirtualButtonBinding class. |
|
| VirtualButtonBinding(Object, IVirtualButton) | Initializes a new instance of the VirtualButtonBinding class. |
|
| Properties | ||
| Button | Gets or sets the virtual button. |
|
| Name | Gets or sets the name of this virtual button. |
|
| Methods | ||
| GetValue(InputManager) | Gets the value for a particular binding. |
|
| ToString() | ||
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
| Type | Name | Description |
|---|---|---|
| System.Object | name | The name. |
| IVirtualButton | button | The button. |
Properties
Button
Gets or sets the virtual button.
public IVirtualButton Button { get; set; }
Property Value
| Type | Description |
|---|---|
| IVirtualButton | The virtual button. |
Name
Gets or sets the name of this virtual button.
public object Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The name. |
Methods
GetValue(InputManager)
Gets the value for a particular binding.
public virtual float GetValue(InputManager manager)
Parameters
| Type | Name | Description |
|---|---|---|
| InputManager | manager |
Returns
| Type | Description |
|---|---|
| System.Single | Value of the binding |
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()