OpenXRIPBinding.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="OpenXRIPBinding" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. Defines a binding between an [OpenXRAction] and an XR input or output.
  5. </brief_description>
  6. <description>
  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. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_path" deprecated="Binding is for a single path.">
  13. <return type="void" />
  14. <param index="0" name="path" type="String" />
  15. <description>
  16. Add an input/output path to this binding.
  17. </description>
  18. </method>
  19. <method name="get_path_count" qualifiers="const" deprecated="Binding is for a single path.">
  20. <return type="int" />
  21. <description>
  22. Get the number of input/output paths in this binding.
  23. </description>
  24. </method>
  25. <method name="has_path" qualifiers="const" deprecated="Binding is for a single path.">
  26. <return type="bool" />
  27. <param index="0" name="path" type="String" />
  28. <description>
  29. Returns [code]true[/code] if this input/output path is part of this binding.
  30. </description>
  31. </method>
  32. <method name="remove_path" deprecated="Binding is for a single path.">
  33. <return type="void" />
  34. <param index="0" name="path" type="String" />
  35. <description>
  36. Removes this input/output path from this binding.
  37. </description>
  38. </method>
  39. </methods>
  40. <members>
  41. <member name="action" type="OpenXRAction" setter="set_action" getter="get_action">
  42. [OpenXRAction] that is bound to [member binding_path].
  43. </member>
  44. <member name="binding_path" type="String" setter="set_binding_path" getter="get_binding_path" default="&quot;&quot;">
  45. Binding path that defines the input or output bound to [member action].
  46. [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.
  47. </member>
  48. <member name="paths" type="PackedStringArray" setter="set_paths" getter="get_paths" deprecated="Use [member binding_path] instead.">
  49. Paths that define the inputs or outputs bound on the device.
  50. </member>
  51. </members>
  52. </class>