Package org.lwjgl.openvr
Class VREventMouse
- All Implemented Interfaces:
Pointer
Used for simulated mouse events in overlay space.
Layout
struct VREvent_Mouse_t {
float x()
;
float y;
uint32_t button()
;
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 size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVREventMouse
(ByteBuffer container) Creates aVREventMouse
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
button()
static VREventMouse
create
(long address) Returns a newVREventMouse
instance for the specified memory address.static VREventMouse.Buffer
create
(long address, int capacity) Create aVREventMouse.Buffer
instance at the specified memory.static VREventMouse
createSafe
(long address) static VREventMouse.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 forstatic int
nbutton
(long struct) Unsafe version ofbutton()
.static int
ncursorIndex
(long struct) Unsafe version ofcursorIndex()
.static float
nx
(long struct) Unsafe version ofx()
.static float
ny
(long struct) Unsafe version ofy()
.int
sizeof()
Returnssizeof(struct)
.float
x()
coords are in GL space, bottom left of the texture is 0,0float
y()
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. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets. -
BUTTON
public static final int BUTTONThe struct member offsets. -
CURSORINDEX
public static final int CURSORINDEXThe struct member offsets.
-
-
Constructor Details
-
VREventMouse
Creates aVREventMouse
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<VREventMouse>
-
x
public float x()coords are in GL space, bottom left of the texture is 0,0 -
y
public float y()- Returns:
- the value of the
y
field.
-
button
public int button() -
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 newVREventMouse
instance for the specified memory address. -
createSafe
-
create
Create aVREventMouse.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nx
public static float nx(long struct) Unsafe version ofx()
. -
ny
public static float ny(long struct) Unsafe version ofy()
. -
nbutton
public static int nbutton(long struct) Unsafe version ofbutton()
. -
ncursorIndex
public static int ncursorIndex(long struct) Unsafe version ofcursorIndex()
.
-