Class OpenXRButtonStateInputAction
Represents a boolean OpenXR of type XR_ACTION_TYPE_BOOLEAN_INPUT mapped using a ButtonState.
Inheritance
OpenXRButtonStateInputAction
Inherited Members
Namespace: Evergine.OpenXR.InputTracking.Actions
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRButtonStateInputAction : OpenXRInputAction<ButtonState>
Constructors
OpenXRButtonStateInputAction(OpenXRPlatform, XrActionSet, ulong[], string, string)
Initializes a new instance of the OpenXRButtonStateInputAction class.
Declaration
public OpenXRButtonStateInputAction(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 ButtonState GetValue(uint subActionPathIdx)
Parameters
Type | Name | Description |
---|---|---|
uint | subActionPathIdx | The sub-action index. |
Returns
Type | Description |
---|---|
ButtonState | The action value. |