Class StickControl
A two-axis thumbstick control that can act as both a vector and a four-way dpad.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.Input.Controls
Syntax
public class StickControl : Vector2Control
Remarks
State-wise this is still just a Vector2.
Unlike DpadControl, sticks will usually have
Properties
down
Declaration
public ButtonControl down { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
left
Declaration
public ButtonControl left { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
right
Declaration
public ButtonControl right { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
up
Declaration
public ButtonControl up { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup(InputDeviceBuilder)
Declaration
protected override void FinishSetup(InputDeviceBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
InputDeviceBuilder | builder |