C Specification

The XrActionType parameter takes one of the following values:

typedef enum XrActionType {
    XR_INPUT_ACTION_TYPE_BOOLEAN = 1,
    XR_INPUT_ACTION_TYPE_VECTOR1F = 2,
    XR_INPUT_ACTION_TYPE_VECTOR2F = 3,
    XR_INPUT_ACTION_TYPE_POSE = 4,
    XR_OUTPUT_ACTION_TYPE_VIBRATION = 100,
    XR_ACTION_TYPE_MAX_ENUM = 0x7FFFFFFF
} XrActionType;

Description

Enumerant Descriptions
  • XR_INPUT_ACTION_TYPE_BOOLEAN. The action can be passed to xrGetActionStateBoolean to retrieve a single boolean value.

  • XR_INPUT_ACTION_TYPE_VECTOR1F. The action can be passed to xrGetActionStateVector1f to retrieve a 1D float vector.

  • XR_INPUT_ACTION_TYPE_VECTOR2F. The action can be passed to xrGetActionStateVector2f to retrieve a 2D float vector.

  • XR_INPUT_ACTION_TYPE_POSE. The action can can be passed to xrCreateActionSpace to create a space.

  • XR_OUTPUT_ACTION_TYPE_VIBRATION. The action can be passed to xrApplyHapticFeedback to send a haptic event to the runtime.

See Also

Document Notes

For more information, see the OpenXR Specification at URL

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.