Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_api_action.h
Go to the documentation of this file.
1// Copyright 2018-2024, Collabora, Ltd.
2// Copyright 2025-2026, NVIDIA CORPORATION.
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief Header defining all API functions.
7 * @author Jakob Bornecrantz <jakob@collabora.com>
8 * @author Korcan Hussein <korcan.hussein@collabora.com>
9 * @ingroup oxr_api
10 */
11
12#pragma once
13
14#include "oxr_extension_support.h"
15
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
22//! OpenXR API function @ep{xrCreateActionSet}
23XRAPI_ATTR XrResult XRAPI_CALL
24oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet);
25
26//! OpenXR API function @ep{xrDestroyActionSet}
27XRAPI_ATTR XrResult XRAPI_CALL
28oxr_xrDestroyActionSet(XrActionSet actionSet);
29
30//! OpenXR API function @ep{xrCreateAction}
31XRAPI_ATTR XrResult XRAPI_CALL
32oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action);
33
34//! OpenXR API function @ep{xrDestroyAction}
35XRAPI_ATTR XrResult XRAPI_CALL
36oxr_xrDestroyAction(XrAction action);
37
38//! OpenXR API function @ep{xrSuggestInteractionProfileBindings}
39XRAPI_ATTR XrResult XRAPI_CALL
41 const XrInteractionProfileSuggestedBinding *suggestedBindings);
42
43//! OpenXR API function @ep{xrAttachSessionActionSets}
44XRAPI_ATTR XrResult XRAPI_CALL
45oxr_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *bindInfo);
46
47//! OpenXR API function @ep{xrGetCurrentInteractionProfile}
48XRAPI_ATTR XrResult XRAPI_CALL
50 XrPath topLevelUserPath,
51 XrInteractionProfileState *interactionProfile);
52
53//! OpenXR API function @ep{xrGetActionStateBoolean}
54XRAPI_ATTR XrResult XRAPI_CALL
55oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data);
56
57//! OpenXR API function @ep{xrGetActionStateFloat}
58XRAPI_ATTR XrResult XRAPI_CALL
59oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data);
60
61//! OpenXR API function @ep{xrGetActionStateVector2f}
62XRAPI_ATTR XrResult XRAPI_CALL
63oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data);
64
65//! OpenXR API function @ep{xrGetActionStatePose}
66XRAPI_ATTR XrResult XRAPI_CALL
67oxr_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data);
68
69//! OpenXR API function @ep{xrSyncActions}
70XRAPI_ATTR XrResult XRAPI_CALL
71oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo);
72
73//! OpenXR API function @ep{xrEnumerateBoundSourcesForAction}
74XRAPI_ATTR XrResult XRAPI_CALL
76 const XrBoundSourcesForActionEnumerateInfo *enumerateInfo,
77 uint32_t sourceCapacityInput,
78 uint32_t *sourceCountOutput,
79 XrPath *sources);
80
81//! OpenXR API function @ep{xrGetInputSourceLocalizedName}
82XRAPI_ATTR XrResult XRAPI_CALL
83oxr_xrGetInputSourceLocalizedName(XrSession session,
84 const XrInputSourceLocalizedNameGetInfo *getInfo,
85 uint32_t bufferCapacityInput,
86 uint32_t *bufferCountOutput,
87 char *buffer);
88
89//! OpenXR API function @ep{xrApplyHapticFeedback}
90XRAPI_ATTR XrResult XRAPI_CALL
91oxr_xrApplyHapticFeedback(XrSession session,
92 const XrHapticActionInfo *hapticActionInfo,
93 const XrHapticBaseHeader *hapticEvent);
94
95//! OpenXR API function @ep{xrStopHapticFeedback}
96XRAPI_ATTR XrResult XRAPI_CALL
97oxr_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo);
98
99
100#ifdef OXR_HAVE_FB_haptic_pcm
101
102XRAPI_ATTR XrResult XRAPI_CALL
103oxr_xrGetDeviceSampleRateFB(XrSession session,
104 const XrHapticActionInfo *hapticActionInfo,
105 XrDevicePcmSampleRateGetInfoFB *deviceSampleRate);
106
107#endif // OXR_HAVE_FB_haptic_pcm
108
109
110#ifdef __cplusplus
111}
112#endif
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetDeviceSampleRateFB(XrSession session, const XrHapticActionInfo *hapticActionInfo, XrDevicePcmSampleRateGetInfoFB *deviceSampleRate)
OpenXR API function xrGetDeviceSampleRateFB.
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data)
OpenXR API function xrGetActionStateFloat.
Definition oxr_api_action.c:668
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data)
OpenXR API function xrGetActionStatePose.
Definition oxr_api_action.c:726
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetInputSourceLocalizedName(XrSession session, const XrInputSourceLocalizedNameGetInfo *getInfo, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
OpenXR API function xrGetInputSourceLocalizedName.
Definition oxr_api_action.c:425
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyActionSet(XrActionSet actionSet)
OpenXR API function xrDestroyActionSet.
Definition oxr_api_action.c:543
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetCurrentInteractionProfile(XrSession session, XrPath topLevelUserPath, XrInteractionProfileState *interactionProfile)
OpenXR API function xrGetCurrentInteractionProfile.
Definition oxr_api_action.c:374
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *bindInfo)
OpenXR API function xrAttachSessionActionSets.
Definition oxr_api_action.c:171
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo)
OpenXR API function xrStopHapticFeedback.
Definition oxr_api_action.c:837
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo)
OpenXR API function xrSyncActions.
Definition oxr_api_action.c:131
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyAction(XrAction action)
OpenXR API function xrDestroyAction.
Definition oxr_api_action.c:627
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet)
OpenXR API function xrCreateActionSet.
Definition oxr_api_action.c:485
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action)
OpenXR API function xrCreateAction.
Definition oxr_api_action.c:562
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrSuggestInteractionProfileBindings(XrInstance instance, const XrInteractionProfileSuggestedBinding *suggestedBindings)
OpenXR API function xrSuggestInteractionProfileBindings.
Definition oxr_api_action.c:202
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrEnumerateBoundSourcesForAction(XrSession session, const XrBoundSourcesForActionEnumerateInfo *enumerateInfo, uint32_t sourceCapacityInput, uint32_t *sourceCountOutput, XrPath *sources)
OpenXR API function xrEnumerateBoundSourcesForAction.
Definition oxr_api_action.c:755
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data)
OpenXR API function xrGetActionStateBoolean.
Definition oxr_api_action.c:639
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrApplyHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo, const XrHapticBaseHeader *hapticEvent)
OpenXR API function xrApplyHapticFeedback.
Definition oxr_api_action.c:789
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data)
OpenXR API function xrGetActionStateVector2f.
Definition oxr_api_action.c:697