OpenXRActionMap
Hereda: Resource < RefCounted < Object
Collection of OpenXRActionSet and OpenXRInteractionProfile resources for the OpenXR module.
Descripción
OpenXR uses an action system similar to Godots Input map system to bind inputs and outputs on various types of XR controllers to named actions. OpenXR specifies more detail on these inputs and outputs than Godot supports.
Another important distinction is that OpenXR offers no control over these bindings. The bindings we register are suggestions, it is up to the XR runtime to offer users the ability to change these bindings. This allows the XR runtime to fill in the gaps if new hardware becomes available.
The action map therefore needs to be loaded at startup and can't be changed afterwards. This resource is a container for the entire action map.
Propiedades
|
||
|
Métodos
void |
add_action_set(action_set: OpenXRActionSet) |
void |
add_interaction_profile(interaction_profile: OpenXRInteractionProfile) |
void |
|
find_action_set(name: String) const |
|
find_interaction_profile(name: String) const |
|
get_action_set(idx: int) const |
|
get_action_set_count() const |
|
get_interaction_profile(idx: int) const |
|
get_interaction_profile_count() const |
|
void |
remove_action_set(action_set: OpenXRActionSet) |
void |
remove_interaction_profile(interaction_profile: OpenXRInteractionProfile) |
Descripciones de Propiedades
Collection of OpenXRActionSets that are part of this action map.
Array interaction_profiles = [] 🔗
Collection of OpenXRInteractionProfiles that are part of this action map.
Descripciones de Métodos
void add_action_set(action_set: OpenXRActionSet) 🔗
Añadir un conjunto de acciones.
void add_interaction_profile(interaction_profile: OpenXRInteractionProfile) 🔗
Añadir un perfil de interacción.
void create_default_action_sets() 🔗
Configura este conjunto de acciones con nuestras acciones predeterminadas.
OpenXRActionSet find_action_set(name: String) const 🔗
Retrieve an action set by name.
OpenXRInteractionProfile find_interaction_profile(name: String) const 🔗
Encuentre un perfil de interacción por su nombre (ruta).
OpenXRActionSet get_action_set(idx: int) const 🔗
Retrieve the action set at this index.
int get_action_set_count() const 🔗
Retrieve the number of actions sets in our action map.
OpenXRInteractionProfile get_interaction_profile(idx: int) const 🔗
Get the interaction profile at this index.
int get_interaction_profile_count() const 🔗
Retrieve the number of interaction profiles in our action map.
void remove_action_set(action_set: OpenXRActionSet) 🔗
Elimina un conjunto de acciones.
void remove_interaction_profile(interaction_profile: OpenXRInteractionProfile) 🔗
Elimina un perfil de interacción.