Class InputAnalogActionData

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

    public class InputAnalogActionData
    extends Struct
    implements NativeResource

    Member documentation

    • bActive – whether or not this action is currently available to be bound in the active action set
    • activeOrigin – the origin that caused this action's current state
    • x – the current state of this action; will be delta updates for mouse actions
    • y – the current state of this action; will be delta updates for mouse actions
    • z – the current state of this action; will be delta updates for mouse actions
    • deltaX – teltas since the previous call to UpdateActionState
    • deltaY – teltas since the previous call to UpdateActionState
    • deltaZ – teltas since the previous call to UpdateActionState
    • fUpdateTime – time relative to now when this event happened. Will be negative to indicate a past time

    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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • bActive

        public boolean bActive()
        Returns the value of the bActive field.
      • activeOrigin

        public long activeOrigin()
        Returns the value of the activeOrigin field.
      • x

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

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

        public float z()
        Returns the value of the z field.
      • deltaX

        public float deltaX()
        Returns the value of the deltaX field.
      • deltaY

        public float deltaY()
        Returns the value of the deltaY field.
      • deltaZ

        public float deltaZ()
        Returns the value of the deltaZ field.
      • fUpdateTime

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

        public static InputAnalogActionData callocStack()
        Returns a new InputAnalogActionData instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static InputAnalogActionData mallocStack​(MemoryStack stack)
        Returns a new InputAnalogActionData instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static InputAnalogActionData callocStack​(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
      • 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().