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.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 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()Returns the value of thebFingerDownfield.static 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()Returns the value of theflSecondsFingerDownfield.floatfValueXFirst()Returns the value of thefValueXFirstfield.floatfValueXRaw()Returns the value of thefValueXRawfield.floatfValueYFirst()Returns the value of thefValueYFirstfield.floatfValueYRaw()Returns the value of thefValueYRawfield.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()
Returns the value of thebFingerDownfield.
-
flSecondsFingerDown
public float flSecondsFingerDown()
Returns the value of theflSecondsFingerDownfield.
-
fValueXFirst
public float fValueXFirst()
Returns the value of thefValueXFirstfield.
-
fValueYFirst
public float fValueYFirst()
Returns the value of thefValueYFirstfield.
-
fValueXRaw
public float fValueXRaw()
Returns the value of thefValueXRawfield.
-
fValueYRaw
public float fValueYRaw()
Returns the value of thefValueYRawfield.
-
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().
-
-