Package org.lwjgl.openvr
Class VREventOverlay
- All Implemented Interfaces:
Pointer
Used for a few events about overlays.
Layout
struct VREvent_Overlay_t {
uint64_t overlayHandle()
;
uint64_t devicePath;
uint64_t memoryBlockId;
uint32_t cursorIndex()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVREventOverlay
(ByteBuffer container) Creates aVREventOverlay
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VREventOverlay
create
(long address) Returns a newVREventOverlay
instance for the specified memory address.static VREventOverlay.Buffer
create
(long address, int capacity) Create aVREventOverlay.Buffer
instance at the specified memory.static VREventOverlay
createSafe
(long address) static VREventOverlay.Buffer
createSafe
(long address, int capacity) int
if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of which tracked cursor the event is forlong
long
static int
ncursorIndex
(long struct) Unsafe version ofcursorIndex()
.static long
ndevicePath
(long struct) Unsafe version ofdevicePath()
.static long
nmemoryBlockId
(long struct) Unsafe version ofmemoryBlockId()
.static long
noverlayHandle
(long struct) Unsafe version ofoverlayHandle()
.long
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
OVERLAYHANDLE
public static final int OVERLAYHANDLEThe struct member offsets. -
DEVICEPATH
public static final int DEVICEPATHThe struct member offsets. -
MEMORYBLOCKID
public static final int MEMORYBLOCKIDThe struct member offsets. -
CURSORINDEX
public static final int CURSORINDEXThe struct member offsets.
-
-
Constructor Details
-
VREventOverlay
Creates aVREventOverlay
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VREventOverlay>
-
overlayHandle
public long overlayHandle() -
devicePath
public long devicePath()- Returns:
- the value of the
devicePath
field.
-
memoryBlockId
public long memoryBlockId()- Returns:
- the value of the
memoryBlockId
field.
-
cursorIndex
public int cursorIndex()if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of which tracked cursor the event is for -
create
Returns a newVREventOverlay
instance for the specified memory address. -
createSafe
-
create
Create aVREventOverlay.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
noverlayHandle
public static long noverlayHandle(long struct) Unsafe version ofoverlayHandle()
. -
ndevicePath
public static long ndevicePath(long struct) Unsafe version ofdevicePath()
. -
nmemoryBlockId
public static long nmemoryBlockId(long struct) Unsafe version ofmemoryBlockId()
. -
ncursorIndex
public static int ncursorIndex(long struct) Unsafe version ofcursorIndex()
.
-