Package org.lwjgl.openvr
Class VREventNotification
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventNotification
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventNotification extends org.lwjgl.system.StructNotification related events. Details will still change at this point.Layout
struct VREvent_Notification_t { uint64_t ulUserValue; uint32_t notificationId; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventNotification.BufferAn array ofVREventNotificationstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNOTIFICATIONIDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intULUSERVALUEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventNotification(java.nio.ByteBuffer container)Creates aVREventNotificationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventNotificationcreate(long address)Returns a newVREventNotificationinstance for the specified memory address.static VREventNotification.Buffercreate(long address, int capacity)Create aVREventNotification.Bufferinstance at the specified memory.static VREventNotificationcreateSafe(long address)static VREventNotification.BuffercreateSafe(long address, int capacity)static intnnotificationId(long struct)Unsafe version ofnotificationId().intnotificationId()Returns the value of thenotificationIdfield.static longnulUserValue(long struct)Unsafe version ofulUserValue().intsizeof()longulUserValue()Returns the value of theulUserValuefield.
-
-
-
Constructor Detail
-
VREventNotification
public VREventNotification(java.nio.ByteBuffer container)
Creates aVREventNotificationinstance 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
-
ulUserValue
public long ulUserValue()
Returns the value of theulUserValuefield.
-
notificationId
public int notificationId()
Returns the value of thenotificationIdfield.
-
create
public static VREventNotification create(long address)
Returns a newVREventNotificationinstance for the specified memory address.
-
createSafe
@Nullable public static VREventNotification createSafe(long address)
-
create
public static VREventNotification.Buffer create(long address, int capacity)
Create aVREventNotification.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventNotification.Buffer createSafe(long address, int capacity)
-
nulUserValue
public static long nulUserValue(long struct)
Unsafe version ofulUserValue().
-
nnotificationId
public static int nnotificationId(long struct)
Unsafe version ofnotificationId().
-
-