Struct GamepadState
Default state layout for gamepads.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: UnityEngine.Experimental.Input.LowLevel
Syntax
public struct GamepadState : IInputStateTypeInfo
Fields
buttons
Button bit mask.
Declaration
public uint buttons
Field Value
Type | Description |
---|---|
System.UInt32 |
See Also
leftStick
Left stick position.
Declaration
public Vector2 leftStick
Field Value
Type | Description |
---|---|
Vector2 |
leftTrigger
Position of the left trigger.
Declaration
public float leftTrigger
Field Value
Type | Description |
---|---|
System.Single |
rightStick
Right stick position.
Declaration
public Vector2 rightStick
Field Value
Type | Description |
---|---|
Vector2 |
rightTrigger
Position of the right trigger.
Declaration
public float rightTrigger
Field Value
Type | Description |
---|---|
System.Single |
Properties
kFormat
Declaration
public static FourCC kFormat { get; }
Property Value
Type | Description |
---|---|
FourCC |
Methods
GetFormat()
Declaration
public FourCC GetFormat()
Returns
Type | Description |
---|---|
FourCC |
Implements
WithButton(GamepadButton, Boolean)
Declaration
public GamepadState WithButton(GamepadButton button, bool value = true)
Parameters
Type | Name | Description |
---|---|---|
GamepadButton | button | |
System.Boolean | value |
Returns
Type | Description |
---|---|
GamepadState |