Package org.lwjgl.openvr
Class VRActiveActionSet
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRActiveActionSet
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRActiveActionSet extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
ulActionSet– this is the handle of the action set to activate for this frameulRestrictedToDevice– 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– the action set to activate for all devices other thanulRestrictedDevice. IfulRestrictedToDeviceis set toVR.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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRActiveActionSet.BufferAn array ofVRActiveActionSetstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNPRIORITYThe struct member offsets.static intSIZEOFThe struct size in bytes.static intULACTIONSET
ULRESTRICTEDTODEVICE
ULSECONDARYACTIONSETThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VRActiveActionSet(java.nio.ByteBuffer container)Creates aVRActiveActionSetinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRActiveActionSetcalloc()Returns a newVRActiveActionSetinstance allocated withmemCalloc.static VRActiveActionSet.Buffercalloc(int capacity)Returns a newVRActiveActionSet.Bufferinstance allocated withmemCalloc.static VRActiveActionSetcallocStack()Returns a newVRActiveActionSetinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRActiveActionSet.BuffercallocStack(int capacity)Returns a newVRActiveActionSet.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRActiveActionSet.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRActiveActionSetcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VRActiveActionSetcreateSafe(long address)static 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 VRActiveActionSetmallocStack()Returns a newVRActiveActionSetinstance allocated on the thread-localMemoryStack.static VRActiveActionSet.BuffermallocStack(int capacity)Returns a newVRActiveActionSet.Bufferinstance allocated on the thread-localMemoryStack.static VRActiveActionSet.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.static VRActiveActionSetmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStack.static intnnPriority(long struct)Unsafe version ofnPriority().static voidnnPriority(long struct, int value)Unsafe version ofnPriority.intnPriority()Returns the value of thenPriorityfield.VRActiveActionSetnPriority(int value)Sets the specified value to thenPriorityfield.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.VRActiveActionSetset(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)Initializes this struct with the specified values.VRActiveActionSetset(VRActiveActionSet src)Copies the specified struct data to this struct.intsizeof()longulActionSet()Returns the value of theulActionSetfield.VRActiveActionSetulActionSet(long value)Sets the specified value to theulActionSetfield.longulRestrictedToDevice()Returns the value of theulRestrictedToDevicefield.VRActiveActionSetulRestrictedToDevice(long value)Sets the specified value to theulRestrictedToDevicefield.longulSecondaryActionSet()Returns the value of theulSecondaryActionSetfield.VRActiveActionSetulSecondaryActionSet(long value)Sets the specified value to theulSecondaryActionSetfield.
-
-
-
Constructor Detail
-
VRActiveActionSet
public VRActiveActionSet(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
ulActionSet
public long ulActionSet()
Returns the value of theulActionSetfield.
-
ulRestrictedToDevice
public long ulRestrictedToDevice()
Returns the value of theulRestrictedToDevicefield.
-
ulSecondaryActionSet
public long ulSecondaryActionSet()
Returns the value of theulSecondaryActionSetfield.
-
nPriority
public int nPriority()
Returns the value of thenPriorityfield.
-
ulActionSet
public VRActiveActionSet ulActionSet(long value)
Sets the specified value to theulActionSetfield.
-
ulRestrictedToDevice
public VRActiveActionSet ulRestrictedToDevice(long value)
Sets the specified value to theulRestrictedToDevicefield.
-
ulSecondaryActionSet
public VRActiveActionSet ulSecondaryActionSet(long value)
Sets the specified value to theulSecondaryActionSetfield.
-
nPriority
public VRActiveActionSet nPriority(int value)
Sets the specified value to thenPriorityfield.
-
set
public VRActiveActionSet set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)
Initializes this struct with the specified values.
-
set
public VRActiveActionSet set(VRActiveActionSet src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRActiveActionSet malloc()
Returns a newVRActiveActionSetinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRActiveActionSet calloc()
Returns a newVRActiveActionSetinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRActiveActionSet create()
Returns a newVRActiveActionSetinstance allocated withBufferUtils.
-
create
public static VRActiveActionSet create(long address)
Returns a newVRActiveActionSetinstance for the specified memory address.
-
createSafe
@Nullable public static VRActiveActionSet createSafe(long address)
-
malloc
public static VRActiveActionSet.Buffer malloc(int capacity)
Returns a newVRActiveActionSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRActiveActionSet.Buffer calloc(int capacity)
Returns a newVRActiveActionSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRActiveActionSet.Buffer create(int capacity)
Returns a newVRActiveActionSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRActiveActionSet.Buffer create(long address, int capacity)
Create aVRActiveActionSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRActiveActionSet.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRActiveActionSet mallocStack()
Returns a newVRActiveActionSetinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRActiveActionSet callocStack()
Returns a newVRActiveActionSetinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRActiveActionSet mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRActiveActionSet callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VRActiveActionSet.Buffer mallocStack(int capacity)
Returns a newVRActiveActionSet.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRActiveActionSet.Buffer callocStack(int capacity)
Returns a newVRActiveActionSet.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRActiveActionSet.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VRActiveActionSet.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-