From 395c25b1fbe51f42decf402f97e51eabcc8c0a77 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 18 Jun 2023 16:43:22 +0200 Subject: Godot v3 -> v4 --- UI/Menu/KeyBindings.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'UI/Menu/KeyBindings.gd') diff --git a/UI/Menu/KeyBindings.gd b/UI/Menu/KeyBindings.gd index 4650be9..eca3d22 100644 --- a/UI/Menu/KeyBindings.gd +++ b/UI/Menu/KeyBindings.gd @@ -24,8 +24,8 @@ func set_keys(): var input = get_node("Panel/VBoxContainer/" + str(action) + "/Input") input.set_pressed(false) - var action_list = InputMap.get_action_list(action) - if action_list.empty(): + var action_list = InputMap.action_get_events(action) + if action_list.is_empty(): input.set_text("SET BUTTON") else: var text = "" -- cgit v1.2.3