From f16af07019030912902f262a683b33954dbab9e4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 25 Sep 2025 14:55:35 +0200 Subject: Refactor InputManager (close #408) --- client/gui/overlays/popup_message/popup_message.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/gui/overlays/popup_message') diff --git a/client/gui/overlays/popup_message/popup_message.gd b/client/gui/overlays/popup_message/popup_message.gd index 6a3d8273..74268958 100644 --- a/client/gui/overlays/popup_message/popup_message.gd +++ b/client/gui/overlays/popup_message/popup_message.gd @@ -178,8 +178,8 @@ func _on_zoom_timeout(): )])) func display_keybind(action_name: String) -> String: - var events := InputManager.get_events(action_name) - + var events = Settings.read("input.%s" % action_name) + if events.size() == 0: # There are no events which match the action return tr("c.settings.input.unknown_event") -- cgit v1.2.3-70-g09d2