UxrControllerInput.FilterTwoAxesDeadZone Method

Filters a two-axis input using a dead-zone. Values inside the dead-zone will remain (0.0, 0.0).

Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

protected static Vector2 FilterTwoAxesDeadZone(
	Vector2 input2DPos,
	float deadZone
)

Parameters

 

input2DPos
Type: Vector2
2-axis value
deadZone
Type: System.Single
Dead-zone threshold [0.0, 1.0]

Return Value

Type: Vector2
Filtered input

See Also

Reference

UxrControllerInput Class
UltimateXR.Devices Namespace