docs.unity3d.com
    Show / Hide Table of Contents

    Struct AndroidGameControllerState

    Default state layout for Android game controller.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.Android.LowLevel
    Syntax
    public struct AndroidGameControllerState : IInputStateTypeInfo

    Fields

    axis

    Declaration
    public float *axis
    Field Value
    Type Description
    Single*

    buttons

    Declaration
    public uint *buttons
    Field Value
    Type Description
    UInt32*

    kFormat

    Declaration
    public static FourCC kFormat
    Field Value
    Type Description
    FourCC

    MaxAxes

    Declaration
    public const int MaxAxes = 48
    Field Value
    Type Description
    Int32

    MaxButtons

    Declaration
    public const int MaxButtons = 220
    Field Value
    Type Description
    Int32

    Properties

    format

    Declaration
    public readonly FourCC format { get; }
    Property Value
    Type Description
    FourCC
    Implements
    IInputStateTypeInfo.format

    Methods

    WithAxis(AndroidAxis, Single)

    Declaration
    public AndroidGameControllerState WithAxis(AndroidAxis axis, float value)
    Parameters
    Type Name Description
    AndroidAxis axis
    Single value
    Returns
    Type Description
    AndroidGameControllerState

    WithButton(AndroidKeyCode, Boolean)

    Declaration
    public AndroidGameControllerState WithButton(AndroidKeyCode code, bool value = true)
    Parameters
    Type Name Description
    AndroidKeyCode code
    Boolean value
    Returns
    Type Description
    AndroidGameControllerState
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023