Class InputAnalogActionData

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class InputAnalogActionData
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct InputAnalogActionData_t {
         bool bActive();
         VRInputValueHandle_t activeOrigin();
         float x();
         float y();
         float z();
         float deltaX();
         float deltaY();
         float deltaZ();
         float fUpdateTime();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BACTIVE, ACTIVEORIGIN, X, Y, Z, DELTAX, DELTAY, DELTAZ, FUPDATETIME

        The struct member offsets.
    • Constructor Detail

      • InputAnalogActionData

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

        public boolean bActive()
        whether or not this action is currently available to be bound in the active action set
      • activeOrigin

        public long activeOrigin()
        the origin that caused this action's current state
      • x, y, z

        public float x()
        
        public float y()
        
        public float z()
        
        the current state of this action; will be delta updates for mouse actions
      • deltaX, deltaY, deltaZ

        public float deltaX()
        
        public float deltaY()
        
        public float deltaZ()
        
        teltas since the previous call to UpdateActionState
      • fUpdateTime

        public float fUpdateTime()
        time relative to now when this event happened. Will be negative to indicate a past time
      • malloc

        public static InputAnalogActionData malloc()
        Returns a new InputAnalogActionData instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static InputAnalogActionData calloc()
        Returns a new InputAnalogActionData instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static InputAnalogActionData create()
        Returns a new InputAnalogActionData instance allocated with BufferUtils.
      • create

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

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

        public static InputAnalogActionData malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new InputAnalogActionData instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static InputAnalogActionData calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new InputAnalogActionData instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static InputAnalogActionData.Buffer malloc​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new InputAnalogActionData.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static InputAnalogActionData.Buffer calloc​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new InputAnalogActionData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nbActive

        public static boolean nbActive​(long struct)
        Unsafe version of bActive().
      • nactiveOrigin

        public static long nactiveOrigin​(long struct)
        Unsafe version of activeOrigin().
      • nx

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

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

        public static float nz​(long struct)
        Unsafe version of z().
      • ndeltaX

        public static float ndeltaX​(long struct)
        Unsafe version of deltaX().
      • ndeltaY

        public static float ndeltaY​(long struct)
        Unsafe version of deltaY().
      • ndeltaZ

        public static float ndeltaZ​(long struct)
        Unsafe version of deltaZ().
      • nfUpdateTime

        public static float nfUpdateTime​(long struct)
        Unsafe version of fUpdateTime().