Class 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 the VR.VROverlayFlags_SendVRTouchpadEvents flag set.

    Layout

    
     struct VREvent_TouchPadMove_t {
         bool bFingerDown();
         float flSecondsFingerDown();
         float fValueXFirst();
         float fValueYFirst;
         float fValueXRaw();
         float fValueYRaw;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BFINGERDOWN, FLSECONDSFINGERDOWN, FVALUEXFIRST, FVALUEYFIRST, FVALUEXRAW, FVALUEYRAW

        The struct member offsets.
    • Constructor Detail

      • VREventTouchPadMove

        public VREventTouchPadMove​(java.nio.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 Detail

      • sizeof

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

        @Nullable
        public static VREventTouchPadMove createSafe​(long address)
        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().