Top Description Inners Fields Constructors Methods
org.lwjgl.openvr

public Class VRActiveActionSet

extends Struct<VRActiveActionSet>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct VRActiveActionSet_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
NPRIORITY

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
ULACTIONSET

The struct member offsets.

public static final int
ULRESTRICTEDTODEVICE

The struct member offsets.

public static final int
ULSECONDARYACTIONSET

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VRActiveActionSet(long address, ByteBuffer container)

public
VRActiveActionSet(ByteBuffer container)

Creates a VRActiveActionSet instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VRActiveActionSet
calloc()

Returns a new VRActiveActionSet instance allocated with memCalloc.

public static VRActiveActionSet.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VRActiveActionSet.Buffer instance allocated with memCalloc.

public static VRActiveActionSet
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VRActiveActionSet instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VRActiveActionSet.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VRActiveActionSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VRActiveActionSet
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VRActiveActionSet
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VRActiveActionSet
create()

Returns a new VRActiveActionSet instance allocated with BufferUtils.

public static VRActiveActionSet
create(long address)

Returns a new VRActiveActionSet instance for the specified memory address.

public static VRActiveActionSet.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VRActiveActionSet.Buffer instance allocated with BufferUtils.

public static VRActiveActionSet.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VRActiveActionSet.Buffer instance at the specified memory.

public static VRActiveActionSet
createSafe(long address)

Like create, but returns null if address is NULL.

public static VRActiveActionSet.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VRActiveActionSet
malloc()

Returns a new VRActiveActionSet instance allocated with memAlloc.

public static VRActiveActionSet.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VRActiveActionSet.Buffer instance allocated with memAlloc.

public static VRActiveActionSet
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VRActiveActionSet instance allocated on the specified MemoryStack.

public static VRActiveActionSet.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VRActiveActionSet.Buffer instance allocated on the specified MemoryStack.

public static VRActiveActionSet
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VRActiveActionSet.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nnPriority(long struct)

Unsafe version of nPriority.

public static void
nnPriority(long struct, int value)

Unsafe version of nPriority.

public int
nPriority()

the priority of this action set relative to other action sets.

public VRActiveActionSet
nPriority(int value)

Sets the specified value to the nPriority field.

public static long
nulActionSet(long struct)

Unsafe version of ulActionSet.

public static void
nulActionSet(long struct, long value)

Unsafe version of ulActionSet.

public static long
nulRestrictedToDevice(long struct)

Unsafe version of ulRestrictedToDevice.

public static void
nulRestrictedToDevice(long struct, long value)

Unsafe version of ulRestrictedToDevice.

public static long
nulSecondaryActionSet(long struct)

Unsafe version of ulSecondaryActionSet.

public static void
nulSecondaryActionSet(long struct, long value)

Unsafe version of ulSecondaryActionSet.

public VRActiveActionSet
set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)

Initializes this struct with the specified values.

public VRActiveActionSet

Returns:

this struct
set
(VRActiveActionSet
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
ulActionSet()

this is the handle of the action set to activate for this frame

public VRActiveActionSet
ulActionSet(long value)

Sets the specified value to the ulActionSet field.

public long
ulRestrictedToDevice()

this is the handle of a device path that this action set should be active for.

public VRActiveActionSet
ulRestrictedToDevice(long value)

Sets the specified value to the ulRestrictedToDevice field.

public long
ulSecondaryActionSet()

the action set to activate for all devices other than ulRestrictedDevice.

public VRActiveActionSet
ulSecondaryActionSet(long value)

Sets the specified value to the ulSecondaryActionSet field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

NPRIORITYback to summary
public static final int NPRIORITY

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

ULACTIONSETback to summary
public static final int ULACTIONSET

The struct member offsets.

ULRESTRICTEDTODEVICEback to summary
public static final int ULRESTRICTEDTODEVICE

The struct member offsets.

ULSECONDARYACTIONSETback to summary
public static final int ULSECONDARYACTIONSET

The struct member offsets.

Constructor Detail

VRActiveActionSetback to summary
protected VRActiveActionSet(long address, ByteBuffer container)
VRActiveActionSetback to summary
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 Detail

callocback to summary
public static VRActiveActionSet calloc()

Returns a new VRActiveActionSet instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VRActiveActionSet.Buffer calloc(int capacity)

Returns a new VRActiveActionSet.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VRActiveActionSet calloc(MemoryStack stack)

Returns a new VRActiveActionSet instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VRActiveActionSet.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VRActiveActionSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static VRActiveActionSet callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VRActiveActionSet callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VRActiveActionSet.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VRActiveActionSet.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected VRActiveActionSet create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VRActiveActionSet create()

Returns a new VRActiveActionSet instance allocated with BufferUtils.

createback to summary
public static VRActiveActionSet create(long address)

Returns a new VRActiveActionSet instance for the specified memory address.

createback to summary
public static VRActiveActionSet.Buffer create(int capacity)

Returns a new VRActiveActionSet.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VRActiveActionSet.Buffer create(long address, int capacity)

Create a VRActiveActionSet.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VRActiveActionSet createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VRActiveActionSet.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static VRActiveActionSet malloc()

Returns a new VRActiveActionSet instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VRActiveActionSet.Buffer malloc(int capacity)

Returns a new VRActiveActionSet.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VRActiveActionSet malloc(MemoryStack stack)

Returns a new VRActiveActionSet instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VRActiveActionSet.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VRActiveActionSet.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static VRActiveActionSet mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VRActiveActionSet mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VRActiveActionSet.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VRActiveActionSet.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nnPriorityback to summary
public static int nnPriority(long struct)

Unsafe version of nPriority.

nnPriorityback to summary
public static void nnPriority(long struct, int value)

Unsafe version of nPriority.

nPriorityback to summary
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.

Annotations
@NativeType:int32_t
nPriorityback to summary
public VRActiveActionSet nPriority(int value)

Sets the specified value to the nPriority field.

nulActionSetback to summary
public static long nulActionSet(long struct)

Unsafe version of ulActionSet.

nulActionSetback to summary
public static void nulActionSet(long struct, long value)

Unsafe version of ulActionSet.

nulRestrictedToDeviceback to summary
public static long nulRestrictedToDevice(long struct)

Unsafe version of ulRestrictedToDevice.

nulRestrictedToDeviceback to summary
public static void nulRestrictedToDevice(long struct, long value)

Unsafe version of ulRestrictedToDevice.

nulSecondaryActionSetback to summary
public static long nulSecondaryActionSet(long struct)

Unsafe version of ulSecondaryActionSet.

nulSecondaryActionSetback to summary
public static void nulSecondaryActionSet(long struct, long value)

Unsafe version of ulSecondaryActionSet.

setback to summary
public VRActiveActionSet set(long ulActionSet, long ulRestrictedToDevice, long ulSecondaryActionSet, int nPriority)

Initializes this struct with the specified values.

setback to summary
public VRActiveActionSet set(VRActiveActionSet src)

Copies the specified struct data to this struct.

Parameters
src:VRActiveActionSet

the source struct

Returns:VRActiveActionSet

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
ulActionSetback to summary
public long ulActionSet()

this is the handle of the action set to activate for this frame

Annotations
@NativeType:VRActionSetHandle_t
ulActionSetback to summary
public VRActiveActionSet ulActionSet(long value)

Sets the specified value to the ulActionSet field.

ulRestrictedToDeviceback to summary
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.

Annotations
@NativeType:VRInputValueHandle_t
ulRestrictedToDeviceback to summary
public VRActiveActionSet ulRestrictedToDevice(long value)

Sets the specified value to the ulRestrictedToDevice field.

ulSecondaryActionSetback to summary
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.

Annotations
@NativeType:VRActionSetHandle_t
ulSecondaryActionSetback to summary
public VRActiveActionSet ulSecondaryActionSet(long value)

Sets the specified value to the ulSecondaryActionSet field.

org.lwjgl.openvr back to summary

public Class VRActiveActionSet.Buffer

extends StructBuffer<VRActiveActionSet, VRActiveActionSet.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VRActiveActionSet structs.

Field Summary

Modifier and TypeField and Description
private static final VRActiveActionSet

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VRActiveActionSet.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected VRActiveActionSet
public int

Returns:

the value of the VRActiveActionSet#nPriority field.
nPriority
()

public VRActiveActionSet.Buffer
nPriority(int value)

Sets the specified value to the VRActiveActionSet#nPriority field.

protected VRActiveActionSet.Buffer
public long

Returns:

the value of the VRActiveActionSet#ulActionSet field.
ulActionSet
()

public VRActiveActionSet.Buffer
ulActionSet(long value)

Sets the specified value to the VRActiveActionSet#ulActionSet field.

public long
public VRActiveActionSet.Buffer
ulRestrictedToDevice(long value)

Sets the specified value to the VRActiveActionSet#ulRestrictedToDevice field.

public long
public VRActiveActionSet.Buffer
ulSecondaryActionSet(long value)

Sets the specified value to the VRActiveActionSet#ulSecondaryActionSet field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VRActiveActionSet ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VRActiveActionSet.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VRActiveActionSet#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected VRActiveActionSet getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
nPriorityback to summary
public int nPriority()
Returns:int

the value of the VRActiveActionSet#nPriority field.

Annotations
@NativeType:int32_t
nPriorityback to summary
public VRActiveActionSet.Buffer nPriority(int value)

Sets the specified value to the VRActiveActionSet#nPriority field.

selfback to summary
protected VRActiveActionSet.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
ulActionSetback to summary
public long ulActionSet()
Returns:long

the value of the VRActiveActionSet#ulActionSet field.

Annotations
@NativeType:VRActionSetHandle_t
ulActionSetback to summary
public VRActiveActionSet.Buffer ulActionSet(long value)

Sets the specified value to the VRActiveActionSet#ulActionSet field.

ulRestrictedToDeviceback to summary
public long ulRestrictedToDevice()
Returns:long

the value of the VRActiveActionSet#ulRestrictedToDevice field.

Annotations
@NativeType:VRInputValueHandle_t
ulRestrictedToDeviceback to summary
public VRActiveActionSet.Buffer ulRestrictedToDevice(long value)

Sets the specified value to the VRActiveActionSet#ulRestrictedToDevice field.

ulSecondaryActionSetback to summary
public long ulSecondaryActionSet()
Returns:long

the value of the VRActiveActionSet#ulSecondaryActionSet field.

Annotations
@NativeType:VRActionSetHandle_t
ulSecondaryActionSetback to summary
public VRActiveActionSet.Buffer ulSecondaryActionSet(long value)

Sets the specified value to the VRActiveActionSet#ulSecondaryActionSet field.