Package org.lwjgl.openxr
Class XrEventDataInteractionProfileChanged
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataInteractionProfileChanged
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataInteractionProfileChanged extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceNotifies the application than the active interaction profile has changed.Description
The
XrEventDataInteractionProfileChangedevent is sent to the application to notify it that the active input form factor for one or more top level user paths has changed. This event must only be sent for interaction profiles that the application indicated its support for viaSuggestInteractionProfileBindings. This event must only be sent for running sessions.The application can call
GetCurrentInteractionProfileif it wants to change its own behavior based on the active hardware.Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGEDnextmust beNULLor a valid pointer to the next structure in a structure chainsessionmust be a validXrSessionhandle
See Also
GetCurrentInteractionProfile,SuggestInteractionProfileBindingsLayout
struct XrEventDataInteractionProfileChanged { XrStructureTypetype(); void const *next(); XrSessionsession(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataInteractionProfileChanged.BufferAn array ofXrEventDataInteractionProfileChangedstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataInteractionProfileChanged(java.nio.ByteBuffer container)Creates aXrEventDataInteractionProfileChangedinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataInteractionProfileChangedcalloc()Returns a newXrEventDataInteractionProfileChangedinstance allocated withmemCalloc.static XrEventDataInteractionProfileChanged.Buffercalloc(int capacity)Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withmemCalloc.static XrEventDataInteractionProfileChanged.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataInteractionProfileChangedcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInteractionProfileChangedinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataInteractionProfileChangedcreate()Returns a newXrEventDataInteractionProfileChangedinstance allocated withBufferUtils.static XrEventDataInteractionProfileChanged.Buffercreate(int capacity)Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withBufferUtils.static XrEventDataInteractionProfileChangedcreate(long address)Returns a newXrEventDataInteractionProfileChangedinstance for the specified memory address.static XrEventDataInteractionProfileChanged.Buffercreate(long address, int capacity)Create aXrEventDataInteractionProfileChanged.Bufferinstance at the specified memory.static XrEventDataInteractionProfileChangedcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataInteractionProfileChanged.static XrEventDataInteractionProfileChanged.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataInteractionProfileChanged.Buffer.static XrEventDataInteractionProfileChangedcreateSafe(long address)static XrEventDataInteractionProfileChanged.BuffercreateSafe(long address, int capacity)static XrEventDataInteractionProfileChangedmalloc()Returns a newXrEventDataInteractionProfileChangedinstance allocated withmemAlloc.static XrEventDataInteractionProfileChanged.Buffermalloc(int capacity)Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withmemAlloc.static XrEventDataInteractionProfileChanged.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataInteractionProfileChangedmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInteractionProfileChangedinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataInteractionProfileChangednext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnsession(long struct)Unsafe version ofsession().static voidnsession(long struct, XrSession value)Unsafe version ofsession.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longsession()theXrSessionfor which at least one of the interaction profiles for a top level path has changed.XrEventDataInteractionProfileChangedsession(XrSession value)Sets the specified value to thesession()field.XrEventDataInteractionProfileChangedset(int type, long next, XrSession session)Initializes this struct with the specified values.XrEventDataInteractionProfileChangedset(XrEventDataInteractionProfileChanged src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataInteractionProfileChangedtype(int value)Sets the specified value to thetype()field.XrEventDataInteractionProfileChangedtype$Default()Sets theTYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGEDvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrEventDataInteractionProfileChanged
public XrEventDataInteractionProfileChanged(java.nio.ByteBuffer container)
Creates aXrEventDataInteractionProfileChangedinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
session
public long session()
theXrSessionfor which at least one of the interaction profiles for a top level path has changed.
-
type
public XrEventDataInteractionProfileChanged type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataInteractionProfileChanged type$Default()
Sets theTYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGEDvalue to thetype()field.
-
next
public XrEventDataInteractionProfileChanged next(long value)
Sets the specified value to thenext()field.
-
session
public XrEventDataInteractionProfileChanged session(XrSession value)
Sets the specified value to thesession()field.
-
set
public XrEventDataInteractionProfileChanged set(int type, long next, XrSession session)
Initializes this struct with the specified values.
-
set
public XrEventDataInteractionProfileChanged set(XrEventDataInteractionProfileChanged src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataInteractionProfileChanged malloc()
Returns a newXrEventDataInteractionProfileChangedinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataInteractionProfileChanged calloc()
Returns a newXrEventDataInteractionProfileChangedinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataInteractionProfileChanged create()
Returns a newXrEventDataInteractionProfileChangedinstance allocated withBufferUtils.
-
create
public static XrEventDataInteractionProfileChanged create(long address)
Returns a newXrEventDataInteractionProfileChangedinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataInteractionProfileChanged createSafe(long address)
-
create
public static XrEventDataInteractionProfileChanged create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataInteractionProfileChanged.
-
malloc
public static XrEventDataInteractionProfileChanged.Buffer malloc(int capacity)
Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataInteractionProfileChanged.Buffer calloc(int capacity)
Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataInteractionProfileChanged.Buffer create(int capacity)
Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataInteractionProfileChanged.Buffer create(long address, int capacity)
Create aXrEventDataInteractionProfileChanged.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataInteractionProfileChanged.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataInteractionProfileChanged.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataInteractionProfileChanged.Buffer.
-
malloc
public static XrEventDataInteractionProfileChanged malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInteractionProfileChangedinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataInteractionProfileChanged calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInteractionProfileChangedinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataInteractionProfileChanged.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataInteractionProfileChanged.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInteractionProfileChanged.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsession
public static long nsession(long struct)
Unsafe version ofsession().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-