Search Results for

    Show / Hide Table of Contents

    Struct GamePadState

    Represents the gamepad state.

    Implements
    IController
    Namespace: Evergine.Common.Input
    Assembly: Evergine.Common.dll
    Syntax
    public struct GamePadState : IController

    Fields

    Buttons

    Gamepad buttons.

    Declaration
    public GamePadButtons Buttons
    Field Value
    Type Description
    GamePadButtons

    DPad

    Directional buttons.

    Declaration
    public GamePadDPad DPad
    Field Value
    Type Description
    GamePadDPad

    ThumbSticks

    Thumbsticks.

    Declaration
    public GamePadThumbSticks ThumbSticks
    Field Value
    Type Description
    GamePadThumbSticks

    Triggers

    Represents the gamepad triggers.

    Declaration
    public GamePadTriggers Triggers
    Field Value
    Type Description
    GamePadTriggers

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

    Determines whether the specified button is pressed.

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

    The specified button.

    Returns
    Type Description
    bool

    true if the specified button is pressed; false otherwise.

    IsButtonReleased(Buttons)

    Determines whether the specified button is released.

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

    The specified button.

    Returns
    Type Description
    bool

    true if the specified button is released; false otherwise.

    Implements

    IController

    Extension Methods

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