Class InputBindingInfo

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

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

Layout


 struct InputBindingInfo_t {
     char rchDevicePathName[128];
     char rchInputPathName[128];
     char rchModeName[128];
     char rchSlotName[128];
     char rchInputSourceType[32];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int RCHDEVICEPATHNAME
      The struct member offsets.
    • RCHINPUTPATHNAME

      public static final int RCHINPUTPATHNAME
      The struct member offsets.
    • RCHMODENAME

      public static final int RCHMODENAME
      The struct member offsets.
    • RCHSLOTNAME

      public static final int RCHSLOTNAME
      The struct member offsets.
    • RCHINPUTSOURCETYPE

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

    • InputBindingInfo

      public InputBindingInfo(ByteBuffer container)
      Creates a InputBindingInfo 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<InputBindingInfo>
    • rchDevicePathName

      public ByteBuffer rchDevicePathName()
      Returns:
      a ByteBuffer view of the rchDevicePathName field.
    • rchDevicePathNameString

      public String rchDevicePathNameString()
      Returns:
      the null-terminated string stored in the rchDevicePathName field.
    • rchInputPathName

      public ByteBuffer rchInputPathName()
      Returns:
      a ByteBuffer view of the rchInputPathName field.
    • rchInputPathNameString

      public String rchInputPathNameString()
      Returns:
      the null-terminated string stored in the rchInputPathName field.
    • rchModeName

      public ByteBuffer rchModeName()
      Returns:
      a ByteBuffer view of the rchModeName field.
    • rchModeNameString

      public String rchModeNameString()
      Returns:
      the null-terminated string stored in the rchModeName field.
    • rchSlotName

      public ByteBuffer rchSlotName()
      Returns:
      a ByteBuffer view of the rchSlotName field.
    • rchSlotNameString

      public String rchSlotNameString()
      Returns:
      the null-terminated string stored in the rchSlotName field.
    • rchInputSourceType

      public ByteBuffer rchInputSourceType()
      Returns:
      a ByteBuffer view of the rchInputSourceType field.
    • rchInputSourceTypeString

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static InputBindingInfo.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 InputBindingInfo.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 InputBindingInfo malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new InputBindingInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

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

      public static ByteBuffer nrchDevicePathName(long struct)
      Unsafe version of rchDevicePathName().
    • nrchDevicePathNameString

      public static String nrchDevicePathNameString(long struct)
      Unsafe version of rchDevicePathNameString().
    • nrchInputPathName

      public static ByteBuffer nrchInputPathName(long struct)
      Unsafe version of rchInputPathName().
    • nrchInputPathNameString

      public static String nrchInputPathNameString(long struct)
      Unsafe version of rchInputPathNameString().
    • nrchModeName

      public static ByteBuffer nrchModeName(long struct)
      Unsafe version of rchModeName().
    • nrchModeNameString

      public static String nrchModeNameString(long struct)
      Unsafe version of rchModeNameString().
    • nrchSlotName

      public static ByteBuffer nrchSlotName(long struct)
      Unsafe version of rchSlotName().
    • nrchSlotNameString

      public static String nrchSlotNameString(long struct)
      Unsafe version of rchSlotNameString().
    • nrchInputSourceType

      public static ByteBuffer nrchInputSourceType(long struct)
      Unsafe version of rchInputSourceType().
    • nrchInputSourceTypeString

      public static String nrchInputSourceTypeString(long struct)
      Unsafe version of rchInputSourceTypeString().