Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

OpenXRDpadBindingModifier

Hérite de : OpenXRIPBindingModifier < OpenXRBindingModifier < Resource < RefCounted < Object

Le modificateur de liaison DPad (croix directionnelle) convertit une entrée d'axe en sortie de croix directionnelle.

Description

The DPad binding modifier converts an axis input to a dpad output, emulating a DPad. New input paths for each dpad direction will be added to the interaction profile. When bound to actions the DPad emulation will be activated. You should not combine dpad inputs with normal inputs in the same action set for the same control, this will result in an error being returned when suggested bindings are submitted to OpenXR.

See XR_EXT_dpad_binding for in-depth details.

Note: If the DPad binding modifier extension is enabled, all dpad binding paths will be available in the action map. Adding the modifier to an interaction profile allows you to further customize the behavior.

Propriétés

OpenXRActionSet

action_set

float

center_region

0.1

String

input_path

""

bool

is_sticky

false

OpenXRHapticBase

off_haptic

OpenXRHapticBase

on_haptic

float

threshold

0.6

float

threshold_released

0.4

float

wedge_angle

1.5707964


Descriptions des propriétés

OpenXRActionSet action_set 🔗

Ensemble d'action pour lequel ce modificateur de liaison dpad est actif.


float center_region = 0.1 🔗

  • void set_center_region(value: float)

  • float get_center_region()

Région centrale dans laquelle notre position centrale de notre croix directionnelle renvoie true.


String input_path = "" 🔗

  • void set_input_path(value: String)

  • String get_input_path()

Chemin d'entrée pour ce modificateur de liaison dpad.


bool is_sticky = false 🔗

  • void set_is_sticky(value: bool)

  • bool get_is_sticky()

Si false, lorsque le joystick entre dans une nouvelle zone du dpad, cela devient true.

Si true, lorsque le joystick reste dans la zone active du dpad, cela reste true même si nous nous chevauchons une autre zone.


OpenXRHapticBase off_haptic 🔗

L'impulsion haptique à émettre lorsque l'utilisateur relâche l'entrée.


OpenXRHapticBase on_haptic 🔗

L'impulsion haptique à émettre lorsque l'utilisateur appuie sur l'entrée.


float threshold = 0.6 🔗

  • void set_threshold(value: float)

  • float get_threshold()

Lorsque notre valeur d'entrée est supérieure ou égale à cette valeur, notre dpad dans cette direction devient true. Il reste à true jusqu'à ce qu'il tombe sous la valeur de threshold_released.


float threshold_released = 0.4 🔗

  • void set_threshold_released(value: float)

  • float get_threshold_released()

Lorsque notre valeur d'entrée tombe en dessous de ceci, notre sortie devient false.


float wedge_angle = 1.5707964 🔗

  • void set_wedge_angle(value: float)

  • float get_wedge_angle()

L'angle de chaque quart qui identifie les 4 directions du dpad émulé.