Package org.lwjgl.openvr
Class VREventTouchPadMove
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventTouchPadMove>
org.lwjgl.openvr.VREventTouchPadMove
- All Implemented Interfaces:
org.lwjgl.system.Pointer
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 the
VR.VROverlayFlags_SendVRTouchpadEvents flag set.
Layout
struct VREvent_TouchPadMove_t {
bool bFingerDown();
float flSecondsFingerDown();
float fValueXFirst();
float fValueYFirst;
float fValueXRaw();
float fValueYRaw;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVREventTouchPadMove(ByteBuffer container) Creates aVREventTouchPadMoveinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleantrue 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 @Nullable VREventTouchPadMovecreateSafe(long address) static @Nullable VREventTouchPadMove.BuffercreateSafe(long address, int capacity) floathow long the finger has been down in secondsfloatthese values indicate the starting finger position (so you can do some basic swipe stuff)floatthis is the raw sampled coordinate without deadzoningfloatfloatstatic 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()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. -
BFINGERDOWN
public static final int BFINGERDOWNThe struct member offsets. -
FLSECONDSFINGERDOWN
public static final int FLSECONDSFINGERDOWNThe struct member offsets. -
FVALUEXFIRST
public static final int FVALUEXFIRSTThe struct member offsets. -
FVALUEYFIRST
public static final int FVALUEYFIRSTThe struct member offsets. -
FVALUEXRAW
public static final int FVALUEXRAWThe struct member offsets. -
FVALUEYRAW
public static final int FVALUEYRAWThe struct member offsets.
-
-
Constructor Details
-
VREventTouchPadMove
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VREventTouchPadMove>
-
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
Returns a newVREventTouchPadMoveinstance for the specified memory address. -
createSafe
-
create
Create aVREventTouchPadMove.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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().
-