Class OpenXRVector2InputAction
Represents a Vector2 OpenXR of type XR_ACTION_TYPE_VECTOR2F_INPUT.
Inheritance
OpenXRVector2InputAction
Inherited Members
Namespace: Evergine.OpenXR.InputTracking.Actions
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRVector2InputAction : OpenXRInputAction<Vector2>
Constructors
OpenXRVector2InputAction(OpenXRPlatform, XrActionSet, ulong[], string, string)
Initializes a new instance of the OpenXRVector2InputAction class.
Declaration
public OpenXRVector2InputAction(OpenXRPlatform openXRPlatform, XrActionSet xrActionSet, ulong[] subActionPaths, string actionName, string localizedActionName)
Parameters
Type | Name | Description |
---|---|---|
OpenXRPlatform | openXRPlatform | The OpenXR platform. |
XrActionSet | xrActionSet | The OpenXR action set. |
ulong[] | subActionPaths | The sub-action paths for this action. |
string | actionName | The action name. |
string | localizedActionName | The localized action name. |
Methods
GetValue(uint)
Gets the action value.
Declaration
public override Vector2 GetValue(uint subActionPathIdx)
Parameters
Type | Name | Description |
---|---|---|
uint | subActionPathIdx | The sub-action index. |
Returns
Type | Description |
---|---|
Vector2 | The action value. |