From f1593f09122afa342067ba0cf8ac60ef3d7651d8 Mon Sep 17 00:00:00 2001 From: Ryan Thomas Payne <50511769+Ry0511@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:40:19 +0000 Subject: [PATCH 1/2] Handle new ordinal `Game.Willow1` in KNOWN_KEYS --- key_matching.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/key_matching.py b/key_matching.py index 9686658..3e73342 100644 --- a/key_matching.py +++ b/key_matching.py @@ -172,7 +172,9 @@ "Y", "Z", "Zero", - *(KNOWN_UE3_CONTROLLER_KEYS if Game.get_tree() == Game.Willow2 else KNOWN_UE4_CONTROLLER_KEYS), + *(KNOWN_UE3_CONTROLLER_KEYS + if Game.get_tree() in [Game.Willow1, Game.Willow2] + else KNOWN_UE4_CONTROLLER_KEYS), } # endregion From a407021186586e3a5292c8a0611c61b639c4a6cd Mon Sep 17 00:00:00 2001 From: apple1417 Date: Thu, 5 Jun 2025 20:34:12 +1200 Subject: [PATCH 2/2] cleanup, update changelog --- Readme.md | 2 +- key_matching.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 7afe8b7..8329476 100644 --- a/Readme.md +++ b/Readme.md @@ -21,7 +21,7 @@ a message as the second (both positionally), and show them in a temporary messag # Changelog ### v1.6 -- Linting fixes. +- Made Willow1 use UE3 controller key names. ### v1.5 - Support host-only coop support value. diff --git a/key_matching.py b/key_matching.py index 3e73342..2a977eb 100644 --- a/key_matching.py +++ b/key_matching.py @@ -172,9 +172,11 @@ "Y", "Z", "Zero", - *(KNOWN_UE3_CONTROLLER_KEYS - if Game.get_tree() in [Game.Willow1, Game.Willow2] - else KNOWN_UE4_CONTROLLER_KEYS), + *( + KNOWN_UE3_CONTROLLER_KEYS + if Game.get_tree() in [Game.Willow1, Game.Willow2] + else KNOWN_UE4_CONTROLLER_KEYS + ), } # endregion