Package org.lwjgl.openxr
Class XrInteractionProfileDpadBindingEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrInteractionProfileDpadBindingEXT>
org.lwjgl.openxr.XrInteractionProfileDpadBindingEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrInteractionProfileDpadBindingEXT
extends Struct<XrInteractionProfileDpadBindingEXT>
implements NativeResource
struct XrInteractionProfileDpadBindingEXT {
XrStructureType type;
void const * next;
XrPath binding;
XrActionSet actionSet;
float forceThreshold;
float forceThresholdReleased;
float centerRegion;
float wedgeAngle;
XrBool32 isSticky;
XrHapticBaseHeader const * onHaptic;
XrHapticBaseHeader const * offHaptic;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrInteractionProfileDpadBindingEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrInteractionProfileDpadBindingEXT(ByteBuffer container) Creates aXrInteractionProfileDpadBindingEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongactionSet(XrActionSet value) Sets the specified value to theactionSetfield.longbinding()binding(long value) Sets the specified value to thebindingfield.calloc()Returns a newXrInteractionProfileDpadBindingEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatcenterRegion(float value) Sets the specified value to thecenterRegionfield.create()Returns a newXrInteractionProfileDpadBindingEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrInteractionProfileDpadBindingEXTinstance for the specified memory address.create(long address, int capacity) Create aXrInteractionProfileDpadBindingEXT.Bufferinstance at the specified memory.Downcasts the specifiedXrBindingModificationBaseHeaderKHRinstance toXrInteractionProfileDpadBindingEXT.Downcasts the specifiedXrBindingModificationBaseHeaderKHR.Bufferinstance toXrInteractionProfileDpadBindingEXT.Buffer.static @Nullable XrInteractionProfileDpadBindingEXTcreateSafe(long address) static @Nullable XrInteractionProfileDpadBindingEXT.BuffercreateSafe(long address, int capacity) floatforceThreshold(float value) Sets the specified value to theforceThresholdfield.floatforceThresholdReleased(float value) Sets the specified value to theforceThresholdReleasedfield.booleanisSticky()isSticky(boolean value) Sets the specified value to theisStickyfield.malloc()Returns a newXrInteractionProfileDpadBindingEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXTinstance allocated on the specifiedMemoryStack.static longnactionSet(long struct) Unsafe version ofactionSet().static voidnactionSet(long struct, XrActionSet value) Unsafe version ofactionSet.static longnbinding(long struct) Unsafe version ofbinding().static voidnbinding(long struct, long value) Unsafe version ofbinding.static floatncenterRegion(long struct) Unsafe version ofcenterRegion().static voidncenterRegion(long struct, float value) Unsafe version ofcenterRegion.longnext()next(long value) Sets the specified value to thenextfield.static floatnforceThreshold(long struct) Unsafe version offorceThreshold().static voidnforceThreshold(long struct, float value) Unsafe version offorceThreshold.static floatnforceThresholdReleased(long struct) Unsafe version offorceThresholdReleased().static voidnforceThresholdReleased(long struct, float value) Unsafe version offorceThresholdReleased.static intnisSticky(long struct) Unsafe version ofisSticky().static voidnisSticky(long struct, int value) Unsafe version ofisSticky.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static @Nullable XrHapticBaseHeadernoffHaptic(long struct) Unsafe version ofoffHaptic().static voidnoffHaptic(long struct, @Nullable XrHapticBaseHeader value) Unsafe version ofoffHaptic.static @Nullable XrHapticBaseHeadernonHaptic(long struct) Unsafe version ofonHaptic().static voidnonHaptic(long struct, @Nullable XrHapticBaseHeader value) Unsafe version ofonHaptic.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static floatnwedgeAngle(long struct) Unsafe version ofwedgeAngle().static voidnwedgeAngle(long struct, float value) Unsafe version ofwedgeAngle.@Nullable XrHapticBaseHeaderoffHaptic(@Nullable XrHapticBaseHeader value) Sets the address of the specifiedXrHapticBaseHeaderto theoffHapticfield.@Nullable XrHapticBaseHeaderonHaptic()onHaptic(@Nullable XrHapticBaseHeader value) Sets the address of the specifiedXrHapticBaseHeaderto theonHapticfield.set(int type, long next, long binding, XrActionSet actionSet, float forceThreshold, float forceThresholdReleased, float centerRegion, float wedgeAngle, boolean isSticky, @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_INTERACTION_PROFILE_DPAD_BINDING_EXTvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.floatwedgeAngle(float value) Sets the specified value to thewedgeAnglefield.Methods 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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
BINDING
public static final int BINDINGThe struct member offsets. -
ACTIONSET
public static final int ACTIONSETThe struct member offsets. -
FORCETHRESHOLD
public static final int FORCETHRESHOLDThe struct member offsets. -
FORCETHRESHOLDRELEASED
public static final int FORCETHRESHOLDRELEASEDThe struct member offsets. -
CENTERREGION
public static final int CENTERREGIONThe struct member offsets. -
WEDGEANGLE
public static final int WEDGEANGLEThe struct member offsets. -
ISSTICKY
public static final int ISSTICKYThe struct member offsets. -
ONHAPTIC
public static final int ONHAPTICThe struct member offsets. -
OFFHAPTIC
public static final int OFFHAPTICThe struct member offsets.
-
-
Constructor Details
-
XrInteractionProfileDpadBindingEXT
Creates aXrInteractionProfileDpadBindingEXTinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrInteractionProfileDpadBindingEXT>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
binding
public long binding()- Returns:
- the value of the
bindingfield.
-
actionSet
public long actionSet()- Returns:
- the value of the
actionSetfield.
-
forceThreshold
public float forceThreshold()- Returns:
- the value of the
forceThresholdfield.
-
forceThresholdReleased
public float forceThresholdReleased()- Returns:
- the value of the
forceThresholdReleasedfield.
-
centerRegion
public float centerRegion()- Returns:
- the value of the
centerRegionfield.
-
wedgeAngle
public float wedgeAngle()- Returns:
- the value of the
wedgeAnglefield.
-
isSticky
public boolean isSticky()- Returns:
- the value of the
isStickyfield.
-
onHaptic
- Returns:
- a
XrHapticBaseHeaderview of the struct pointed to by theonHapticfield.
-
offHaptic
- Returns:
- a
XrHapticBaseHeaderview of the struct pointed to by theoffHapticfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_INTERACTION_PROFILE_DPAD_BINDING_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
binding
Sets the specified value to thebindingfield. -
actionSet
Sets the specified value to theactionSetfield. -
forceThreshold
Sets the specified value to theforceThresholdfield. -
forceThresholdReleased
Sets the specified value to theforceThresholdReleasedfield. -
centerRegion
Sets the specified value to thecenterRegionfield. -
wedgeAngle
Sets the specified value to thewedgeAnglefield. -
isSticky
Sets the specified value to theisStickyfield. -
onHaptic
Sets the address of the specifiedXrHapticBaseHeaderto theonHapticfield. -
offHaptic
Sets the address of the specifiedXrHapticBaseHeaderto theoffHapticfield. -
set
public XrInteractionProfileDpadBindingEXT set(int type, long next, long binding, XrActionSet actionSet, float forceThreshold, float forceThresholdReleased, float centerRegion, float wedgeAngle, boolean isSticky, @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic) 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 newXrInteractionProfileDpadBindingEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrInteractionProfileDpadBindingEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrInteractionProfileDpadBindingEXTinstance allocated withBufferUtils. -
create
Returns a newXrInteractionProfileDpadBindingEXTinstance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrBindingModificationBaseHeaderKHRinstance toXrInteractionProfileDpadBindingEXT. -
malloc
Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrInteractionProfileDpadBindingEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrInteractionProfileDpadBindingEXT.Buffer createSafe(long address, int capacity) -
create
public static XrInteractionProfileDpadBindingEXT.Buffer create(XrBindingModificationBaseHeaderKHR.Buffer value) Downcasts the specifiedXrBindingModificationBaseHeaderKHR.Bufferinstance toXrInteractionProfileDpadBindingEXT.Buffer. -
malloc
Returns a newXrInteractionProfileDpadBindingEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrInteractionProfileDpadBindingEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrInteractionProfileDpadBindingEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nbinding
public static long nbinding(long struct) Unsafe version ofbinding(). -
nactionSet
public static long nactionSet(long struct) Unsafe version ofactionSet(). -
nforceThreshold
public static float nforceThreshold(long struct) Unsafe version offorceThreshold(). -
nforceThresholdReleased
public static float nforceThresholdReleased(long struct) Unsafe version offorceThresholdReleased(). -
ncenterRegion
public static float ncenterRegion(long struct) Unsafe version ofcenterRegion(). -
nwedgeAngle
public static float nwedgeAngle(long struct) Unsafe version ofwedgeAngle(). -
nisSticky
public static int nisSticky(long struct) Unsafe version ofisSticky(). -
nonHaptic
Unsafe version ofonHaptic(). -
noffHaptic
Unsafe version ofoffHaptic(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nbinding
public static void nbinding(long struct, long value) Unsafe version ofbinding. -
nactionSet
Unsafe version ofactionSet. -
nforceThreshold
public static void nforceThreshold(long struct, float value) Unsafe version offorceThreshold. -
nforceThresholdReleased
public static void nforceThresholdReleased(long struct, float value) Unsafe version offorceThresholdReleased. -
ncenterRegion
public static void ncenterRegion(long struct, float value) Unsafe version ofcenterRegion. -
nwedgeAngle
public static void nwedgeAngle(long struct, float value) Unsafe version ofwedgeAngle. -
nisSticky
public static void nisSticky(long struct, int value) Unsafe version ofisSticky. -
nonHaptic
Unsafe version ofonHaptic. -
noffHaptic
Unsafe version ofoffHaptic. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-