Package org.lwjgl.openvr
Class VREventTouchPadMove
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventTouchPadMove
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventTouchPadMove extends org.lwjgl.system.Struct
When in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger is on the touchpad (or just released from it). These events are sent to overlays with theVR.VROverlayFlags_SendVRTouchpadEvents
flag set.Member documentation
bFingerDown
– true if the users finger is detected on the touch padflSecondsFingerDown
– how long the finger has been down in secondsfValueXFirst
– these values indicate the starting finger position (so you can do some basic swipe stuff)fValueXRaw
– this is the raw sampled coordinate without deadzoning
Layout
struct VREvent_TouchPadMove_t { bool bFingerDown; float flSecondsFingerDown; float fValueXFirst; float fValueYFirst; float fValueXRaw; float fValueYRaw; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventTouchPadMove.Buffer
An array ofVREventTouchPadMove
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BFINGERDOWN
FLSECONDSFINGERDOWN
FVALUEXFIRST
FVALUEXRAW
FVALUEYFIRST
FVALUEYRAWThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventTouchPadMove(java.nio.ByteBuffer container)
Creates aVREventTouchPadMove
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bFingerDown()
Returns the value of thebFingerDown
field.static VREventTouchPadMove
create(long address)
Returns a newVREventTouchPadMove
instance for the specified memory address.static VREventTouchPadMove.Buffer
create(long address, int capacity)
Create aVREventTouchPadMove.Buffer
instance at the specified memory.static VREventTouchPadMove
createSafe(long address)
static VREventTouchPadMove.Buffer
createSafe(long address, int capacity)
float
flSecondsFingerDown()
Returns the value of theflSecondsFingerDown
field.float
fValueXFirst()
Returns the value of thefValueXFirst
field.float
fValueXRaw()
Returns the value of thefValueXRaw
field.float
fValueYFirst()
Returns the value of thefValueYFirst
field.float
fValueYRaw()
Returns the value of thefValueYRaw
field.static boolean
nbFingerDown(long struct)
Unsafe version ofbFingerDown()
.static float
nflSecondsFingerDown(long struct)
Unsafe version offlSecondsFingerDown()
.static float
nfValueXFirst(long struct)
Unsafe version offValueXFirst()
.static float
nfValueXRaw(long struct)
Unsafe version offValueXRaw()
.static float
nfValueYFirst(long struct)
Unsafe version offValueYFirst()
.static float
nfValueYRaw(long struct)
Unsafe version offValueYRaw()
.int
sizeof()
-
-
-
Constructor Detail
-
VREventTouchPadMove
public VREventTouchPadMove(java.nio.ByteBuffer container)
Creates aVREventTouchPadMove
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
-
bFingerDown
public boolean bFingerDown()
Returns the value of thebFingerDown
field.
-
flSecondsFingerDown
public float flSecondsFingerDown()
Returns the value of theflSecondsFingerDown
field.
-
fValueXFirst
public float fValueXFirst()
Returns the value of thefValueXFirst
field.
-
fValueYFirst
public float fValueYFirst()
Returns the value of thefValueYFirst
field.
-
fValueXRaw
public float fValueXRaw()
Returns the value of thefValueXRaw
field.
-
fValueYRaw
public float fValueYRaw()
Returns the value of thefValueYRaw
field.
-
create
public static VREventTouchPadMove create(long address)
Returns a newVREventTouchPadMove
instance for the specified memory address.
-
createSafe
@Nullable public static VREventTouchPadMove createSafe(long address)
-
create
public static VREventTouchPadMove.Buffer create(long address, int capacity)
Create aVREventTouchPadMove.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventTouchPadMove.Buffer createSafe(long address, int capacity)
-
nbFingerDown
public static boolean nbFingerDown(long struct)
Unsafe version ofbFingerDown()
.
-
nflSecondsFingerDown
public static float nflSecondsFingerDown(long struct)
Unsafe version offlSecondsFingerDown()
.
-
nfValueXFirst
public static float nfValueXFirst(long struct)
Unsafe version offValueXFirst()
.
-
nfValueYFirst
public static float nfValueYFirst(long struct)
Unsafe version offValueYFirst()
.
-
nfValueXRaw
public static float nfValueXRaw(long struct)
Unsafe version offValueXRaw()
.
-
nfValueYRaw
public static float nfValueYRaw(long struct)
Unsafe version offValueYRaw()
.
-
-