Package org.lwjgl.openvr
Class VREventProperty
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventProperty
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventProperty extends org.lwjgl.system.Struct
Member documentation
prop
– one of:
Layout
struct VREvent_Property_t { PropertyContainerHandle_t container; ETrackedDeviceProperty prop; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventProperty.Buffer
An array ofVREventProperty
structs.
-
Constructor Summary
Constructors Constructor Description VREventProperty(java.nio.ByteBuffer container)
Creates aVREventProperty
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
container()
Returns the value of thecontainer
field.static VREventProperty
create(long address)
Returns a newVREventProperty
instance for the specified memory address.static VREventProperty.Buffer
create(long address, int capacity)
Create aVREventProperty.Buffer
instance at the specified memory.static VREventProperty
createSafe(long address)
static VREventProperty.Buffer
createSafe(long address, int capacity)
static long
ncontainer(long struct)
Unsafe version ofcontainer()
.static int
nprop(long struct)
Unsafe version ofprop()
.int
prop()
Returns the value of theprop
field.int
sizeof()
-
-
-
Constructor Detail
-
VREventProperty
public VREventProperty(java.nio.ByteBuffer container)
Creates aVREventProperty
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
-
container
public long container()
Returns the value of thecontainer
field.
-
prop
public int prop()
Returns the value of theprop
field.
-
create
public static VREventProperty create(long address)
Returns a newVREventProperty
instance for the specified memory address.
-
createSafe
@Nullable public static VREventProperty createSafe(long address)
-
create
public static VREventProperty.Buffer create(long address, int capacity)
Create aVREventProperty.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventProperty.Buffer createSafe(long address, int capacity)
-
ncontainer
public static long ncontainer(long struct)
Unsafe version ofcontainer()
.
-
nprop
public static int nprop(long struct)
Unsafe version ofprop()
.
-
-