Package org.lwjgl.openvr
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();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRActiveActionSet(ByteBuffer container) Creates aVRActiveActionSetinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRActiveActionSetcalloc()Returns a newVRActiveActionSetinstance allocated withmemCalloc.static VRActiveActionSet.Buffercalloc(int capacity) Returns a newVRActiveActionSet.Bufferinstance allocated withmemCalloc.static VRActiveActionSet.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRActiveActionSetcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRActiveActionSetDeprecated.static VRActiveActionSet.BuffercallocStack(int capacity) Deprecated.static VRActiveActionSet.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRActiveActionSetcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VRActiveActionSetcreate()Returns a newVRActiveActionSetinstance allocated withBufferUtils.static VRActiveActionSet.Buffercreate(int capacity) Returns a newVRActiveActionSet.Bufferinstance allocated withBufferUtils.static VRActiveActionSetcreate(long address) Returns a newVRActiveActionSetinstance for the specified memory address.static VRActiveActionSet.Buffercreate(long address, int capacity) Create aVRActiveActionSet.Bufferinstance at the specified memory.static @Nullable VRActiveActionSetcreateSafe(long address) static @Nullable VRActiveActionSet.BuffercreateSafe(long address, int capacity) static VRActiveActionSetmalloc()Returns a newVRActiveActionSetinstance allocated withmemAlloc.static VRActiveActionSet.Buffermalloc(int capacity) Returns a newVRActiveActionSet.Bufferinstance allocated withmemAlloc.static VRActiveActionSet.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.static VRActiveActionSetmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStack.static VRActiveActionSetDeprecated.static VRActiveActionSet.BuffermallocStack(int capacity) Deprecated.static VRActiveActionSet.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRActiveActionSetmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnnPriority(long struct) Unsafe version ofnPriority().static voidnnPriority(long struct, int value) Unsafe version ofnPriority.intthe priority of this action set relative to other action sets.nPriority(int value) Sets the specified value to thenPriority()field.static longnulActionSet(long struct) Unsafe version ofulActionSet().static voidnulActionSet(long struct, long value) Unsafe version ofulActionSet.static longnulRestrictedToDevice(long struct) Unsafe version ofulRestrictedToDevice().static voidnulRestrictedToDevice(long struct, long value) Unsafe version ofulRestrictedToDevice.static longnulSecondaryActionSet(long struct) Unsafe version ofulSecondaryActionSet().static voidnulSecondaryActionSet(long struct, long value) Unsafe version ofulSecondaryActionSet.set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority) Initializes this struct with the specified values.set(VRActiveActionSet src) Copies the specified struct data to this struct.intsizeof()longthis is the handle of the action set to activate for this frameulActionSet(long value) Sets the specified value to theulActionSet()field.longthis is the handle of a device path that this action set should be active for.ulRestrictedToDevice(long value) Sets the specified value to theulRestrictedToDevice()field.longthe action set to activate for all devices other thanulRestrictedDevice.ulSecondaryActionSet(long value) Sets the specified value to theulSecondaryActionSet()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ULACTIONSET
public static final int ULACTIONSETThe struct member offsets. -
ULRESTRICTEDTODEVICE
public static final int ULRESTRICTEDTODEVICEThe struct member offsets. -
ULSECONDARYACTIONSET
public static final int ULSECONDARYACTIONSETThe struct member offsets. -
NPRIORITY
public static final int NPRIORITYThe struct member offsets.
-
-
Constructor Details
-
VRActiveActionSet
Creates aVRActiveActionSetinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.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 toVR.k_ulInvalidInputValueHandle. -
ulSecondaryActionSet
public long ulSecondaryActionSet()the action set to activate for all devices other thanulRestrictedDevice. IfulRestrictedToDeviceis set toVR.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_nActionSetOverlayGlobalPriorityMinandVR.k_nActionSetOverlayGlobalPriorityMaxto 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
Sets the specified value to theulActionSet()field. -
ulRestrictedToDevice
Sets the specified value to theulRestrictedToDevice()field. -
ulSecondaryActionSet
Sets the specified value to theulSecondaryActionSet()field. -
nPriority
Sets the specified value to thenPriority()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
Returns a newVRActiveActionSetinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRActiveActionSetinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRActiveActionSetinstance allocated withBufferUtils. -
create
Returns a newVRActiveActionSetinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRActiveActionSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRActiveActionSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRActiveActionSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRActiveActionSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nulActionSet
public static long nulActionSet(long struct) Unsafe version ofulActionSet(). -
nulRestrictedToDevice
public static long nulRestrictedToDevice(long struct) Unsafe version ofulRestrictedToDevice(). -
nulSecondaryActionSet
public static long nulSecondaryActionSet(long struct) Unsafe version ofulSecondaryActionSet(). -
nnPriority
public static int nnPriority(long struct) Unsafe version ofnPriority(). -
nulActionSet
public static void nulActionSet(long struct, long value) Unsafe version ofulActionSet. -
nulRestrictedToDevice
public static void nulRestrictedToDevice(long struct, long value) Unsafe version ofulRestrictedToDevice. -
nulSecondaryActionSet
public static void nulSecondaryActionSet(long struct, long value) Unsafe version ofulSecondaryActionSet. -
nnPriority
public static void nnPriority(long struct, int value) Unsafe version ofnPriority.
-