Search Results for

    Show / Hide Table of Contents

    Struct XRControllerGenericState

    Represents the gamepad state.

    Implements
    IController
    Namespace: Evergine.Framework.XR
    Assembly: Evergine.Framework.dll
    Syntax
    public struct XRControllerGenericState : IController

    Fields

    Button1

    State of the first button.

    Declaration
    public ButtonState Button1
    Field Value
    Type Description
    ButtonState

    Button2

    State of the second button.

    Declaration
    public ButtonState Button2
    Field Value
    Type Description
    ButtonState

    Grip

    State of the grip button.

    Declaration
    public ButtonState Grip
    Field Value
    Type Description
    ButtonState

    Menu

    State of the menu button.

    Declaration
    public ButtonState Menu
    Field Value
    Type Description
    ButtonState

    ThumbStick

    Thumbsticks.

    Declaration
    public Vector2 ThumbStick
    Field Value
    Type Description
    Vector2

    ThumbStickButton

    The state of the grip button.

    Declaration
    public ButtonState ThumbStickButton
    Field Value
    Type Description
    ButtonState

    Touchpad

    Touchpad.

    Declaration
    public Vector2 Touchpad
    Field Value
    Type Description
    Vector2

    Trigger

    The trigger.

    Declaration
    public float Trigger
    Field Value
    Type Description
    float

    TriggerButton

    The trigger button.

    Declaration
    public ButtonState TriggerButton
    Field Value
    Type Description
    ButtonState

    Properties

    IsConnected

    Gets or sets a value indicating whether this instance is connected.

    Declaration
    public bool IsConnected { readonly get; set; }
    Property Value
    Type Description
    bool

    true if this instance is connected; otherwise, false.

    Methods

    IsButtonPressed(XRButtons)

    Determines whether the specified button is pressed.

    Declaration
    public bool IsButtonPressed(XRButtons button)
    Parameters
    Type Name Description
    XRButtons button

    The specified button.

    Returns
    Type Description
    bool

    true if the specified button is pressed; otherwise, false.

    IsButtonReleased(XRButtons)

    Determines whether the specified button is released.

    Declaration
    public bool IsButtonReleased(XRButtons button)
    Parameters
    Type Name Description
    XRButtons button

    The specified button.

    Returns
    Type Description
    bool

    true if the specified button is released; otherwise, false.

    Implements

    IController

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX