Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrInteractionProfileAnalogThresholdVALVE

extends Struct<XrInteractionProfileAnalogThresholdVALVE>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Interaction profile dpad binding.
Description

Applications can also chain a single XrInteractionProfileAnalogThresholdVALVE structure on the next chain of any SuggestInteractionProfileBindings call. Runtimes must support this kind of chaining. This method of specifying analog thresholds is deprecated however, and should not be used by any new applications.

If a threshold struct is present for a given conversion, the runtime must use those thresholds instead of applying its own whenever it is using the binding suggested by the application.

onThreshold and offThreshold permit allow the application to specify that it wants hysteresis to be applied to the threshold operation. If onThreshold is smaller than offThreshold, the runtime must return ERROR_VALIDATION_FAILURE.

onHaptic and offHaptic allow the application to specify that it wants automatic haptic feedback to be generated when the boolean output of the threshold operation changes from false to true or vice versa. If these fields are not NULL, the runtime must trigger a haptic output with the specified characteristics. If the device has multiple haptic outputs, the runtime should use the haptic output that is most appropriate for the specified input path.

If a suggested binding with action and binding is not in the binding list for this interaction profile, the runtime must return ERROR_PATH_UNSUPPORTED.

Valid Usage (Implicit)
See Also

XrHapticBaseHeader

Layout


struct XrInteractionProfileAnalogThresholdVALVE {
    XrStructureType type;
    void const * next;
    XrAction action;
    XrPath binding;
    float onThreshold;
    float offThreshold;
    XrHapticBaseHeader const * onHaptic;
    XrHapticBaseHeader const * offHaptic;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ACTION

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BINDING

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
OFFHAPTIC

The struct member offsets.

public static final int
OFFTHRESHOLD

The struct member offsets.

public static final int
ONHAPTIC

The struct member offsets.

public static final int
ONTHRESHOLD

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
XrInteractionProfileAnalogThresholdVALVE(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long
action()

the handle of an action in the suggested binding list.

public XrInteractionProfileAnalogThresholdVALVE
action(XrAction value)

Sets the specified value to the action field.

public long
binding()

the input path used for the specified action in the suggested binding list.

public XrInteractionProfileAnalogThresholdVALVE
binding(long value)

Sets the specified value to the binding field.

public static XrInteractionProfileAnalogThresholdVALVE
calloc()

Returns a new XrInteractionProfileAnalogThresholdVALVE instance allocated with memCalloc.

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

Returns a new XrInteractionProfileAnalogThresholdVALVE.Buffer instance allocated with memCalloc.

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

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

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

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

protected XrInteractionProfileAnalogThresholdVALVE
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 XrInteractionProfileAnalogThresholdVALVE
create()

Returns a new XrInteractionProfileAnalogThresholdVALVE instance allocated with BufferUtils.

public static XrInteractionProfileAnalogThresholdVALVE
create(long address)

Returns a new XrInteractionProfileAnalogThresholdVALVE instance for the specified memory address.

public static XrInteractionProfileAnalogThresholdVALVE
create(XrBindingModificationBaseHeaderKHR value)

Downcasts the specified XrBindingModificationBaseHeaderKHR instance to XrInteractionProfileAnalogThresholdVALVE.

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

Returns a new XrInteractionProfileAnalogThresholdVALVE.Buffer instance allocated with BufferUtils.

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

Create a XrInteractionProfileAnalogThresholdVALVE.Buffer instance at the specified memory.

public static XrInteractionProfileAnalogThresholdVALVE.Buffer
create(XrBindingModificationBaseHeaderKHR.Buffer value)

Downcasts the specified XrBindingModificationBaseHeaderKHR.Buffer instance to XrInteractionProfileAnalogThresholdVALVE.Buffer.

public static XrInteractionProfileAnalogThresholdVALVE
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static XrInteractionProfileAnalogThresholdVALVE
malloc()

Returns a new XrInteractionProfileAnalogThresholdVALVE instance allocated with memAlloc.

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

Returns a new XrInteractionProfileAnalogThresholdVALVE.Buffer instance allocated with memAlloc.

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

Returns a new XrInteractionProfileAnalogThresholdVALVE instance allocated on the specified MemoryStack.

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

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

public static long
naction(long struct)

Unsafe version of action.

public static void
naction(long struct, XrAction value)

Unsafe version of action.

public static long
nbinding(long struct)

Unsafe version of binding.

public static void
nbinding(long struct, long value)

Unsafe version of binding.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrInteractionProfileAnalogThresholdVALVE
next(long value)

Sets the specified value to the next field.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static XrHapticBaseHeader
noffHaptic(long struct)

Unsafe version of offHaptic.

public static void
noffHaptic(long struct, XrHapticBaseHeader value)

Unsafe version of offHaptic.

public static float
noffThreshold(long struct)

Unsafe version of offThreshold.

public static void
noffThreshold(long struct, float value)

Unsafe version of offThreshold.

public static XrHapticBaseHeader
nonHaptic(long struct)

Unsafe version of onHaptic.

public static void
nonHaptic(long struct, XrHapticBaseHeader value)

Unsafe version of onHaptic.

public static float
nonThreshold(long struct)

Unsafe version of onThreshold.

public static void
nonThreshold(long struct, float value)

Unsafe version of onThreshold.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public XrHapticBaseHeader
offHaptic()

the haptic output that the runtime must trigger when the binding changes from true to false.

public XrInteractionProfileAnalogThresholdVALVE
offHaptic(XrHapticBaseHeader value)

Sets the address of the specified XrHapticBaseHeader to the offHaptic field.

public float
offThreshold()

the value between 0.0 and 1.0 at which the runtime must consider the binding to be false if it was previous true.

public XrInteractionProfileAnalogThresholdVALVE
offThreshold(float value)

Sets the specified value to the offThreshold field.

public XrHapticBaseHeader
onHaptic()

the haptic output that the runtime must trigger when the binding changes from false to true.

public XrInteractionProfileAnalogThresholdVALVE
onHaptic(XrHapticBaseHeader value)

Sets the address of the specified XrHapticBaseHeader to the onHaptic field.

public float
onThreshold()

the value between 0.0 and 1.0 at which the runtime must consider the binding to be true.

public XrInteractionProfileAnalogThresholdVALVE
onThreshold(float value)

Sets the specified value to the onThreshold field.

public XrInteractionProfileAnalogThresholdVALVE
set(int type, long next, XrAction action, long binding, float onThreshold, float offThreshold, XrHapticBaseHeader onHaptic, XrHapticBaseHeader offHaptic)

Initializes this struct with the specified values.

public XrInteractionProfileAnalogThresholdVALVE

Returns:

this struct
set
(XrInteractionProfileAnalogThresholdVALVE
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 int
type()

the XrStructureType of this structure.

public XrInteractionProfileAnalogThresholdVALVE
type(int value)

Sets the specified value to the type field.

public XrInteractionProfileAnalogThresholdVALVE
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate