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.Struct
Notification 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 class
VREventNotification.Buffer
An array ofVREventNotification
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
NOTIFICATIONID
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
ULUSERVALUE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventNotification(java.nio.ByteBuffer container)
Creates aVREventNotification
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 VREventNotification
create(long address)
Returns a newVREventNotification
instance for the specified memory address.static VREventNotification.Buffer
create(long address, int capacity)
Create aVREventNotification.Buffer
instance at the specified memory.static VREventNotification
createSafe(long address)
static VREventNotification.Buffer
createSafe(long address, int capacity)
static int
nnotificationId(long struct)
Unsafe version ofnotificationId()
.int
notificationId()
Returns the value of thenotificationId
field.static long
nulUserValue(long struct)
Unsafe version ofulUserValue()
.int
sizeof()
long
ulUserValue()
Returns the value of theulUserValue
field.
-
-
-
Constructor Detail
-
VREventNotification
public VREventNotification(java.nio.ByteBuffer container)
Creates aVREventNotification
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
-
ulUserValue
public long ulUserValue()
Returns the value of theulUserValue
field.
-
notificationId
public int notificationId()
Returns the value of thenotificationId
field.
-
create
public static VREventNotification create(long address)
Returns a newVREventNotification
instance 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.Buffer
instance 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()
.
-
-