Class VREventScroll

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class VREventScroll
    extends org.lwjgl.system.Struct
    Used for simulated mouse wheel scroll.

    Member documentation

    • xdelta – movement in fraction of the pad traversed since last delta, 1.0 for a full swipe
    • viewportscale – for scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height. Range: [0,1]

    Layout

    
     struct VREvent_Scroll_t {
         float xdelta;
         float ydelta;
         uint32_t unused;
         float viewportscale;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VREventScroll.Buffer
      An array of VREventScroll structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int SIZEOF
      The struct size in bytes.
      static int UNUSED
      VIEWPORTSCALE
      XDELTA
      YDELTA
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      VREventScroll​(java.nio.ByteBuffer container)
      Creates a VREventScroll instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • XDELTA, YDELTA, UNUSED, VIEWPORTSCALE

        The struct member offsets.
    • Constructor Detail

      • VREventScroll

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

        public float xdelta()
        Returns the value of the xdelta field.
      • ydelta

        public float ydelta()
        Returns the value of the ydelta field.
      • unused

        public int unused()
        Returns the value of the unused field.
      • viewportscale

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

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

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

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

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

        public static float nxdelta​(long struct)
        Unsafe version of xdelta().
      • nydelta

        public static float nydelta​(long struct)
        Unsafe version of ydelta().
      • nunused

        public static int nunused​(long struct)
        Unsafe version of unused().
      • nviewportscale

        public static float nviewportscale​(long struct)
        Unsafe version of viewportscale().