From 68283fbbc780dd12bb49d8a0316c875f8e632f2f Mon Sep 17 00:00:00 2001 From: AtomicAntt Date: Fri, 1 May 2026 13:34:17 -0700 Subject: [PATCH] Rename 'name' in XRController3D signal parameters to 'action_name' --- doc/classes/XRController3D.xml | 8 ++++---- scene/3d/xr/xr_nodes.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/classes/XRController3D.xml b/doc/classes/XRController3D.xml index bd49f10b0d..0903e0a55f 100644 --- a/doc/classes/XRController3D.xml +++ b/doc/classes/XRController3D.xml @@ -54,26 +54,26 @@ - + Emitted when a button on this controller is pressed. - + Emitted when a button on this controller is released. - + Emitted when a trigger or similar input on this controller changes value. - + Emitted when a thumbstick or thumbpad on this controller is moved. diff --git a/scene/3d/xr/xr_nodes.cpp b/scene/3d/xr/xr_nodes.cpp index 7f58ca9a6d..e3eda295d9 100644 --- a/scene/3d/xr/xr_nodes.cpp +++ b/scene/3d/xr/xr_nodes.cpp @@ -534,10 +534,10 @@ void XRController3D::_bind_methods() { ClassDB::bind_method(D_METHOD("get_tracker_hand"), &XRController3D::get_tracker_hand); - ADD_SIGNAL(MethodInfo("button_pressed", PropertyInfo(Variant::STRING, "name"))); - ADD_SIGNAL(MethodInfo("button_released", PropertyInfo(Variant::STRING, "name"))); - ADD_SIGNAL(MethodInfo("input_float_changed", PropertyInfo(Variant::STRING, "name"), PropertyInfo(Variant::FLOAT, "value"))); - ADD_SIGNAL(MethodInfo("input_vector2_changed", PropertyInfo(Variant::STRING, "name"), PropertyInfo(Variant::VECTOR2, "value"))); + ADD_SIGNAL(MethodInfo("button_pressed", PropertyInfo(Variant::STRING, "action_name"))); + ADD_SIGNAL(MethodInfo("button_released", PropertyInfo(Variant::STRING, "action_name"))); + ADD_SIGNAL(MethodInfo("input_float_changed", PropertyInfo(Variant::STRING, "action_name"), PropertyInfo(Variant::FLOAT, "value"))); + ADD_SIGNAL(MethodInfo("input_vector2_changed", PropertyInfo(Variant::STRING, "action_name"), PropertyInfo(Variant::VECTOR2, "value"))); ADD_SIGNAL(MethodInfo("profile_changed", PropertyInfo(Variant::STRING, "role"))); }