Class VRActiveActionSet

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

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

Layout


 struct VRActiveActionSet_t {
     VRActionSetHandle_t ulActionSet();
     VRInputValueHandle_t ulRestrictedToDevice();
     VRActionSetHandle_t ulSecondaryActionSet();
     char[4];
     int32_t nPriority();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ULACTIONSET
      The struct member offsets.
    • ULRESTRICTEDTODEVICE

      public static final int ULRESTRICTEDTODEVICE
      The struct member offsets.
    • ULSECONDARYACTIONSET

      public static final int ULSECONDARYACTIONSET
      The struct member offsets.
    • NPRIORITY

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

    • VRActiveActionSet

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

      public long ulActionSet()
      this is the handle of the action set to activate for this frame
    • ulRestrictedToDevice

      public long ulRestrictedToDevice()
      this is the handle of a device path that this action set should be active for. To activate for all devices, set this to VR.k_ulInvalidInputValueHandle.
    • ulSecondaryActionSet

      public long ulSecondaryActionSet()
      the action set to activate for all devices other than ulRestrictedDevice. If ulRestrictedToDevice is set to VR.k_ulInvalidInputValueHandle, this parameter is ignored.
    • nPriority

      public int nPriority()
      the priority of this action set relative to other action sets. Any inputs bound to a source (e.g. trackpad, joystick, trigger) will disable bindings in other active action sets with a smaller priority.

      Overlay applications (i.e. ApplicationType_Overlay) may set their action set priority to a value between VR.k_nActionSetOverlayGlobalPriorityMin and VR.k_nActionSetOverlayGlobalPriorityMax to cause any inputs bound to a source used by that action set to be disabled in scene applications.

      No action set priority may value may be larger than VR.k_nActionSetPriorityReservedMin.

    • ulActionSet

      public VRActiveActionSet ulActionSet(long value)
      Sets the specified value to the ulActionSet() field.
    • ulRestrictedToDevice

      public VRActiveActionSet ulRestrictedToDevice(long value)
      Sets the specified value to the ulRestrictedToDevice() field.
    • ulSecondaryActionSet

      public VRActiveActionSet ulSecondaryActionSet(long value)
      Sets the specified value to the ulSecondaryActionSet() field.
    • nPriority

      public VRActiveActionSet nPriority(int value)
      Sets the specified value to the nPriority() field.
    • set

      public VRActiveActionSet set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nulActionSet(long struct)
      Unsafe version of ulActionSet().
    • nulRestrictedToDevice

      public static long nulRestrictedToDevice(long struct)
      Unsafe version of ulRestrictedToDevice().
    • nulSecondaryActionSet

      public static long nulSecondaryActionSet(long struct)
      Unsafe version of ulSecondaryActionSet().
    • nnPriority

      public static int nnPriority(long struct)
      Unsafe version of nPriority().
    • nulActionSet

      public static void nulActionSet(long struct, long value)
      Unsafe version of ulActionSet.
    • nulRestrictedToDevice

      public static void nulRestrictedToDevice(long struct, long value)
      Unsafe version of ulRestrictedToDevice.
    • nulSecondaryActionSet

      public static void nulSecondaryActionSet(long struct, long value)
      Unsafe version of ulSecondaryActionSet.
    • nnPriority

      public static void nnPriority(long struct, int value)
      Unsafe version of nPriority.