Package org.lwjgl.openvr
Class VREventScroll
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventScroll
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventScroll extends org.lwjgl.system.StructUsed for simulated mouse wheel scroll.Member documentation
xdelta– movement in fraction of the pad traversed since last delta, 1.0 for a full swipeviewportscale– for scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height. Range:[0,1]
Layout
struct VREvent_Scroll_t { float xdelta; float ydelta; uint32_t unused; float viewportscale; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventScroll.BufferAn array ofVREventScrollstructs.
-
Constructor Summary
Constructors Constructor Description VREventScroll(java.nio.ByteBuffer container)Creates aVREventScrollinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventScrollcreate(long address)Returns a newVREventScrollinstance for the specified memory address.static VREventScroll.Buffercreate(long address, int capacity)Create aVREventScroll.Bufferinstance at the specified memory.static VREventScrollcreateSafe(long address)static VREventScroll.BuffercreateSafe(long address, int capacity)static intnunused(long struct)Unsafe version ofunused().static floatnviewportscale(long struct)Unsafe version ofviewportscale().static floatnxdelta(long struct)Unsafe version ofxdelta().static floatnydelta(long struct)Unsafe version ofydelta().intsizeof()intunused()Returns the value of theunusedfield.floatviewportscale()Returns the value of theviewportscalefield.floatxdelta()Returns the value of thexdeltafield.floatydelta()Returns the value of theydeltafield.
-
-
-
Constructor Detail
-
VREventScroll
public VREventScroll(java.nio.ByteBuffer container)
Creates aVREventScrollinstance 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
-
xdelta
public float xdelta()
Returns the value of thexdeltafield.
-
ydelta
public float ydelta()
Returns the value of theydeltafield.
-
unused
public int unused()
Returns the value of theunusedfield.
-
viewportscale
public float viewportscale()
Returns the value of theviewportscalefield.
-
create
public static VREventScroll create(long address)
Returns a newVREventScrollinstance for the specified memory address.
-
createSafe
@Nullable public static VREventScroll createSafe(long address)
-
create
public static VREventScroll.Buffer create(long address, int capacity)
Create aVREventScroll.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventScroll.Buffer createSafe(long address, int capacity)
-
nxdelta
public static float nxdelta(long struct)
Unsafe version ofxdelta().
-
nydelta
public static float nydelta(long struct)
Unsafe version ofydelta().
-
nunused
public static int nunused(long struct)
Unsafe version ofunused().
-
nviewportscale
public static float nviewportscale(long struct)
Unsafe version ofviewportscale().
-
-