UxrDummyControllerInput.GetInput1D Method
Gets the state of an analog controller input element.
Namespace: UltimateXR.Devices.Integrations
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public override 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]
Implements
IUxrControllerInput.GetInput1D(UxrHandSide, UxrInput1D, Boolean)
See Also
Reference
UxrDummyControllerInput Class
UltimateXR.Devices.Integrations Namespace