Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/openxr/doc_classes/OpenXRAnalogThresholdModifier.xml
10278 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="OpenXRAnalogThresholdModifier" inherits="OpenXRActionBindingModifier" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3
<brief_description>
4
The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.
5
</brief_description>
6
<description>
7
The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.
8
See [url=https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#XR_VALVE_analog_threshold]XR_VALVE_analog_threshold[/url] for in-depth details.
9
</description>
10
<tutorials>
11
</tutorials>
12
<members>
13
<member name="off_haptic" type="OpenXRHapticBase" setter="set_off_haptic" getter="get_off_haptic">
14
Haptic pulse to emit when the user releases the input.
15
</member>
16
<member name="off_threshold" type="float" setter="set_off_threshold" getter="get_off_threshold" default="0.4">
17
When our input value falls below this, our output becomes [code]false[/code].
18
</member>
19
<member name="on_haptic" type="OpenXRHapticBase" setter="set_on_haptic" getter="get_on_haptic">
20
Haptic pulse to emit when the user presses the input.
21
</member>
22
<member name="on_threshold" type="float" setter="set_on_threshold" getter="get_on_threshold" default="0.6">
23
When our input value is equal or larger than this value, our output becomes [code]true[/code]. It stays [code]true[/code] until it falls under the [member off_threshold] value.
24
</member>
25
</members>
26
</class>
27
28