Class InputAnalogActionData

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<InputAnalogActionData>
org.lwjgl.openvr.InputAnalogActionData
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class InputAnalogActionData extends org.lwjgl.system.Struct<InputAnalogActionData> 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 Details

    • SIZEOF

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

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

      public static final int BACTIVE
      The struct member offsets.
    • ACTIVEORIGIN

      public static final int ACTIVEORIGIN
      The struct member offsets.
    • X

      public static final int X
      The struct member offsets.
    • Y

      public static final int Y
      The struct member offsets.
    • Z

      public static final int Z
      The struct member offsets.
    • DELTAX

      public static final int DELTAX
      The struct member offsets.
    • DELTAY

      public static final int DELTAY
      The struct member offsets.
    • DELTAZ

      public static final int DELTAZ
      The struct member offsets.
    • FUPDATETIME

      public static final int FUPDATETIME
      The struct member offsets.
  • Constructor Details

    • InputAnalogActionData

      public InputAnalogActionData(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<InputAnalogActionData>
    • 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

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

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

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

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

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

      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

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

      public static InputAnalogActionData.Buffer malloc(int capacity)
      Returns a new InputAnalogActionData.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static InputAnalogActionData.Buffer calloc(int capacity)
      Returns a new InputAnalogActionData.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static InputAnalogActionData.Buffer create(int capacity)
      Returns a new InputAnalogActionData.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      @Deprecated public static InputAnalogActionData mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static InputAnalogActionData callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static InputAnalogActionData mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static InputAnalogActionData callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static InputAnalogActionData.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static InputAnalogActionData.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static InputAnalogActionData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static InputAnalogActionData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      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().