Package org.lwjgl.openvr
Class VREventMouse
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventMouse
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventMouse extends org.lwjgl.system.StructUsed for simulated mouse events in overlay space.Member documentation
x– coords are in GL space, bottom left of the texture is 0,0button– one of:VR.EVRMouseButton_VRMouseButton_LeftVR.EVRMouseButton_VRMouseButton_RightVR.EVRMouseButton_VRMouseButton_Middle
Layout
struct VREvent_Mouse_t { float x; float y; uint32_t button; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventMouse.BufferAn array ofVREventMousestructs.
-
Constructor Summary
Constructors Constructor Description VREventMouse(java.nio.ByteBuffer container)Creates aVREventMouseinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbutton()Returns the value of thebuttonfield.static VREventMousecreate(long address)Returns a newVREventMouseinstance for the specified memory address.static VREventMouse.Buffercreate(long address, int capacity)Create aVREventMouse.Bufferinstance at the specified memory.static VREventMousecreateSafe(long address)static VREventMouse.BuffercreateSafe(long address, int capacity)static intnbutton(long struct)Unsafe version ofbutton().static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().intsizeof()floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.
-
-
-
Constructor Detail
-
VREventMouse
public VREventMouse(java.nio.ByteBuffer container)
Creates aVREventMouseinstance 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
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
button
public int button()
Returns the value of thebuttonfield.
-
create
public static VREventMouse create(long address)
Returns a newVREventMouseinstance for the specified memory address.
-
createSafe
@Nullable public static VREventMouse createSafe(long address)
-
create
public static VREventMouse.Buffer create(long address, int capacity)
Create aVREventMouse.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventMouse.Buffer createSafe(long address, int capacity)
-
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().
-
-