mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
69 lines
3.1 KiB
XML
69 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="OpenXRIPBinding" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
|
<brief_description>
|
|
Defines a binding between an [OpenXRAction] and an XR input or output.
|
|
</brief_description>
|
|
<description>
|
|
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.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="add_path" deprecated="Binding is for a single path.">
|
|
<return type="void" />
|
|
<param index="0" name="path" type="String" />
|
|
<description>
|
|
Add an input/output path to this binding.
|
|
</description>
|
|
</method>
|
|
<method name="get_binding_modifier" qualifiers="const">
|
|
<return type="OpenXRActionBindingModifier" />
|
|
<param index="0" name="index" type="int" />
|
|
<description>
|
|
Get the [OpenXRBindingModifier] at this index.
|
|
</description>
|
|
</method>
|
|
<method name="get_binding_modifier_count" qualifiers="const">
|
|
<return type="int" />
|
|
<description>
|
|
Get the number of binding modifiers for this binding.
|
|
</description>
|
|
</method>
|
|
<method name="get_path_count" qualifiers="const" deprecated="Binding is for a single path.">
|
|
<return type="int" />
|
|
<description>
|
|
Get the number of input/output paths in this binding.
|
|
</description>
|
|
</method>
|
|
<method name="has_path" qualifiers="const" deprecated="Binding is for a single path.">
|
|
<return type="bool" />
|
|
<param index="0" name="path" type="String" />
|
|
<description>
|
|
Returns [code]true[/code] if this input/output path is part of this binding.
|
|
</description>
|
|
</method>
|
|
<method name="remove_path" deprecated="Binding is for a single path.">
|
|
<return type="void" />
|
|
<param index="0" name="path" type="String" />
|
|
<description>
|
|
Removes this input/output path from this binding.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="action" type="OpenXRAction" setter="set_action" getter="get_action">
|
|
[OpenXRAction] that is bound to [member binding_path].
|
|
</member>
|
|
<member name="binding_modifiers" type="Array" setter="set_binding_modifiers" getter="get_binding_modifiers" default="[]">
|
|
Binding modifiers for this binding.
|
|
</member>
|
|
<member name="binding_path" type="String" setter="set_binding_path" getter="get_binding_path" default="""">
|
|
Binding path that defines the input or output bound to [member action].
|
|
[b]Note:[/b] Binding paths are suggestions, an XR runtime may choose to bind the action to a different input or output emulating this input or output.
|
|
</member>
|
|
<member name="paths" type="PackedStringArray" setter="set_paths" getter="get_paths" deprecated="Use [member binding_path] instead.">
|
|
Paths that define the inputs or outputs bound on the device.
|
|
</member>
|
|
</members>
|
|
</class>
|