123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRActionMap.xml.
- .. _class_OpenXRActionMap:
- OpenXRActionMap
- ===============
- **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Collection of :ref:`OpenXRActionSet<class_OpenXRActionSet>` and :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` resources for the OpenXR module.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- 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.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------+----------------------------------------------------------------------------------+--------+
- | :ref:`Array<class_Array>` | :ref:`action_sets<class_OpenXRActionMap_property_action_sets>` | ``[]`` |
- +---------------------------+----------------------------------------------------------------------------------+--------+
- | :ref:`Array<class_Array>` | :ref:`interaction_profiles<class_OpenXRActionMap_property_interaction_profiles>` | ``[]`` |
- +---------------------------+----------------------------------------------------------------------------------+--------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_action_set<class_OpenXRActionMap_method_add_action_set>` **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)** |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_interaction_profile<class_OpenXRActionMap_method_add_interaction_profile>` **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)** |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`create_default_action_sets<class_OpenXRActionMap_method_create_default_action_sets>` **(** **)** |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OpenXRActionSet<class_OpenXRActionSet>` | :ref:`find_action_set<class_OpenXRActionMap_method_find_action_set>` **(** :ref:`String<class_String>` name **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` | :ref:`find_interaction_profile<class_OpenXRActionMap_method_find_interaction_profile>` **(** :ref:`String<class_String>` name **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OpenXRActionSet<class_OpenXRActionSet>` | :ref:`get_action_set<class_OpenXRActionMap_method_get_action_set>` **(** :ref:`int<class_int>` idx **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_action_set_count<class_OpenXRActionMap_method_get_action_set_count>` **(** **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` | :ref:`get_interaction_profile<class_OpenXRActionMap_method_get_interaction_profile>` **(** :ref:`int<class_int>` idx **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_interaction_profile_count<class_OpenXRActionMap_method_get_interaction_profile_count>` **(** **)** |const| |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`remove_action_set<class_OpenXRActionMap_method_remove_action_set>` **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)** |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`remove_interaction_profile<class_OpenXRActionMap_method_remove_interaction_profile>` **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)** |
- +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_OpenXRActionMap_property_action_sets:
- .. rst-class:: classref-property
- :ref:`Array<class_Array>` **action_sets** = ``[]``
- .. rst-class:: classref-property-setget
- - void **set_action_sets** **(** :ref:`Array<class_Array>` value **)**
- - :ref:`Array<class_Array>` **get_action_sets** **(** **)**
- Collection of :ref:`OpenXRActionSet<class_OpenXRActionSet>`\ s that are part of this action map.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_property_interaction_profiles:
- .. rst-class:: classref-property
- :ref:`Array<class_Array>` **interaction_profiles** = ``[]``
- .. rst-class:: classref-property-setget
- - void **set_interaction_profiles** **(** :ref:`Array<class_Array>` value **)**
- - :ref:`Array<class_Array>` **get_interaction_profiles** **(** **)**
- Collection of :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>`\ s that are part of this action map.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_OpenXRActionMap_method_add_action_set:
- .. rst-class:: classref-method
- void **add_action_set** **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)**
- Add an action set.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_add_interaction_profile:
- .. rst-class:: classref-method
- void **add_interaction_profile** **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)**
- Add an interaction profile.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_create_default_action_sets:
- .. rst-class:: classref-method
- void **create_default_action_sets** **(** **)**
- Setup this action set with our default actions.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_find_action_set:
- .. rst-class:: classref-method
- :ref:`OpenXRActionSet<class_OpenXRActionSet>` **find_action_set** **(** :ref:`String<class_String>` name **)** |const|
- Retrieve an action set by name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_find_interaction_profile:
- .. rst-class:: classref-method
- :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` **find_interaction_profile** **(** :ref:`String<class_String>` name **)** |const|
- Find an interaction profile by its name (path).
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_get_action_set:
- .. rst-class:: classref-method
- :ref:`OpenXRActionSet<class_OpenXRActionSet>` **get_action_set** **(** :ref:`int<class_int>` idx **)** |const|
- Retrieve the action set at this index.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_get_action_set_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_action_set_count** **(** **)** |const|
- Retrieve the number of actions sets in our action map.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_get_interaction_profile:
- .. rst-class:: classref-method
- :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` **get_interaction_profile** **(** :ref:`int<class_int>` idx **)** |const|
- Get the interaction profile at this index.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_get_interaction_profile_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_interaction_profile_count** **(** **)** |const|
- Retrieve the number of interaction profiles in our action map.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_remove_action_set:
- .. rst-class:: classref-method
- void **remove_action_set** **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)**
- Remove an action set.
- .. rst-class:: classref-item-separator
- ----
- .. _class_OpenXRActionMap_method_remove_interaction_profile:
- .. rst-class:: classref-method
- void **remove_interaction_profile** **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)**
- Remove an interaction profile.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|