Skip to content

OpenXRAnalogThresholdModifier

Inherits: OpenXRActionBindingModifier < OpenXRBindingModifier < Resource < RefCounted < Object

The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.

The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.

See XR_VALVE_analog_threshold for in-depth details.

Type Name Default
OpenXRHapticBase off_haptic
float off_threshold 0.4
OpenXRHapticBase on_haptic
float on_threshold 0.6

off_haptic

OpenXRHapticBase off_haptic

Haptic pulse to emit when the user releases the input.

off_threshold

float off_threshold = 0.4

When our input value falls below this, our output becomes false.

on_haptic

OpenXRHapticBase on_haptic

Haptic pulse to emit when the user presses the input.

on_threshold

float on_threshold = 0.6

When our input value is equal or larger than this value, our output becomes true. It stays true until it falls under the off_threshold value.