Class VREventController

    • Field Detail

      • SIZEOF

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

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

        public static final int BUTTON
        The struct member offsets.
    • Constructor Detail

      • VREventController

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

        public int button()
        Returns the value of the button field.
      • create

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

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

        public static VREventController.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • nbutton

        public static int nbutton​(long struct)
        Unsafe version of button().