Class VREventTouchPadMove

  • All Implemented Interfaces:
    Pointer

    public class VREventTouchPadMove
    extends 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.

    Member documentation

    • bFingerDown – true if the users finger is detected on the touch pad
    • flSecondsFingerDown – how long the finger has been down in seconds
    • fValueXFirst – 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;
     }
    • 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • bFingerDown

        public boolean bFingerDown()
        Returns the value of the bFingerDown field.
      • flSecondsFingerDown

        public float flSecondsFingerDown()
        Returns the value of the flSecondsFingerDown field.
      • fValueXFirst

        public float fValueXFirst()
        Returns the value of the fValueXFirst field.
      • fValueYFirst

        public float fValueYFirst()
        Returns the value of the fValueYFirst field.
      • fValueXRaw

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

        public float fValueYRaw()
        Returns the value of the fValueYRaw field.
      • 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().