Class VREventDualAnalog

  • All Implemented Interfaces:
    Pointer

    public class VREventDualAnalog
    extends Struct

    Member documentation

    • x – coordinates are -1..1 analog values
    • y – coordinates are -1..1 analog values
    • transformedX – transformed by the center and radius numbers provided by the overlay
    • transformedY – transformed by the center and radius numbers provided by the overlay

    Layout

    
     struct VREvent_DualAnalog_t {
         float x;
         float y;
         float transformedX;
         float transformedY;
         EDualAnalogWhich which;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • X, Y, TRANSFORMEDX, TRANSFORMEDY, WHICH

        The struct member offsets.
    • Constructor Detail

      • VREventDualAnalog

        public VREventDualAnalog​(java.nio.ByteBuffer container)
        Creates a VREventDualAnalog 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
      • x

        public float x()
        Returns the value of the x field.
      • y

        public float y()
        Returns the value of the y field.
      • transformedX

        public float transformedX()
        Returns the value of the transformedX field.
      • transformedY

        public float transformedY()
        Returns the value of the transformedY field.
      • which

        public int which()
        Returns the value of the which field.
      • createSafe

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

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

        public static float nx​(long struct)
        Unsafe version of x().
      • ny

        public static float ny​(long struct)
        Unsafe version of y().
      • ntransformedX

        public static float ntransformedX​(long struct)
        Unsafe version of transformedX().
      • ntransformedY

        public static float ntransformedY​(long struct)
        Unsafe version of transformedY().
      • nwhich

        public static int nwhich​(long struct)
        Unsafe version of which().