Skip to main content
Version: 11 Nov 2025

State

Contains information about the current state of an input controller.

Public Methods​

override string ToString​

public override string ToString()

Public Attributes​

ButtonStates​


public bool [] ButtonStates;


Hand​


public MLInputControllerHand Hand;


HardwareIndex​


public byte HardwareIndex;


IsConnected​


public bool IsConnected;


IsTouchesActive​


public bool [] IsTouchesActive;


TouchesPositionAndForce​

Current touch position (x,y) and force (z). Position is in the [-1.0,1.0] range and force is in the [0.0,1.0] range.


public Vector3 [] TouchesPositionAndForce;


TouchpadGestureData​


public TouchpadGesture.Data TouchpadGestureData;


TouchpadGestureState​


public TouchpadGesture.State TouchpadGestureState;

TypeDescription
TouchpadGesture.StateGesture state. Links to MLInputControllerTouchpadGestureState in ml_input.h.

TriggerNormalized​

Normalized trigger value [0.0,1.0]


public float TriggerNormalized;