UxrControllerInput.ControllerElementToButton Method

Gets the controller button (UxrInputButtons) enum value given a controller element ( UxrControllerElements) enum value.

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

Syntax

C#

public static UxrInputButtons ControllerElementToButton(
	UxrControllerElements element
)

Parameters

 

element
Type: UltimateXR.Devices.UxrControllerElements
Controller element to get the button enum value for

Return Value

Type: UxrInputButtons
Button enum value representing the controller element, or None if it doesn’t exist

Remarks

This method doesn’t support using flag composition for [!:element], use only a single value

See Also

Reference

UxrControllerInput Class
UltimateXR.Devices Namespace