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]; char rchInputSourceType[32]; }
-
-
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
RCHINPUTSOURCETYPE
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 Deprecated 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 InputBindingInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputBindingInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputBindingInfocallocStack()Deprecated.static InputBindingInfo.BuffercallocStack(int capacity)Deprecated.static InputBindingInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static InputBindingInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 InputBindingInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfo.Bufferinstance allocated on the specifiedMemoryStack.static InputBindingInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStack.static InputBindingInfomallocStack()Deprecated.static InputBindingInfo.BuffermallocStack(int capacity)Deprecated.static InputBindingInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static InputBindingInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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.ByteBuffernrchInputSourceType(long struct)Unsafe version ofrchInputSourceType().static java.lang.StringnrchInputSourceTypeString(long struct)Unsafe version ofrchInputSourceTypeString().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()java.lang.StringrchDevicePathNameString()java.nio.ByteBufferrchInputPathName()java.lang.StringrchInputPathNameString()java.nio.ByteBufferrchInputSourceType()java.lang.StringrchInputSourceTypeString()java.nio.ByteBufferrchModeName()java.lang.StringrchModeNameString()java.nio.ByteBufferrchSlotName()java.lang.StringrchSlotNameString()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:
- a
ByteBufferview of therchDevicePathNamefield.
-
rchDevicePathNameString
public java.lang.String rchDevicePathNameString()
- Returns:
- the null-terminated string stored in the
rchDevicePathNamefield.
-
rchInputPathName
public java.nio.ByteBuffer rchInputPathName()
- Returns:
- a
ByteBufferview of therchInputPathNamefield.
-
rchInputPathNameString
public java.lang.String rchInputPathNameString()
- Returns:
- the null-terminated string stored in the
rchInputPathNamefield.
-
rchModeName
public java.nio.ByteBuffer rchModeName()
- Returns:
- a
ByteBufferview of therchModeNamefield.
-
rchModeNameString
public java.lang.String rchModeNameString()
- Returns:
- the null-terminated string stored in the
rchModeNamefield.
-
rchSlotName
public java.nio.ByteBuffer rchSlotName()
- Returns:
- a
ByteBufferview of therchSlotNamefield.
-
rchSlotNameString
public java.lang.String rchSlotNameString()
- Returns:
- the null-terminated string stored in the
rchSlotNamefield.
-
rchInputSourceType
public java.nio.ByteBuffer rchInputSourceType()
- Returns:
- a
ByteBufferview of therchInputSourceTypefield.
-
rchInputSourceTypeString
public java.lang.String rchInputSourceTypeString()
- Returns:
- the null-terminated string stored in the
rchInputSourceTypefield.
-
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
@Deprecated public static InputBindingInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static InputBindingInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static InputBindingInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static InputBindingInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static InputBindingInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static InputBindingInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead.
-
malloc
public static InputBindingInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static InputBindingInfo calloc(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
-
malloc
public static InputBindingInfo.Buffer malloc(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
-
calloc
public static InputBindingInfo.Buffer calloc(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().
-
nrchInputSourceType
public static java.nio.ByteBuffer nrchInputSourceType(long struct)
Unsafe version ofrchInputSourceType().
-
nrchInputSourceTypeString
public static java.lang.String nrchInputSourceTypeString(long struct)
Unsafe version ofrchInputSourceTypeString().
-
-