From d4b09da45347b20dc01dfcd29a4bf2bab3d04859 Mon Sep 17 00:00:00 2001 From: WhiteMagic Date: Thu, 1 Feb 2018 20:40:39 +1100 Subject: [PATCH] Correctly store UI changes in data class --- gremlin/ui/activation_condition.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gremlin/ui/activation_condition.py b/gremlin/ui/activation_condition.py index 26791996..2321dd15 100644 --- a/gremlin/ui/activation_condition.py +++ b/gremlin/ui/activation_condition.py @@ -411,6 +411,8 @@ def _comparison_changed_cb(self, text): self.condition_data.comparison = text.lower() elif self.condition_data.input_type == InputType.JoystickHat: self.condition_data.comparison = text.replace(" ", "-").lower() + elif self.condition_data.input_type == InputType.JoystickAxis: + self.condition_data.comparison = text.lower() else: logging.getLogger("system").warning( "Invalid input type encountered: {}".format(