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.NativeResource
Member 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
. IfulRestrictedToDevice
is 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 class
VRActiveActionSet.Buffer
An array ofVRActiveActionSet
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
NPRIORITY
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
ULACTIONSET
ULRESTRICTEDTODEVICE
ULSECONDARYACTIONSETThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VRActiveActionSet(java.nio.ByteBuffer container)
Creates aVRActiveActionSet
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRActiveActionSet
calloc()
Returns a newVRActiveActionSet
instance allocated withmemCalloc
.static VRActiveActionSet.Buffer
calloc(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withmemCalloc
.static VRActiveActionSet
callocStack()
Returns a newVRActiveActionSet
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRActiveActionSet.Buffer
callocStack(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRActiveActionSet.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRActiveActionSet
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRActiveActionSet
create()
Returns a newVRActiveActionSet
instance allocated withBufferUtils
.static VRActiveActionSet.Buffer
create(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withBufferUtils
.static VRActiveActionSet
create(long address)
Returns a newVRActiveActionSet
instance for the specified memory address.static VRActiveActionSet.Buffer
create(long address, int capacity)
Create aVRActiveActionSet.Buffer
instance at the specified memory.static VRActiveActionSet
createSafe(long address)
static VRActiveActionSet.Buffer
createSafe(long address, int capacity)
static VRActiveActionSet
malloc()
Returns a newVRActiveActionSet
instance allocated withmemAlloc
.static VRActiveActionSet.Buffer
malloc(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withmemAlloc
.static VRActiveActionSet
mallocStack()
Returns a newVRActiveActionSet
instance allocated on the thread-localMemoryStack
.static VRActiveActionSet.Buffer
mallocStack(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated on the thread-localMemoryStack
.static VRActiveActionSet.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet.Buffer
instance allocated on the specifiedMemoryStack
.static VRActiveActionSet
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet
instance allocated on the specifiedMemoryStack
.static int
nnPriority(long struct)
Unsafe version ofnPriority()
.static void
nnPriority(long struct, int value)
Unsafe version ofnPriority
.int
nPriority()
Returns the value of thenPriority
field.VRActiveActionSet
nPriority(int value)
Sets the specified value to thenPriority
field.static long
nulActionSet(long struct)
Unsafe version ofulActionSet()
.static void
nulActionSet(long struct, long value)
Unsafe version ofulActionSet
.static long
nulRestrictedToDevice(long struct)
Unsafe version ofulRestrictedToDevice()
.static void
nulRestrictedToDevice(long struct, long value)
Unsafe version ofulRestrictedToDevice
.static long
nulSecondaryActionSet(long struct)
Unsafe version ofulSecondaryActionSet()
.static void
nulSecondaryActionSet(long struct, long value)
Unsafe version ofulSecondaryActionSet
.VRActiveActionSet
set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)
Initializes this struct with the specified values.VRActiveActionSet
set(VRActiveActionSet src)
Copies the specified struct data to this struct.int
sizeof()
long
ulActionSet()
Returns the value of theulActionSet
field.VRActiveActionSet
ulActionSet(long value)
Sets the specified value to theulActionSet
field.long
ulRestrictedToDevice()
Returns the value of theulRestrictedToDevice
field.VRActiveActionSet
ulRestrictedToDevice(long value)
Sets the specified value to theulRestrictedToDevice
field.long
ulSecondaryActionSet()
Returns the value of theulSecondaryActionSet
field.VRActiveActionSet
ulSecondaryActionSet(long value)
Sets the specified value to theulSecondaryActionSet
field.
-
-
-
Constructor Detail
-
VRActiveActionSet
public VRActiveActionSet(java.nio.ByteBuffer container)
Creates aVRActiveActionSet
instance at the current position of the specifiedByteBuffer
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()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
ulActionSet
public long ulActionSet()
Returns the value of theulActionSet
field.
-
ulRestrictedToDevice
public long ulRestrictedToDevice()
Returns the value of theulRestrictedToDevice
field.
-
ulSecondaryActionSet
public long ulSecondaryActionSet()
Returns the value of theulSecondaryActionSet
field.
-
nPriority
public int nPriority()
Returns the value of thenPriority
field.
-
ulActionSet
public VRActiveActionSet ulActionSet(long value)
Sets the specified value to theulActionSet
field.
-
ulRestrictedToDevice
public VRActiveActionSet ulRestrictedToDevice(long value)
Sets the specified value to theulRestrictedToDevice
field.
-
ulSecondaryActionSet
public VRActiveActionSet ulSecondaryActionSet(long value)
Sets the specified value to theulSecondaryActionSet
field.
-
nPriority
public VRActiveActionSet nPriority(int value)
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
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 newVRActiveActionSet
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRActiveActionSet calloc()
Returns a newVRActiveActionSet
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRActiveActionSet create()
Returns a newVRActiveActionSet
instance allocated withBufferUtils
.
-
create
public static VRActiveActionSet create(long address)
Returns a newVRActiveActionSet
instance for the specified memory address.
-
createSafe
@Nullable public static VRActiveActionSet createSafe(long address)
-
malloc
public static VRActiveActionSet.Buffer malloc(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRActiveActionSet.Buffer calloc(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRActiveActionSet.Buffer create(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRActiveActionSet.Buffer create(long address, int capacity)
Create aVRActiveActionSet.Buffer
instance 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 newVRActiveActionSet
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRActiveActionSet callocStack()
Returns a newVRActiveActionSet
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRActiveActionSet mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRActiveActionSet callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRActiveActionSet
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRActiveActionSet.Buffer callocStack(int capacity)
Returns a newVRActiveActionSet.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-