示例#1
0
        public InteractionProfileSuggestedBinding
        (
            StructureType?type          = StructureType.TypeInteractionProfileSuggestedBinding,
            void *next                  = null,
            ulong?interactionProfile    = null,
            uint?countSuggestedBindings = null,
            ActionSuggestedBinding *suggestedBindings = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (interactionProfile is not null)
            {
                InteractionProfile = interactionProfile.Value;
            }

            if (countSuggestedBindings is not null)
            {
                CountSuggestedBindings = countSuggestedBindings.Value;
            }

            if (suggestedBindings is not null)
            {
                SuggestedBindings = suggestedBindings;
            }
        }
示例#2
0
        internal static unsafe bool IsPathSupported(OpenXRHmd hmd, ulong profile, ActionSuggestedBinding *suggested)
        {
            InteractionProfileSuggestedBinding suggested_bindings = new InteractionProfileSuggestedBinding()
            {
                Type = StructureType.TypeInteractionProfileSuggestedBinding,
                InteractionProfile     = profile,
                CountSuggestedBindings = 1,
                SuggestedBindings      = suggested
            };

            return(hmd.Xr.SuggestInteractionProfileBinding(hmd.Instance, &suggested_bindings) == Result.Success);
        }