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;
{@link XrHapticBaseHeader XrHapticBaseHeader} const * onHaptic;
{@link XrHapticBaseHeader XrHapticBaseHeader} const * offHaptic;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofXrInteractionProfileDpadBindingEXT
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aXrInteractionProfileDpadBindingEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
actionSet
(XrActionSet value) Sets the specified value to theactionSet
field.long
binding()
binding
(long value) Sets the specified value to thebinding
field.calloc()
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.float
centerRegion
(float value) Sets the specified value to thecenterRegion
field.create()
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newXrInteractionProfileDpadBindingEXT
instance for the specified memory address.create
(long address, int capacity) Create aXrInteractionProfileDpadBindingEXT.Buffer
instance at the specified memory.Downcasts the specifiedXrBindingModificationBaseHeaderKHR
instance toXrInteractionProfileDpadBindingEXT
.Downcasts the specifiedXrBindingModificationBaseHeaderKHR.Buffer
instance toXrInteractionProfileDpadBindingEXT.Buffer
.static @Nullable XrInteractionProfileDpadBindingEXT
createSafe
(long address) static @Nullable XrInteractionProfileDpadBindingEXT.Buffer
createSafe
(long address, int capacity) float
forceThreshold
(float value) Sets the specified value to theforceThreshold
field.float
forceThresholdReleased
(float value) Sets the specified value to theforceThresholdReleased
field.boolean
isSticky()
isSticky
(boolean value) Sets the specified value to theisSticky
field.malloc()
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newXrInteractionProfileDpadBindingEXT
instance allocated on the specifiedMemoryStack
.static long
nactionSet
(long struct) Unsafe version ofactionSet()
.static void
nactionSet
(long struct, XrActionSet value) Unsafe version ofactionSet
.static long
nbinding
(long struct) Unsafe version ofbinding()
.static void
nbinding
(long struct, long value) Unsafe version ofbinding
.static float
ncenterRegion
(long struct) Unsafe version ofcenterRegion()
.static void
ncenterRegion
(long struct, float value) Unsafe version ofcenterRegion
.long
next()
next
(long value) Sets the specified value to thenext
field.static float
nforceThreshold
(long struct) Unsafe version offorceThreshold()
.static void
nforceThreshold
(long struct, float value) Unsafe version offorceThreshold
.static float
nforceThresholdReleased
(long struct) Unsafe version offorceThresholdReleased()
.static void
nforceThresholdReleased
(long struct, float value) Unsafe version offorceThresholdReleased
.static int
nisSticky
(long struct) Unsafe version ofisSticky()
.static void
nisSticky
(long struct, int value) Unsafe version ofisSticky
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static @Nullable XrHapticBaseHeader
noffHaptic
(long struct) Unsafe version ofoffHaptic()
.static void
noffHaptic
(long struct, @Nullable XrHapticBaseHeader value) Unsafe version ofoffHaptic
.static @Nullable XrHapticBaseHeader
nonHaptic
(long struct) Unsafe version ofonHaptic()
.static void
nonHaptic
(long struct, @Nullable XrHapticBaseHeader value) Unsafe version ofonHaptic
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static float
nwedgeAngle
(long struct) Unsafe version ofwedgeAngle()
.static void
nwedgeAngle
(long struct, float value) Unsafe version ofwedgeAngle
.@Nullable XrHapticBaseHeader
offHaptic
(@Nullable XrHapticBaseHeader value) Sets the address of the specifiedXrHapticBaseHeader
to theoffHaptic
field.@Nullable XrHapticBaseHeader
onHaptic()
onHaptic
(@Nullable XrHapticBaseHeader value) Sets the address of the specifiedXrHapticBaseHeader
to theonHaptic
field.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.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT
value to thetype
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.float
wedgeAngle
(float value) Sets the specified value to thewedgeAngle
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aXrInteractionProfileDpadBindingEXT
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrInteractionProfileDpadBindingEXT>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
binding
public long binding()- Returns:
- the value of the
binding
field.
-
actionSet
public long actionSet()- Returns:
- the value of the
actionSet
field.
-
forceThreshold
public float forceThreshold()- Returns:
- the value of the
forceThreshold
field.
-
forceThresholdReleased
public float forceThresholdReleased()- Returns:
- the value of the
forceThresholdReleased
field.
-
centerRegion
public float centerRegion()- Returns:
- the value of the
centerRegion
field.
-
wedgeAngle
public float wedgeAngle()- Returns:
- the value of the
wedgeAngle
field.
-
isSticky
public boolean isSticky()- Returns:
- the value of the
isSticky
field.
-
onHaptic
- Returns:
- a
XrHapticBaseHeader
view of the struct pointed to by theonHaptic
field.
-
offHaptic
- Returns:
- a
XrHapticBaseHeader
view of the struct pointed to by theoffHaptic
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT
value to thetype
field. -
next
Sets the specified value to thenext
field. -
binding
Sets the specified value to thebinding
field. -
actionSet
Sets the specified value to theactionSet
field. -
forceThreshold
Sets the specified value to theforceThreshold
field. -
forceThresholdReleased
Sets the specified value to theforceThresholdReleased
field. -
centerRegion
Sets the specified value to thecenterRegion
field. -
wedgeAngle
Sets the specified value to thewedgeAngle
field. -
isSticky
Sets the specified value to theisSticky
field. -
onHaptic
Sets the address of the specifiedXrHapticBaseHeader
to theonHaptic
field. -
offHaptic
Sets the address of the specifiedXrHapticBaseHeader
to theoffHaptic
field. -
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 newXrInteractionProfileDpadBindingEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated withBufferUtils
. -
create
Returns a newXrInteractionProfileDpadBindingEXT
instance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrBindingModificationBaseHeaderKHR
instance toXrInteractionProfileDpadBindingEXT
. -
malloc
Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrInteractionProfileDpadBindingEXT.Buffer
instance 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.Buffer
instance toXrInteractionProfileDpadBindingEXT.Buffer
. -
malloc
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrInteractionProfileDpadBindingEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrInteractionProfileDpadBindingEXT.Buffer
instance allocated on the specifiedMemoryStack
and 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
-