Class InputOriginInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<InputOriginInfo>
org.lwjgl.openvr.InputOriginInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class InputOriginInfo extends org.lwjgl.system.Struct<InputOriginInfo> implements org.lwjgl.system.NativeResource

Layout


 struct InputOriginInfo_t {
     VRInputValueHandle_t devicePath;
     TrackedDeviceIndex_t trackedDeviceIndex;
     char rchRenderModelComponentName[128];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • DEVICEPATH

      public static final int DEVICEPATH
      The struct member offsets.
    • TRACKEDDEVICEINDEX

      public static final int TRACKEDDEVICEINDEX
      The struct member offsets.
    • RCHRENDERMODELCOMPONENTNAME

      public static final int RCHRENDERMODELCOMPONENTNAME
      The struct member offsets.
  • Constructor Details

    • InputOriginInfo

      public InputOriginInfo(ByteBuffer container)
      Creates a InputOriginInfo 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<InputOriginInfo>
    • devicePath

      public long devicePath()
      Returns:
      the value of the devicePath field.
    • trackedDeviceIndex

      public int trackedDeviceIndex()
      Returns:
      the value of the trackedDeviceIndex field.
    • rchRenderModelComponentName

      public ByteBuffer rchRenderModelComponentName()
      Returns:
      a ByteBuffer view of the rchRenderModelComponentName field.
    • rchRenderModelComponentNameString

      public String rchRenderModelComponentNameString()
      Returns:
      the null-terminated string stored in the rchRenderModelComponentName field.
    • malloc

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

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

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

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

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

      public static InputOriginInfo.Buffer malloc(int capacity)
      Returns a new InputOriginInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static InputOriginInfo.Buffer calloc(int capacity)
      Returns a new InputOriginInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static InputOriginInfo.Buffer create(int capacity)
      Returns a new InputOriginInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static InputOriginInfo.Buffer create(long address, int capacity)
      Create a InputOriginInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable InputOriginInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static InputOriginInfo mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static InputOriginInfo callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

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

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

      @Deprecated public static InputOriginInfo.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static InputOriginInfo.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static InputOriginInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static InputOriginInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

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

      public static long ndevicePath(long struct)
      Unsafe version of devicePath().
    • ntrackedDeviceIndex

      public static int ntrackedDeviceIndex(long struct)
      Unsafe version of trackedDeviceIndex().
    • nrchRenderModelComponentName

      public static ByteBuffer nrchRenderModelComponentName(long struct)
    • nrchRenderModelComponentNameString

      public static String nrchRenderModelComponentNameString(long struct)