Path: blob/master/modules/openxr/doc_classes/OpenXRActionMap.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="OpenXRActionMap" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Collection of [OpenXRActionSet] and [OpenXRInteractionProfile] resources for the OpenXR module.4</brief_description>5<description>6OpenXR 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.7Another 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.8The 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.9</description>10<tutorials>11</tutorials>12<methods>13<method name="add_action_set">14<return type="void" />15<param index="0" name="action_set" type="OpenXRActionSet" />16<description>17Add an action set.18</description>19</method>20<method name="add_interaction_profile">21<return type="void" />22<param index="0" name="interaction_profile" type="OpenXRInteractionProfile" />23<description>24Add an interaction profile.25</description>26</method>27<method name="create_default_action_sets">28<return type="void" />29<description>30Setup this action set with our default actions.31</description>32</method>33<method name="find_action_set" qualifiers="const">34<return type="OpenXRActionSet" />35<param index="0" name="name" type="String" />36<description>37Retrieve an action set by name.38</description>39</method>40<method name="find_interaction_profile" qualifiers="const">41<return type="OpenXRInteractionProfile" />42<param index="0" name="name" type="String" />43<description>44Find an interaction profile by its name (path).45</description>46</method>47<method name="get_action_set" qualifiers="const">48<return type="OpenXRActionSet" />49<param index="0" name="idx" type="int" />50<description>51Retrieve the action set at this index.52</description>53</method>54<method name="get_action_set_count" qualifiers="const">55<return type="int" />56<description>57Retrieve the number of actions sets in our action map.58</description>59</method>60<method name="get_interaction_profile" qualifiers="const">61<return type="OpenXRInteractionProfile" />62<param index="0" name="idx" type="int" />63<description>64Get the interaction profile at this index.65</description>66</method>67<method name="get_interaction_profile_count" qualifiers="const">68<return type="int" />69<description>70Retrieve the number of interaction profiles in our action map.71</description>72</method>73<method name="remove_action_set">74<return type="void" />75<param index="0" name="action_set" type="OpenXRActionSet" />76<description>77Remove an action set.78</description>79</method>80<method name="remove_interaction_profile">81<return type="void" />82<param index="0" name="interaction_profile" type="OpenXRInteractionProfile" />83<description>84Remove an interaction profile.85</description>86</method>87</methods>88<members>89<member name="action_sets" type="Array" setter="set_action_sets" getter="get_action_sets" default="[]">90Collection of [OpenXRActionSet]s that are part of this action map.91</member>92<member name="interaction_profiles" type="Array" setter="set_interaction_profiles" getter="get_interaction_profiles" default="[]">93Collection of [OpenXRInteractionProfile]s that are part of this action map.94</member>95</members>96</class>979899