From f2adcc512f756e657bc801224423fabee22215cc Mon Sep 17 00:00:00 2001 From: JHDev2006 Date: Mon, 29 Sep 2025 15:50:24 +0100 Subject: [PATCH] OK NOW IM DONE --- Scripts/UI/SelectableInputOptionNode.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/UI/SelectableInputOptionNode.gd b/Scripts/UI/SelectableInputOptionNode.gd index a804fcf..932d955 100644 --- a/Scripts/UI/SelectableInputOptionNode.gd +++ b/Scripts/UI/SelectableInputOptionNode.gd @@ -177,12 +177,15 @@ func _unhandled_input(event: InputEvent) -> void: if event is not InputEventJoypadButton and event is not InputEventJoypadMotion: return var device_name = Input.get_joy_name(event.device) + var old_brand = current_device_brand if device_name.to_upper().contains("NINTENDO") or device_name.to_upper().contains("SWITCH") or device_name.to_upper().contains("WII"): current_device_brand = 1 elif device_name.to_upper().contains("PS") or device_name.to_upper().contains("PLAYSTATION"): current_device_brand = 2 else: current_device_brand = 0 + if old_brand != current_device_brand: + update_value() func cancel_remap() -> void: awaiting_input = false