Class XrActionSuggestedBinding

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrActionSuggestedBinding
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Suggested binding for a single action.
    Valid Usage (Implicit)
    • action must be a valid XrAction handle
    See Also

    XrInteractionProfileSuggestedBinding, SuggestInteractionProfileBindings

    Layout

    
     struct XrActionSuggestedBinding {
         XrAction action();
         XrPath binding();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ACTION, BINDING

        The struct member offsets.
    • Constructor Detail

      • XrActionSuggestedBinding

        public XrActionSuggestedBinding​(java.nio.ByteBuffer container)
        Creates a XrActionSuggestedBinding instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • action

        public long action()
        the XrAction handle for an action
      • binding

        public long binding()
        the XrPath of a binding for the action specified in action. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details.
      • malloc

        public static XrActionSuggestedBinding malloc()
        Returns a new XrActionSuggestedBinding instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrActionSuggestedBinding calloc()
        Returns a new XrActionSuggestedBinding instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrActionSuggestedBinding create()
        Returns a new XrActionSuggestedBinding instance allocated with BufferUtils.
      • create

        public static XrActionSuggestedBinding create​(long address)
        Returns a new XrActionSuggestedBinding instance for the specified memory address.
      • malloc

        public static XrActionSuggestedBinding malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrActionSuggestedBinding instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrActionSuggestedBinding calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrActionSuggestedBinding instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrActionSuggestedBinding.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new XrActionSuggestedBinding.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • naction

        public static long naction​(long struct)
        Unsafe version of action().
      • nbinding

        public static long nbinding​(long struct)
        Unsafe version of binding().
      • naction

        public static void naction​(long struct,
                                   XrAction value)
        Unsafe version of action.
      • nbinding

        public static void nbinding​(long struct,
                                    long value)
        Unsafe version of binding.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate