When multiple actions are bound to the same input source, the priority of each action set determines which bindings are suppressed. Runtimes must ignore input sources from action sets with a lower priority number if those specific input sources are also present in active actions within a higher priority action set. If multiple action sets with the same priority are bound to the same input source and that is the highest priority number, runtimes must process all those bindings at the same time.
Two actions are considered to be bound to the same input source if they use the same identifier and optional location path segments, even if they have different component segments.
When runtimes are ignoring bindings because of priority, they must treat the binding to that input source as though they do not exist. That means the isActive field must be FALSE when retrieving action data, and that the runtime must not provide any visual, haptic, or other feedback related to the binding of that action to that input source. Other actions in the same action set which are bound to input sources that do not collide are not affected and are processed as normal.
If actionSetName or localizedActionSetName are empty strings, the runtime must return ERROR_NAME_INVALID or ERROR_LOCALIZED_NAME_INVALID respectively. If actionSetName or localizedActionSetName are duplicates of the corresponding field for any existing action set in the specified instance, the runtime must return ERROR_NAME_DUPLICATED or ERROR_LOCALIZED_NAME_DUPLICATED respectively. If the conflicting action set is destroyed, the conflicting field is no longer considered duplicated. If actionSetName contains characters which are not allowed in a single level of a well-formed path string, the runtime must return ERROR_PATH_FORMAT_INVALID.
type must be TYPE_ACTION_SET_CREATE_INFOnext must be NULL or a valid pointer to the next structure in a structure chainactionSetName must be a null-terminated UTF-8 string whose length is less than or equal to MAX_ACTION_SET_NAME_SIZElocalizedActionSetName must be a null-terminated UTF-8 string whose length is less than or equal to MAX_LOCALIZED_ACTION_SET_NAME_SIZE
struct XrActionSetCreateInfo {
XrStructureType type;
void const * next;
char actionSetName[XR_MAX_ACTION_SET_NAME_SIZE];
char localizedActionSetName[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE];
uint32_t priority;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrActionSetCreateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACTIONSETNAME
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | LOCALIZEDACTIONSETNAME
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | PRIORITY
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrActionSetCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | actionSetName()
an array containing a |
| public XrActionSetCreateInfo | |
| public String | actionSetNameString()
an array containing a |
| public static XrActionSetCreateInfo | |
| public static XrActionSetCreateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrActionSetCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrActionSetCreateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrActionSetCreateInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrActionSetCreateInfo | |
| public static XrActionSetCreateInfo | |
| public static XrActionSetCreateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static XrActionSetCreateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrActionSetCreateInfo | |
| public static XrActionSetCreateInfo. | |
| public ByteBuffer | localizedActionSetName()
an array containing a |
| public XrActionSetCreateInfo | localizedActionSetName(ByteBuffer value)
Copies the specified encoded string to the |
| public String | localizedActionSetNameString()
an array containing a |
| public static XrActionSetCreateInfo | |
| public static XrActionSetCreateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrActionSetCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrActionSetCreateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public long | |
| public XrActionSetCreateInfo | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | priority()
defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. |
| public XrActionSetCreateInfo | |
| public XrActionSetCreateInfo | set(int type, long next, ByteBuffer actionSetName, ByteBuffer localizedActionSetName, int priority)
Initializes this struct with the specified values. |
| public XrActionSetCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrActionSetCreateInfo | |
| public XrActionSetCreateInfo |
| ACTIONSETNAME | back to summary |
|---|---|
| public static final int ACTIONSETNAME The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| LOCALIZEDACTIONSETNAME | back to summary |
|---|---|
| public static final int LOCALIZEDACTIONSETNAME The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| PRIORITY | back to summary |
|---|---|
| public static final int PRIORITY The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrActionSetCreateInfo | back to summary |
|---|---|
| protected XrActionSetCreateInfo(long address, ByteBuffer container) | |
| XrActionSetCreateInfo | back to summary |
|---|---|
| public XrActionSetCreateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| actionSetName | back to summary |
|---|---|
| public ByteBuffer actionSetName() an array containing a
| |
| actionSetName | back to summary |
|---|---|
| public XrActionSetCreateInfo actionSetName(ByteBuffer value) Copies the specified encoded string to the | |
| actionSetNameString | back to summary |
|---|---|
| public String actionSetNameString() an array containing a
| |
| calloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrActionSetCreateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrActionSetCreateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrActionSetCreateInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrActionSetCreateInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Like
| |
| localizedActionSetName | back to summary |
|---|---|
| public ByteBuffer localizedActionSetName() an array containing a
| |
| localizedActionSetName | back to summary |
|---|---|
| public XrActionSetCreateInfo localizedActionSetName(ByteBuffer value) Copies the specified encoded string to the | |
| localizedActionSetNameString | back to summary |
|---|---|
| public String localizedActionSetNameString() an array containing a
| |
| malloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrActionSetCreateInfo. Returns a new
| |
| nactionSetName | back to summary |
|---|---|
| public static ByteBuffer nactionSetName(long struct) Unsafe version of | |
| nactionSetName | back to summary |
|---|---|
| public static void nactionSetName(long struct, ByteBuffer value) Unsafe version of | |
| nactionSetNameString | back to summary |
|---|---|
| public static String nactionSetNameString(long struct) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrActionSetCreateInfo next(long value) Sets the specified value to the | |
| nlocalizedActionSetName | back to summary |
|---|---|
| public static ByteBuffer nlocalizedActionSetName(long struct) Unsafe version of | |
| nlocalizedActionSetName | back to summary |
|---|---|
| public static void nlocalizedActionSetName(long struct, ByteBuffer value) Unsafe version of | |
| nlocalizedActionSetNameString | back to summary |
|---|---|
| public static String nlocalizedActionSetNameString(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| npriority | back to summary |
|---|---|
| public static int npriority(long struct) Unsafe version of | |
| npriority | back to summary |
|---|---|
| public static void npriority(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| priority | back to summary |
|---|---|
| public int priority() defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. Larger priority numbers take precedence over smaller priority numbers.
| |
| priority | back to summary |
|---|---|
| public XrActionSetCreateInfo priority(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrActionSetCreateInfo set(int type, long next, ByteBuffer actionSetName, ByteBuffer localizedActionSetName, int priority) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrActionSetCreateInfo set(XrActionSetCreateInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrActionSetCreateInfo type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrActionSetCreateInfo type$Default() Sets the | |
XrActionSetCreateInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrActionSetCreateInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | |
| public XrActionSetCreateInfo. | actionSetName(ByteBuffer value)
Copies the specified encoded string to the |
| public String | Returns: the null-terminated string stored in theXrActionSetCreateInfo#actionSetName field.
|
| protected XrActionSetCreateInfo | |
| public ByteBuffer | |
| public XrActionSetCreateInfo. | localizedActionSetName(ByteBuffer value)
Copies the specified encoded string to the |
| public String | Returns: the null-terminated string stored in theXrActionSetCreateInfo#localizedActionSetName field.
|
| public long | |
| public XrActionSetCreateInfo. | |
| public int | |
| public XrActionSetCreateInfo. | |
| protected XrActionSetCreateInfo. | |
| public int | |
| public XrActionSetCreateInfo. | |
| public XrActionSetCreateInfo. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrActionSetCreateInfo ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| actionSetName | back to summary |
|---|---|
public ByteBuffer actionSetName()
| |
| actionSetName | back to summary |
|---|---|
| public XrActionSetCreateInfo. Copies the specified encoded string to the | |
| actionSetNameString | back to summary |
|---|---|
public String actionSetNameString()
| |
| getElementFactory | back to summary |
|---|---|
| protected XrActionSetCreateInfo getElementFactory() Implements abstract org.
| |
| localizedActionSetName | back to summary |
|---|---|
public ByteBuffer localizedActionSetName()
| |
| localizedActionSetName | back to summary |
|---|---|
| public XrActionSetCreateInfo. Copies the specified encoded string to the | |
| localizedActionSetNameString | back to summary |
|---|---|
public String localizedActionSetNameString()
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrActionSetCreateInfo. Sets the specified value to the | |
| priority | back to summary |
|---|---|
public int priority()
| |
| priority | back to summary |
|---|---|
| public XrActionSetCreateInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrActionSetCreateInfo. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrActionSetCreateInfo. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrActionSetCreateInfo. Sets the | |