IUxrControllerInput.GetInput1D Method

Gets the state of an analog controller input element.

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

Syntax

C#

float GetInput1D(
	UxrHandSide handSide,
	UxrInput1D input1D,
	bool getIgnoredInput = false
)


Parameters

 

handSide
Type: UltimateXR.Core.UxrHandSide
Which controller to get input from. In Single devices where IsHandednessSupported is false, such as in gamepads, both hands will address the single device.
input1D
Type: UltimateXR.Devices.UxrInput1D
Element to get the input from
getIgnoredInput (Optional)
Type: System.Boolean
Whether to return ignored input by [!:SetIgnoreControllerInput]

Return Value

Type: Single
Input value [0.0, 1.0]

See Also

Reference

IUxrControllerInput Interface
UltimateXR.Devices Namespace