Class VRActiveActionSet

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

    public class VRActiveActionSet
    extends Struct
    implements NativeResource

    Member documentation

    • ulActionSet – this is the handle of the action set to activate for this frame
    • 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 – the action set to activate for all devices other than ulRestrictedDevice. If ulRestrictedToDevice is set to VR.k_ulInvalidInputValueHandle, this parameter is ignored.
    • 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.

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ULACTIONSET, ULRESTRICTEDTODEVICE, ULSECONDARYACTIONSET, NPRIORITY

        The struct member offsets.
    • Constructor Detail

      • VRActiveActionSet

        public VRActiveActionSet​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • ulActionSet

        public long ulActionSet()
        Returns the value of the ulActionSet field.
      • ulRestrictedToDevice

        public long ulRestrictedToDevice()
        Returns the value of the ulRestrictedToDevice field.
      • ulSecondaryActionSet

        public long ulSecondaryActionSet()
        Returns the value of the ulSecondaryActionSet field.
      • nPriority

        public int nPriority()
        Returns the value of the nPriority field.
      • 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.
      • 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​(long address)
        Returns a new VRActiveActionSet instance for the specified memory address.
      • createSafe

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

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

        public static VRActiveActionSet mallocStack()
        Returns a new VRActiveActionSet instance allocated on the thread-local MemoryStack.
      • callocStack

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

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

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