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.StructMember 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 classVREventProperty.BufferAn array ofVREventPropertystructs.
-
Constructor Summary
Constructors Constructor Description VREventProperty(java.nio.ByteBuffer container)Creates aVREventPropertyinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontainer()Returns the value of thecontainerfield.static VREventPropertycreate(long address)Returns a newVREventPropertyinstance for the specified memory address.static VREventProperty.Buffercreate(long address, int capacity)Create aVREventProperty.Bufferinstance at the specified memory.static VREventPropertycreateSafe(long address)static VREventProperty.BuffercreateSafe(long address, int capacity)static longncontainer(long struct)Unsafe version ofcontainer().static intnprop(long struct)Unsafe version ofprop().intprop()Returns the value of thepropfield.intsizeof()
-
-
-
Constructor Detail
-
VREventProperty
public VREventProperty(java.nio.ByteBuffer container)
Creates aVREventPropertyinstance 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
-
container
public long container()
Returns the value of thecontainerfield.
-
prop
public int prop()
Returns the value of thepropfield.
-
create
public static VREventProperty create(long address)
Returns a newVREventPropertyinstance 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.Bufferinstance 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().
-
-