summaryrefslogtreecommitdiff
path: root/UI/Menu/KeyBindings.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-06-18 16:43:22 +0200
committerDaniel Weipert <code@drogueronin.de>2023-06-18 16:43:22 +0200
commit395c25b1fbe51f42decf402f97e51eabcc8c0a77 (patch)
tree72a17c71a39b53d328a76e111ae205d9538d64d0 /UI/Menu/KeyBindings.gd
parent2686ec6d4af6b5437a5f5a5cac008f3d38295f78 (diff)
Godot v3 -> v4
Diffstat (limited to 'UI/Menu/KeyBindings.gd')
-rw-r--r--UI/Menu/KeyBindings.gd4
1 files changed, 2 insertions, 2 deletions
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 = ""