Controller
Public Methods
bool AttachTriggerListener
Exposed callback for controller NativeBindings.OnTrigger trigger event.
public static bool AttachTriggerListener(
Action< ushort, MLInputControllerTriggerEvent, float > triggerCallback
)
Parameters
Type | Name | Description |
---|---|---|
Action< ushort, MLInputControllerTriggerEvent, float > | triggerCallback | Trigger events types. |
State GetState
public static State GetState()
void RemoveTriggerListener
public static void RemoveTriggerListener(
Action< ushort, MLInputControllerTriggerEvent, float > triggerCallback
)
Parameters
Type | Name | Description |
---|---|---|
Action< ushort, MLInputControllerTriggerEvent, float > | triggerCallback | Trigger events types. |
Public Attributes
MaxControllerTouchpadTouches
The maximum number of controller touchpad touches that are supported.
public const uint MaxControllerTouchpadTouches = 2;
Public Enums
CalibrationAccuracy
The calibration accuracy levels for controller.
Enumerator | Value | Description |
---|---|---|
Bad | 0 | The calibration accuracy is bad. |
Low | 1 | The calibration accuracy is low. |
Medium | 2 | The calibration accuracy is medium. |
High | 3 | The calibration accuracy is high. |
MLInputControllerButton
Enumerator | Value | Description |
---|---|---|
None | ||
Bumper | ||
Menu | ||
Count |
MLInputControllerHand
Enumerator | Value | Description |
---|---|---|
None | ||
Left | ||
Right | ||
Both |
MLInputControllerTriggerEvent
Trigger events types.
Enumerator | Value | Description |
---|---|---|
Pull | This is used when trigger is pulled down, and the normalized value is > 0. | |
Release | /This is used when trigger is fully released, and the normalized value is 0. | |
Click | This is used when trigger is pulled and released within a short duration. | |
Hold | This is used when trigger is pulled and held for a longer duration. |
MLInputControllerType
Enumerator | Value | Description |
---|---|---|
None | ||
Device |