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.NativeResource
Layout
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 class
InputBindingInfo.Buffer
An array ofInputBindingInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
RCHDEVICEPATHNAME
RCHINPUTPATHNAME
RCHMODENAME
RCHSLOTNAMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description InputBindingInfo(java.nio.ByteBuffer container)
Creates aInputBindingInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputBindingInfo
calloc()
Returns a newInputBindingInfo
instance allocated withmemCalloc
.static InputBindingInfo.Buffer
calloc(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withmemCalloc
.static InputBindingInfo
callocStack()
Returns a newInputBindingInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputBindingInfo.Buffer
callocStack(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputBindingInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputBindingInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputBindingInfo
create()
Returns a newInputBindingInfo
instance allocated withBufferUtils
.static InputBindingInfo.Buffer
create(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withBufferUtils
.static InputBindingInfo
create(long address)
Returns a newInputBindingInfo
instance for the specified memory address.static InputBindingInfo.Buffer
create(long address, int capacity)
Create aInputBindingInfo.Buffer
instance at the specified memory.static InputBindingInfo
createSafe(long address)
static InputBindingInfo.Buffer
createSafe(long address, int capacity)
static InputBindingInfo
malloc()
Returns a newInputBindingInfo
instance allocated withmemAlloc
.static InputBindingInfo.Buffer
malloc(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withmemAlloc
.static InputBindingInfo
mallocStack()
Returns a newInputBindingInfo
instance allocated on the thread-localMemoryStack
.static InputBindingInfo.Buffer
mallocStack(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated on the thread-localMemoryStack
.static InputBindingInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo.Buffer
instance allocated on the specifiedMemoryStack
.static InputBindingInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo
instance allocated on the specifiedMemoryStack
.static java.nio.ByteBuffer
nrchDevicePathName(long struct)
Unsafe version ofrchDevicePathName()
.static java.lang.String
nrchDevicePathNameString(long struct)
Unsafe version ofrchDevicePathNameString()
.static java.nio.ByteBuffer
nrchInputPathName(long struct)
Unsafe version ofrchInputPathName()
.static java.lang.String
nrchInputPathNameString(long struct)
Unsafe version ofrchInputPathNameString()
.static java.nio.ByteBuffer
nrchModeName(long struct)
Unsafe version ofrchModeName()
.static java.lang.String
nrchModeNameString(long struct)
Unsafe version ofrchModeNameString()
.static java.nio.ByteBuffer
nrchSlotName(long struct)
Unsafe version ofrchSlotName()
.static java.lang.String
nrchSlotNameString(long struct)
Unsafe version ofrchSlotNameString()
.java.nio.ByteBuffer
rchDevicePathName()
Returns aByteBuffer
view of therchDevicePathName
field.java.lang.String
rchDevicePathNameString()
Decodes the null-terminated string stored in therchDevicePathName
field.java.nio.ByteBuffer
rchInputPathName()
Returns aByteBuffer
view of therchInputPathName
field.java.lang.String
rchInputPathNameString()
Decodes the null-terminated string stored in therchInputPathName
field.java.nio.ByteBuffer
rchModeName()
Returns aByteBuffer
view of therchModeName
field.java.lang.String
rchModeNameString()
Decodes the null-terminated string stored in therchModeName
field.java.nio.ByteBuffer
rchSlotName()
Returns aByteBuffer
view of therchSlotName
field.java.lang.String
rchSlotNameString()
Decodes the null-terminated string stored in therchSlotName
field.int
sizeof()
-
-
-
Constructor Detail
-
InputBindingInfo
public InputBindingInfo(java.nio.ByteBuffer container)
Creates aInputBindingInfo
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
rchDevicePathName
public java.nio.ByteBuffer rchDevicePathName()
Returns aByteBuffer
view of therchDevicePathName
field.
-
rchDevicePathNameString
public java.lang.String rchDevicePathNameString()
Decodes the null-terminated string stored in therchDevicePathName
field.
-
rchInputPathName
public java.nio.ByteBuffer rchInputPathName()
Returns aByteBuffer
view of therchInputPathName
field.
-
rchInputPathNameString
public java.lang.String rchInputPathNameString()
Decodes the null-terminated string stored in therchInputPathName
field.
-
rchModeName
public java.nio.ByteBuffer rchModeName()
Returns aByteBuffer
view of therchModeName
field.
-
rchModeNameString
public java.lang.String rchModeNameString()
Decodes the null-terminated string stored in therchModeName
field.
-
rchSlotName
public java.nio.ByteBuffer rchSlotName()
Returns aByteBuffer
view of therchSlotName
field.
-
rchSlotNameString
public java.lang.String rchSlotNameString()
Decodes the null-terminated string stored in therchSlotName
field.
-
malloc
public static InputBindingInfo malloc()
Returns a newInputBindingInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static InputBindingInfo calloc()
Returns a newInputBindingInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static InputBindingInfo create()
Returns a newInputBindingInfo
instance allocated withBufferUtils
.
-
create
public static InputBindingInfo create(long address)
Returns a newInputBindingInfo
instance for the specified memory address.
-
createSafe
@Nullable public static InputBindingInfo createSafe(long address)
-
malloc
public static InputBindingInfo.Buffer malloc(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static InputBindingInfo.Buffer calloc(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static InputBindingInfo.Buffer create(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static InputBindingInfo.Buffer create(long address, int capacity)
Create aInputBindingInfo.Buffer
instance 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 newInputBindingInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static InputBindingInfo callocStack()
Returns a newInputBindingInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static InputBindingInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static InputBindingInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputBindingInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static InputBindingInfo.Buffer callocStack(int capacity)
Returns a newInputBindingInfo.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-