diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-25 14:55:35 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-25 14:55:35 +0200 |
commit | f16af07019030912902f262a683b33954dbab9e4 (patch) | |
tree | 432cfd25d3f6d69f7a8e32f52fa2e109bda68edb /client/gui/overlays/popup_message | |
parent | f50f7dee84c93380bb9c6ca1b0dc209181293092 (diff) | |
download | hurrycurry-f16af07019030912902f262a683b33954dbab9e4.tar hurrycurry-f16af07019030912902f262a683b33954dbab9e4.tar.bz2 hurrycurry-f16af07019030912902f262a683b33954dbab9e4.tar.zst |
Refactor InputManager (close #408)
Diffstat (limited to 'client/gui/overlays/popup_message')
-rw-r--r-- | client/gui/overlays/popup_message/popup_message.gd | 4 |
1 files changed, 2 insertions, 2 deletions
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") |