Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Struct InputManager.GamepadState

    Per-pad snapshot: buttons bitset + stick/trigger axes.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: PopcorningGuineaPig.Engine.Input
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public struct InputManager.GamepadState

    Fields

    | Edit this page View Source

    ButtonCount

    Declaration
    public const int ButtonCount = 18
    Field Value
    Type Description
    int
    | Edit this page View Source

    LeftStick

    Declaration
    public Vector2 LeftStick
    Field Value
    Type Description
    Vector2
    | Edit this page View Source

    LeftTrigger

    Declaration
    public float LeftTrigger
    Field Value
    Type Description
    float
    | Edit this page View Source

    RightStick

    Declaration
    public Vector2 RightStick
    Field Value
    Type Description
    Vector2
    | Edit this page View Source

    RightTrigger

    Declaration
    public float RightTrigger
    Field Value
    Type Description
    float

    Properties

    | Edit this page View Source

    HasButtons

    Declaration
    public bool HasButtons { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    ButtonDown(GamepadButton)

    Declaration
    public bool ButtonDown(GamepadButton button)
    Parameters
    Type Name Description
    GamepadButton button
    Returns
    Type Description
    bool
    | Edit this page View Source

    ButtonDown(int)

    Declaration
    public bool ButtonDown(int buttonIndex)
    Parameters
    Type Name Description
    int buttonIndex
    Returns
    Type Description
    bool
    | Edit this page View Source

    Read(int, bool, bool)

    Declaration
    public static InputManager.GamepadState Read(int gamepadIndex, bool raylib, bool xinput)
    Parameters
    Type Name Description
    int gamepadIndex
    bool raylib
    bool xinput
    Returns
    Type Description
    InputManager.GamepadState
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.