Rename 'name' in XRController3D signal parameters to 'action_name'

This commit is contained in:
AtomicAntt
2026-05-01 13:34:17 -07:00
parent 16bb065ac3
commit 68283fbbc7
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -54,26 +54,26 @@
</methods>
<signals>
<signal name="button_pressed">
<param index="0" name="name" type="String" />
<param index="0" name="action_name" type="String" />
<description>
Emitted when a button on this controller is pressed.
</description>
</signal>
<signal name="button_released">
<param index="0" name="name" type="String" />
<param index="0" name="action_name" type="String" />
<description>
Emitted when a button on this controller is released.
</description>
</signal>
<signal name="input_float_changed">
<param index="0" name="name" type="String" />
<param index="0" name="action_name" type="String" />
<param index="1" name="value" type="float" />
<description>
Emitted when a trigger or similar input on this controller changes value.
</description>
</signal>
<signal name="input_vector2_changed">
<param index="0" name="name" type="String" />
<param index="0" name="action_name" type="String" />
<param index="1" name="value" type="Vector2" />
<description>
Emitted when a thumbstick or thumbpad on this controller is moved.
+4 -4
View File
@@ -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")));
}