class_openxractionmap.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRActionMap.xml.
  6. .. _class_OpenXRActionMap:
  7. OpenXRActionMap
  8. ===============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Collection of :ref:`OpenXRActionSet<class_OpenXRActionSet>` and :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` resources for the OpenXR module.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. 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.
  16. 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.
  17. .. rst-class:: classref-reftable-group
  18. Properties
  19. ----------
  20. .. table::
  21. :widths: auto
  22. +---------------------------+----------------------------------------------------------------------------------+--------+
  23. | :ref:`Array<class_Array>` | :ref:`action_sets<class_OpenXRActionMap_property_action_sets>` | ``[]`` |
  24. +---------------------------+----------------------------------------------------------------------------------+--------+
  25. | :ref:`Array<class_Array>` | :ref:`interaction_profiles<class_OpenXRActionMap_property_interaction_profiles>` | ``[]`` |
  26. +---------------------------+----------------------------------------------------------------------------------+--------+
  27. .. rst-class:: classref-reftable-group
  28. Methods
  29. -------
  30. .. table::
  31. :widths: auto
  32. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`add_action_set<class_OpenXRActionMap_method_add_action_set>` **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)** |
  34. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`add_interaction_profile<class_OpenXRActionMap_method_add_interaction_profile>` **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)** |
  36. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`create_default_action_sets<class_OpenXRActionMap_method_create_default_action_sets>` **(** **)** |
  38. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`OpenXRActionSet<class_OpenXRActionSet>` | :ref:`find_action_set<class_OpenXRActionMap_method_find_action_set>` **(** :ref:`String<class_String>` name **)** |const| |
  40. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` | :ref:`find_interaction_profile<class_OpenXRActionMap_method_find_interaction_profile>` **(** :ref:`String<class_String>` name **)** |const| |
  42. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`OpenXRActionSet<class_OpenXRActionSet>` | :ref:`get_action_set<class_OpenXRActionMap_method_get_action_set>` **(** :ref:`int<class_int>` idx **)** |const| |
  44. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`int<class_int>` | :ref:`get_action_set_count<class_OpenXRActionMap_method_get_action_set_count>` **(** **)** |const| |
  46. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` | :ref:`get_interaction_profile<class_OpenXRActionMap_method_get_interaction_profile>` **(** :ref:`int<class_int>` idx **)** |const| |
  48. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`int<class_int>` | :ref:`get_interaction_profile_count<class_OpenXRActionMap_method_get_interaction_profile_count>` **(** **)** |const| |
  50. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`remove_action_set<class_OpenXRActionMap_method_remove_action_set>` **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)** |
  52. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`remove_interaction_profile<class_OpenXRActionMap_method_remove_interaction_profile>` **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)** |
  54. +-----------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. .. rst-class:: classref-section-separator
  56. ----
  57. .. rst-class:: classref-descriptions-group
  58. Property Descriptions
  59. ---------------------
  60. .. _class_OpenXRActionMap_property_action_sets:
  61. .. rst-class:: classref-property
  62. :ref:`Array<class_Array>` **action_sets** = ``[]``
  63. .. rst-class:: classref-property-setget
  64. - void **set_action_sets** **(** :ref:`Array<class_Array>` value **)**
  65. - :ref:`Array<class_Array>` **get_action_sets** **(** **)**
  66. Collection of :ref:`OpenXRActionSet<class_OpenXRActionSet>`\ s that are part of this action map.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_OpenXRActionMap_property_interaction_profiles:
  70. .. rst-class:: classref-property
  71. :ref:`Array<class_Array>` **interaction_profiles** = ``[]``
  72. .. rst-class:: classref-property-setget
  73. - void **set_interaction_profiles** **(** :ref:`Array<class_Array>` value **)**
  74. - :ref:`Array<class_Array>` **get_interaction_profiles** **(** **)**
  75. Collection of :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>`\ s that are part of this action map.
  76. .. rst-class:: classref-section-separator
  77. ----
  78. .. rst-class:: classref-descriptions-group
  79. Method Descriptions
  80. -------------------
  81. .. _class_OpenXRActionMap_method_add_action_set:
  82. .. rst-class:: classref-method
  83. void **add_action_set** **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)**
  84. Add an action set.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_OpenXRActionMap_method_add_interaction_profile:
  88. .. rst-class:: classref-method
  89. void **add_interaction_profile** **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)**
  90. Add an interaction profile.
  91. .. rst-class:: classref-item-separator
  92. ----
  93. .. _class_OpenXRActionMap_method_create_default_action_sets:
  94. .. rst-class:: classref-method
  95. void **create_default_action_sets** **(** **)**
  96. Setup this action set with our default actions.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _class_OpenXRActionMap_method_find_action_set:
  100. .. rst-class:: classref-method
  101. :ref:`OpenXRActionSet<class_OpenXRActionSet>` **find_action_set** **(** :ref:`String<class_String>` name **)** |const|
  102. Retrieve an action set by name.
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_OpenXRActionMap_method_find_interaction_profile:
  106. .. rst-class:: classref-method
  107. :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` **find_interaction_profile** **(** :ref:`String<class_String>` name **)** |const|
  108. Find an interaction profile by its name (path).
  109. .. rst-class:: classref-item-separator
  110. ----
  111. .. _class_OpenXRActionMap_method_get_action_set:
  112. .. rst-class:: classref-method
  113. :ref:`OpenXRActionSet<class_OpenXRActionSet>` **get_action_set** **(** :ref:`int<class_int>` idx **)** |const|
  114. Retrieve the action set at this index.
  115. .. rst-class:: classref-item-separator
  116. ----
  117. .. _class_OpenXRActionMap_method_get_action_set_count:
  118. .. rst-class:: classref-method
  119. :ref:`int<class_int>` **get_action_set_count** **(** **)** |const|
  120. Retrieve the number of actions sets in our action map.
  121. .. rst-class:: classref-item-separator
  122. ----
  123. .. _class_OpenXRActionMap_method_get_interaction_profile:
  124. .. rst-class:: classref-method
  125. :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` **get_interaction_profile** **(** :ref:`int<class_int>` idx **)** |const|
  126. Get the interaction profile at this index.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_OpenXRActionMap_method_get_interaction_profile_count:
  130. .. rst-class:: classref-method
  131. :ref:`int<class_int>` **get_interaction_profile_count** **(** **)** |const|
  132. Retrieve the number of interaction profiles in our action map.
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_OpenXRActionMap_method_remove_action_set:
  136. .. rst-class:: classref-method
  137. void **remove_action_set** **(** :ref:`OpenXRActionSet<class_OpenXRActionSet>` action_set **)**
  138. Remove an action set.
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _class_OpenXRActionMap_method_remove_interaction_profile:
  142. .. rst-class:: classref-method
  143. void **remove_interaction_profile** **(** :ref:`OpenXRInteractionProfile<class_OpenXRInteractionProfile>` interaction_profile **)**
  144. Remove an interaction profile.
  145. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  146. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  147. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  148. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  149. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  150. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  151. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`