IUxrControllerInput.HasControllerElements Method

Checks if the given controller has specific elements.

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

Syntax

C#

bool HasControllerElements(
	UxrHandSide handSide,
	UxrControllerElements controllerElements
)


Parameters

 

handSide
Type: UltimateXR.Core.UxrHandSide
Which controller to check. In Single devices where IsHandednessSupported is false, such as in gamepads, both hands will address the single device.
controllerElements
Type: UltimateXR.Devices.UxrControllerElements
Flags indicating the element(s) to look for

Return Value

Type: Boolean
True if the controller has all the elements specified. If one is missing, it will return false

See Also

Reference

IUxrControllerInput Interface
UltimateXR.Devices Namespace