Class InputPoseActionData

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

    public class InputPoseActionData
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct InputPoseActionData_t {
         bool bActive();
         VRInputValueHandle_t activeOrigin();
         TrackedDevicePose_t pose();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BACTIVE, ACTIVEORIGIN, POSE

        The struct member offsets.
    • Constructor Detail

      • InputPoseActionData

        public InputPoseActionData​(java.nio.ByteBuffer container)
        Creates a InputPoseActionData 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
      • bActive

        public boolean bActive()
        whether or not this action is currently available to be bound in the active action set
      • activeOrigin

        public long activeOrigin()
        the origin that caused this action's current state
      • malloc

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

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

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

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

        @Nullable
        public static InputPoseActionData createSafe​(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static InputPoseActionData mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static InputPoseActionData callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

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

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

        public static InputPoseActionData.Buffer calloc​(int capacity,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new InputPoseActionData.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
      • nbActive

        public static boolean nbActive​(long struct)
        Unsafe version of bActive().
      • nactiveOrigin

        public static long nactiveOrigin​(long struct)
        Unsafe version of activeOrigin().