Class InputDigitalActionData

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

public class InputDigitalActionData extends org.lwjgl.system.Struct<InputDigitalActionData> implements org.lwjgl.system.NativeResource

Layout


 struct InputDigitalActionData_t {
     bool bActive();
     VRInputValueHandle_t activeOrigin();
     bool bState();
     bool bChanged();
     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.
    • BSTATE

      public static final int BSTATE
      The struct member offsets.
    • BCHANGED

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

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

    • InputDigitalActionData

      public InputDigitalActionData(ByteBuffer container)
      Creates a InputDigitalActionData 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<InputDigitalActionData>
    • 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
    • bState

      public boolean bState()
      the current state of this action; will be true if currently pressed
    • bChanged

      public boolean bChanged()
      this is true if the state has changed since the last frame
    • fUpdateTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static InputDigitalActionData.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 InputDigitalActionData.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 InputDigitalActionData malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new InputDigitalActionData instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

      public static InputDigitalActionData.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new InputDigitalActionData.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().
    • nbState

      public static boolean nbState(long struct)
      Unsafe version of bState().
    • nbChanged

      public static boolean nbChanged(long struct)
      Unsafe version of bChanged().
    • nfUpdateTime

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