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

public class VREventTouchPadMove extends org.lwjgl.system.Struct<VREventTouchPadMove>
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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • BFINGERDOWN

      public static final int BFINGERDOWN
      The struct member offsets.
    • FLSECONDSFINGERDOWN

      public static final int FLSECONDSFINGERDOWN
      The struct member offsets.
    • FVALUEXFIRST

      public static final int FVALUEXFIRST
      The struct member offsets.
    • FVALUEYFIRST

      public static final int FVALUEYFIRST
      The struct member offsets.
    • FVALUEXRAW

      public static final int FVALUEXRAW
      The struct member offsets.
    • FVALUEYRAW

      public static final int FVALUEYRAW
      The struct member offsets.
  • Constructor Details

    • VREventTouchPadMove

      public VREventTouchPadMove(ByteBuffer container)
      Creates a VREventTouchPadMove instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.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 fValueYFirst field.
    • fValueXRaw

      public float fValueXRaw()
      this is the raw sampled coordinate without deadzoning
    • fValueYRaw

      public float fValueYRaw()
      Returns:
      the value of the fValueYRaw field.
    • create

      public static VREventTouchPadMove create(long address)
      Returns a new VREventTouchPadMove instance for the specified memory address.
    • createSafe

      public static @Nullable VREventTouchPadMove createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VREventTouchPadMove.Buffer create(long address, int capacity)
      Create a VREventTouchPadMove.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VREventTouchPadMove.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nbFingerDown

      public static boolean nbFingerDown(long struct)
      Unsafe version of bFingerDown().
    • nflSecondsFingerDown

      public static float nflSecondsFingerDown(long struct)
      Unsafe version of flSecondsFingerDown().
    • nfValueXFirst

      public static float nfValueXFirst(long struct)
      Unsafe version of fValueXFirst().
    • nfValueYFirst

      public static float nfValueYFirst(long struct)
      Unsafe version of fValueYFirst().
    • nfValueXRaw

      public static float nfValueXRaw(long struct)
      Unsafe version of fValueXRaw().
    • nfValueYRaw

      public static float nfValueYRaw(long struct)
      Unsafe version of fValueYRaw().