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.StructWhen 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_SendVRTouchpadEventsflag set.Layout
struct VREvent_TouchPadMove_t { boolbFingerDown(); floatflSecondsFingerDown(); floatfValueXFirst(); float fValueYFirst; floatfValueXRaw(); float fValueYRaw; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventTouchPadMove.BufferAn array ofVREventTouchPadMovestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBFINGERDOWN
FLSECONDSFINGERDOWN
FVALUEXFIRST
FVALUEXRAW
FVALUEYFIRST
FVALUEYRAWThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventTouchPadMove(java.nio.ByteBuffer container)Creates aVREventTouchPadMoveinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbFingerDown()true if the users finger is detected on the touch padstatic VREventTouchPadMovecreate(long address)Returns a newVREventTouchPadMoveinstance for the specified memory address.static VREventTouchPadMove.Buffercreate(long address, int capacity)Create aVREventTouchPadMove.Bufferinstance at the specified memory.static VREventTouchPadMovecreateSafe(long address)static VREventTouchPadMove.BuffercreateSafe(long address, int capacity)floatflSecondsFingerDown()how long the finger has been down in secondsfloatfValueXFirst()these values indicate the starting finger position (so you can do some basic swipe stuff)floatfValueXRaw()this is the raw sampled coordinate without deadzoningfloatfValueYFirst()floatfValueYRaw()static booleannbFingerDown(long struct)Unsafe version ofbFingerDown().static floatnflSecondsFingerDown(long struct)Unsafe version offlSecondsFingerDown().static floatnfValueXFirst(long struct)Unsafe version offValueXFirst().static floatnfValueXRaw(long struct)Unsafe version offValueXRaw().static floatnfValueYFirst(long struct)Unsafe version offValueYFirst().static floatnfValueYRaw(long struct)Unsafe version offValueYRaw().intsizeof()
-
-
-
Constructor Detail
-
VREventTouchPadMove
public VREventTouchPadMove(java.nio.ByteBuffer container)
Creates aVREventTouchPadMoveinstance 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
-
bFingerDown
public boolean bFingerDown()
true if the users finger is detected on the touch pad
-
flSecondsFingerDown
public float flSecondsFingerDown()
how long the finger has been down in seconds
-
fValueXFirst
public float fValueXFirst()
these values indicate the starting finger position (so you can do some basic swipe stuff)
-
fValueYFirst
public float fValueYFirst()
- Returns:
- the value of the
fValueYFirstfield.
-
fValueXRaw
public float fValueXRaw()
this is the raw sampled coordinate without deadzoning
-
fValueYRaw
public float fValueYRaw()
- Returns:
- the value of the
fValueYRawfield.
-
create
public static VREventTouchPadMove create(long address)
Returns a newVREventTouchPadMoveinstance 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.Bufferinstance 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().
-
-