Package org.lwjgl.openvr
Class VREventScroll
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventScroll>
org.lwjgl.openvr.VREventScroll
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Used for simulated mouse wheel scroll.
Layout
struct VREvent_Scroll_t {
float xdelta();
float ydelta;
uint32_t unused;
float viewportscale();
uint32_t cursorIndex();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVREventScroll(ByteBuffer container) Creates aVREventScrollinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable VREventScrollcreateSafe(long address) static @Nullable VREventScroll.BuffercreateSafe(long address, int capacity) intif from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of which tracked cursor the event is forstatic intncursorIndex(long struct) Unsafe version ofcursorIndex().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()floatfor 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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
XDELTA
public static final int XDELTAThe struct member offsets. -
YDELTA
public static final int YDELTAThe struct member offsets. -
UNUSED
public static final int UNUSEDThe struct member offsets. -
VIEWPORTSCALE
public static final int VIEWPORTSCALEThe struct member offsets. -
CURSORINDEX
public static final int CURSORINDEXThe struct member offsets.
-
-
Constructor Details
-
VREventScroll
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VREventScroll>
-
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] -
cursorIndex
public int cursorIndex()if from an event triggered by cursor input on an overlay that supports multiple cursors, this is the index of which tracked cursor the event is for -
create
Returns a newVREventScrollinstance for the specified memory address. -
createSafe
-
create
Create aVREventScroll.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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(). -
ncursorIndex
public static int ncursorIndex(long struct) Unsafe version ofcursorIndex().
-