You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fallback logic, only assign first time this is called.
119
+
if (binding_path != p_path) {
120
+
ERR_FAIL_COND_MSG(!binding_path.is_empty(), "Method add_path has been deprecated. A binding path was already set, create separate binding resources for each path and use set_binding_path instead.");
ERR_FAIL_COND_MSG(binding_path != p_path, "Method remove_path has been deprecated. Attempt at removing a different binding path, remove the correct binding record from the interaction profile instead.");
ERR_FAIL_COND_MSG(get_binding_for_action(p_binding->get_action()).is_valid(), "There is already a binding for this action in this interaction profile");
232
+
ERR_FAIL_COND_MSG(find_binding(p_binding->get_action(), p_binding->get_binding_path()).is_valid(), "There is already a binding for this action and binding path in this interaction profile.");
Copy file name to clipboardExpand all lines: modules/openxr/doc_classes/OpenXRIPBinding.xml
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,32 +4,32 @@
4
4
Defines a binding between an [OpenXRAction] and an XR input or output.
5
5
</brief_description>
6
6
<description>
7
-
This binding resource binds an [OpenXRAction] to inputs or outputs. As most controllers have left hand and right versions that are handled by the same interaction profile we can specify multiple bindings. For instance an action "Fire" could be bound to both "/user/hand/left/input/trigger" and "/user/hand/right/input/trigger".
7
+
This binding resource binds an [OpenXRAction] to an input or output. As most controllers have left hand and right versions that are handled by the same interaction profile we can specify multiple bindings. For instance an action "Fire" could be bound to both "/user/hand/left/input/trigger" and "/user/hand/right/input/trigger". This would require two binding entries.
8
8
</description>
9
9
<tutorials>
10
10
</tutorials>
11
11
<methods>
12
-
<methodname="add_path">
12
+
<methodname="add_path"deprecated="Binding is for a single path.">
13
13
<returntype="void" />
14
14
<paramindex="0"name="path"type="String" />
15
15
<description>
16
16
Add an input/output path to this binding.
17
17
</description>
18
18
</method>
19
-
<methodname="get_path_count"qualifiers="const">
19
+
<methodname="get_path_count"qualifiers="const"deprecated="Binding is for a single path.">
20
20
<returntype="int" />
21
21
<description>
22
22
Get the number of input/output paths in this binding.
23
23
</description>
24
24
</method>
25
-
<methodname="has_path"qualifiers="const">
25
+
<methodname="has_path"qualifiers="const"deprecated="Binding is for a single path.">
26
26
<returntype="bool" />
27
27
<paramindex="0"name="path"type="String" />
28
28
<description>
29
29
Returns [code]true[/code] if this input/output path is part of this binding.
30
30
</description>
31
31
</method>
32
-
<methodname="remove_path">
32
+
<methodname="remove_path"deprecated="Binding is for a single path.">
0 commit comments