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

Hereda: OpenXRIPBindingModifier < OpenXRBindingModifier < Resource < RefCounted < Object

El modificador de enlace DPad convierte una entrada de eje en una salida de dpad.

Descripción

El modificador de enlace DPad convierte una entrada de eje en una salida de dpad, emulando un DPad. Se añadirán nuevas rutas de entrada para cada dirección del dpad al perfil de interacción. Cuando se vincula a acciones, la emulación del DPad se activará. No debe combinar entradas de dpad con entradas normales en el mismo conjunto de acciones para el mismo control, esto resultará en un error que se devolverá cuando se envíen los enlaces sugeridos a OpenXR.

Véase XR_EXT_dpad_binding para obtener detalles en profundidad.

Nota: Si la extensión del modificador de enlace DPad está habilitada, todas las rutas de enlace de dpad estarán disponibles en el mapa de acciones. Añadir el modificador a un perfil de interacción te permite personalizar aún más el comportamiento.

Propiedades

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


Descripciones de Propiedades

OpenXRActionSet action_set 🔗

Conjunto de acciones para el que este modificador de enlace de dpad está activo.


float center_region = 0.1 🔗

  • void set_center_region(value: float)

  • float get_center_region()

Región central en la que nuestra posición central de nuestro dpad devuelve true.


String input_path = "" 🔗

  • void set_input_path(value: String)

  • String get_input_path()

Ruta de entrada para este modificador de enlace de dpad.


bool is_sticky = false 🔗

  • void set_is_sticky(value: bool)

  • bool get_is_sticky()

Si es false, cuando el joystick entra en una nueva zona de dpad, esto se convierte en true.

Si es true, cuando el joystick permanece en la zona dpad activa, esto permanece true incluso si nos superponemos con otra zona.


OpenXRHapticBase off_haptic 🔗

Haptic pulse to emit when the user releases the input.


OpenXRHapticBase on_haptic 🔗

Haptic pulse to emit when the user presses the input.


float threshold = 0.6 🔗

  • void set_threshold(value: float)

  • float get_threshold()

Cuando nuestro valor de entrada es igual o mayor que este valor, nuestro dpad en esa dirección se convierte en true. Permanece true hasta que cae por debajo del valor threshold_released.


float threshold_released = 0.4 🔗

  • void set_threshold_released(value: float)

  • float get_threshold_released()

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


float wedge_angle = 1.5707964 🔗

  • void set_wedge_angle(value: float)

  • float get_wedge_angle()

El ángulo de cada cuña que identifica las 4 direcciones del dpad emulado.