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.Struct
Used 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 class
VREventScroll.Buffer
An array ofVREventScroll
structs.
-
Constructor Summary
Constructors Constructor Description VREventScroll(java.nio.ByteBuffer container)
Creates aVREventScroll
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventScroll
create(long address)
Returns a newVREventScroll
instance for the specified memory address.static VREventScroll.Buffer
create(long address, int capacity)
Create aVREventScroll.Buffer
instance at the specified memory.static VREventScroll
createSafe(long address)
static VREventScroll.Buffer
createSafe(long address, int capacity)
static int
nunused(long struct)
Unsafe version ofunused()
.static float
nviewportscale(long struct)
Unsafe version ofviewportscale()
.static float
nxdelta(long struct)
Unsafe version ofxdelta()
.static float
nydelta(long struct)
Unsafe version ofydelta()
.int
sizeof()
int
unused()
Returns the value of theunused
field.float
viewportscale()
Returns the value of theviewportscale
field.float
xdelta()
Returns the value of thexdelta
field.float
ydelta()
Returns the value of theydelta
field.
-
-
-
Constructor Detail
-
VREventScroll
public VREventScroll(java.nio.ByteBuffer container)
Creates aVREventScroll
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
xdelta
public float xdelta()
Returns the value of thexdelta
field.
-
ydelta
public float ydelta()
Returns the value of theydelta
field.
-
unused
public int unused()
Returns the value of theunused
field.
-
viewportscale
public float viewportscale()
Returns the value of theviewportscale
field.
-
create
public static VREventScroll create(long address)
Returns a newVREventScroll
instance 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.Buffer
instance 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()
.
-
-