Class OpenXRActionBinding
This class represents a specific interaction profile for input tracking actions.
Namespace: Evergine.OpenXR.InputTracking
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRActionBinding
Constructors
OpenXRActionBinding(OpenXRInputTracking, OpenXRInteractionProfile)
Initializes a new instance of the OpenXRActionBinding class.
Declaration
public OpenXRActionBinding(OpenXRInputTracking inputTracking, OpenXRInteractionProfile interactionProfile)
Parameters
Type | Name | Description |
---|---|---|
OpenXRInputTracking | inputTracking | The input tracking class. |
OpenXRInteractionProfile | interactionProfile | The interaction profile definition. |
Fields
BindedActions
Actions bound using this profile.
Declaration
public List<OpenXRAction> BindedActions
Field Value
Type | Description |
---|---|
List<OpenXRAction> |
InteractionPath
The XRPath of the interaction path.
Declaration
public readonly ulong InteractionPath
Field Value
Type | Description |
---|---|
ulong |
InteractionProfile
The interaction profile's definition.
Declaration
public readonly OpenXRInteractionProfile InteractionProfile
Field Value
Type | Description |
---|---|
OpenXRInteractionProfile |
Methods
ActivateBinding(uint)
Activates the binding for this sub-action path.
Declaration
public void ActivateBinding(uint subActionIdx)
Parameters
Type | Name | Description |
---|---|---|
uint | subActionIdx | The sub-action index. |
CreateSuggestInteractionProfileBindings()
Creates the suggested interaction profile bindings for OpenXR.
Declaration
public bool CreateSuggestInteractionProfileBindings()
Returns
Type | Description |
---|---|
bool | True if everything is okay. |
DeactivateBinding(uint)
Deactivates the binding for this subaction path.
Declaration
public void DeactivateBinding(uint subActionIdx)
Parameters
Type | Name | Description |
---|---|---|
uint | subActionIdx | The subaction index. |