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.Struct
-
-
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()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()coords are in GL space, bottom left of the texture is 0,0floaty()
-
-
-
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()
coords are in GL space, bottom left of the texture is 0,0
-
y
public float y()
- Returns:
- the value of the
yfield.
-
button
public int button()
-
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().
-
-