Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    VirtualButtonBinding Class

    Namespace: Stride.Input
    Assembly: 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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation