Struct AndroidGameControllerState
Default state layout for Android game controller.
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
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 |