Package org.lwjgl.openvr
Class InputBindingInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.InputBindingInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class InputBindingInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct InputBindingInfo_t { char rchDevicePathName[128]; char rchInputPathName[128]; char rchModeName[128]; char rchSlotName[128]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputBindingInfo.BufferAn array ofInputBindingInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intRCHDEVICEPATHNAME
RCHINPUTPATHNAME
RCHMODENAME
RCHSLOTNAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description InputBindingInfo(java.nio.ByteBuffer container)Creates aInputBindingInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputBindingInfocalloc()Returns a newInputBindingInfoinstance allocated withmemCalloc.static InputBindingInfo.Buffercalloc(int capacity)Returns a newInputBindingInfo.Bufferinstance allocated withmemCalloc.static InputBindingInfocallocStack()Returns a newInputBindingInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputBindingInfo.BuffercallocStack(int capacity)Returns a newInputBindingInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputBindingInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputBindingInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputBindingInfocreate()Returns a newInputBindingInfoinstance allocated withBufferUtils.static InputBindingInfo.Buffercreate(int capacity)Returns a newInputBindingInfo.Bufferinstance allocated withBufferUtils.static InputBindingInfocreate(long address)Returns a newInputBindingInfoinstance for the specified memory address.static InputBindingInfo.Buffercreate(long address, int capacity)Create aInputBindingInfo.Bufferinstance at the specified memory.static InputBindingInfocreateSafe(long address)static InputBindingInfo.BuffercreateSafe(long address, int capacity)static InputBindingInfomalloc()Returns a newInputBindingInfoinstance allocated withmemAlloc.static InputBindingInfo.Buffermalloc(int capacity)Returns a newInputBindingInfo.Bufferinstance allocated withmemAlloc.static InputBindingInfomallocStack()Returns a newInputBindingInfoinstance allocated on the thread-localMemoryStack.static InputBindingInfo.BuffermallocStack(int capacity)Returns a newInputBindingInfo.Bufferinstance allocated on the thread-localMemoryStack.static InputBindingInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStack.static InputBindingInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStack.static java.nio.ByteBuffernrchDevicePathName(long struct)Unsafe version ofrchDevicePathName().static java.lang.StringnrchDevicePathNameString(long struct)Unsafe version ofrchDevicePathNameString().static java.nio.ByteBuffernrchInputPathName(long struct)Unsafe version ofrchInputPathName().static java.lang.StringnrchInputPathNameString(long struct)Unsafe version ofrchInputPathNameString().static java.nio.ByteBuffernrchModeName(long struct)Unsafe version ofrchModeName().static java.lang.StringnrchModeNameString(long struct)Unsafe version ofrchModeNameString().static java.nio.ByteBuffernrchSlotName(long struct)Unsafe version ofrchSlotName().static java.lang.StringnrchSlotNameString(long struct)Unsafe version ofrchSlotNameString().java.nio.ByteBufferrchDevicePathName()Returns aByteBufferview of therchDevicePathNamefield.java.lang.StringrchDevicePathNameString()Decodes the null-terminated string stored in therchDevicePathNamefield.java.nio.ByteBufferrchInputPathName()Returns aByteBufferview of therchInputPathNamefield.java.lang.StringrchInputPathNameString()Decodes the null-terminated string stored in therchInputPathNamefield.java.nio.ByteBufferrchModeName()Returns aByteBufferview of therchModeNamefield.java.lang.StringrchModeNameString()Decodes the null-terminated string stored in therchModeNamefield.java.nio.ByteBufferrchSlotName()Returns aByteBufferview of therchSlotNamefield.java.lang.StringrchSlotNameString()Decodes the null-terminated string stored in therchSlotNamefield.intsizeof()
-
-
-
Constructor Detail
-
InputBindingInfo
public InputBindingInfo(java.nio.ByteBuffer container)
Creates aInputBindingInfoinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
rchDevicePathName
public java.nio.ByteBuffer rchDevicePathName()
Returns aByteBufferview of therchDevicePathNamefield.
-
rchDevicePathNameString
public java.lang.String rchDevicePathNameString()
Decodes the null-terminated string stored in therchDevicePathNamefield.
-
rchInputPathName
public java.nio.ByteBuffer rchInputPathName()
Returns aByteBufferview of therchInputPathNamefield.
-
rchInputPathNameString
public java.lang.String rchInputPathNameString()
Decodes the null-terminated string stored in therchInputPathNamefield.
-
rchModeName
public java.nio.ByteBuffer rchModeName()
Returns aByteBufferview of therchModeNamefield.
-
rchModeNameString
public java.lang.String rchModeNameString()
Decodes the null-terminated string stored in therchModeNamefield.
-
rchSlotName
public java.nio.ByteBuffer rchSlotName()
Returns aByteBufferview of therchSlotNamefield.
-
rchSlotNameString
public java.lang.String rchSlotNameString()
Decodes the null-terminated string stored in therchSlotNamefield.
-
malloc
public static InputBindingInfo malloc()
Returns a newInputBindingInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static InputBindingInfo calloc()
Returns a newInputBindingInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static InputBindingInfo create()
Returns a newInputBindingInfoinstance allocated withBufferUtils.
-
create
public static InputBindingInfo create(long address)
Returns a newInputBindingInfoinstance for the specified memory address.
-
createSafe
@Nullable public static InputBindingInfo createSafe(long address)
-
malloc
public static InputBindingInfo.Buffer malloc(int capacity)
Returns a newInputBindingInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static InputBindingInfo.Buffer calloc(int capacity)
Returns a newInputBindingInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static InputBindingInfo.Buffer create(int capacity)
Returns a newInputBindingInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static InputBindingInfo.Buffer create(long address, int capacity)
Create aInputBindingInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static InputBindingInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static InputBindingInfo mallocStack()
Returns a newInputBindingInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static InputBindingInfo callocStack()
Returns a newInputBindingInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static InputBindingInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static InputBindingInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static InputBindingInfo.Buffer mallocStack(int capacity)
Returns a newInputBindingInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static InputBindingInfo.Buffer callocStack(int capacity)
Returns a newInputBindingInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static InputBindingInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static InputBindingInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nrchDevicePathName
public static java.nio.ByteBuffer nrchDevicePathName(long struct)
Unsafe version ofrchDevicePathName().
-
nrchDevicePathNameString
public static java.lang.String nrchDevicePathNameString(long struct)
Unsafe version ofrchDevicePathNameString().
-
nrchInputPathName
public static java.nio.ByteBuffer nrchInputPathName(long struct)
Unsafe version ofrchInputPathName().
-
nrchInputPathNameString
public static java.lang.String nrchInputPathNameString(long struct)
Unsafe version ofrchInputPathNameString().
-
nrchModeName
public static java.nio.ByteBuffer nrchModeName(long struct)
Unsafe version ofrchModeName().
-
nrchModeNameString
public static java.lang.String nrchModeNameString(long struct)
Unsafe version ofrchModeNameString().
-
nrchSlotName
public static java.nio.ByteBuffer nrchSlotName(long struct)
Unsafe version ofrchSlotName().
-
nrchSlotNameString
public static java.lang.String nrchSlotNameString(long struct)
Unsafe version ofrchSlotNameString().
-
-