Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IVirtualButton Interface

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    Interface IVirtualButton

    public interface IVirtualButton
    Name Description
    Methods
    GetValue(InputManager)

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

    IsDown(InputManager)

    Indicate if the button is currently down

    IsPressed(InputManager)

    Indicate if the button has been pressed since the last frame

    IsReleased(InputManager)

    Indicate if the button has been released since the last frame

    | Improve this Doc View Source

    Methods


    GetValue(InputManager)

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

    float GetValue(InputManager manager)
    Parameters
    Type Name Description
    InputManager manager

    The manager.

    Returns
    Type Description
    System.Single

    System.Single.


    IsDown(InputManager)

    Indicate if the button is currently down

    bool IsDown(InputManager manager)
    Parameters
    Type Name Description
    InputManager manager

    The input manager

    Returns
    Type Description
    System.Boolean

    IsPressed(InputManager)

    Indicate if the button has been pressed since the last frame

    bool IsPressed(InputManager manager)
    Parameters
    Type Name Description
    InputManager manager

    The input manager

    Returns
    Type Description
    System.Boolean

    IsReleased(InputManager)

    Indicate if the button has been released since the last frame

    bool IsReleased(InputManager manager)
    Parameters
    Type Name Description
    InputManager manager

    The input manager

    Returns
    Type Description
    System.Boolean

    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