Package org.lwjgl.openvr
Class VREventOverlay
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventOverlay>
org.lwjgl.openvr.VREventOverlay
- All Implemented Interfaces:
org.lwjgl.system.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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVREventOverlay(ByteBuffer container) Creates aVREventOverlayinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VREventOverlaycreate(long address) Returns a newVREventOverlayinstance for the specified memory address.static VREventOverlay.Buffercreate(long address, int capacity) Create aVREventOverlay.Bufferinstance at the specified memory.static @Nullable VREventOverlaycreateSafe(long address) static @Nullable VREventOverlay.BuffercreateSafe(long address, int capacity) intif 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 forlonglongstatic intncursorIndex(long struct) Unsafe version ofcursorIndex().static longndevicePath(long struct) Unsafe version ofdevicePath().static longnmemoryBlockId(long struct) Unsafe version ofmemoryBlockId().static longnoverlayHandle(long struct) Unsafe version ofoverlayHandle().longintsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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 aVREventOverlayinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VREventOverlay>
-
overlayHandle
public long overlayHandle() -
devicePath
public long devicePath()- Returns:
- the value of the
devicePathfield.
-
memoryBlockId
public long memoryBlockId()- Returns:
- the value of the
memoryBlockIdfield.
-
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 newVREventOverlayinstance for the specified memory address. -
createSafe
-
create
Create aVREventOverlay.Bufferinstance 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().
-