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.Layout
struct VREvent_Scroll_t { floatxdelta(); float ydelta; uint32_t unused; floatviewportscale(); }
-
-
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()floatviewportscale()for scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height.floatxdelta()movement in fraction of the pad traversed since last delta, 1.0 for a full swipefloatydelta()
-
-
-
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()
movement in fraction of the pad traversed since last delta, 1.0 for a full swipe
-
ydelta
public float ydelta()
- Returns:
- the value of the
ydeltafield.
-
unused
public int unused()
- Returns:
- the value of the
unusedfield.
-
viewportscale
public float viewportscale()
for scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height. Range:[0,1]
-
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().
-
-