From 924bfbe9895f70c498bb3532f4648f8a4f66b5fa Mon Sep 17 00:00:00 2001 From: Brikwerk Date: Wed, 22 Sep 2021 22:56:35 -0700 Subject: [PATCH] Fixed active input checking method --- nxbt/controller/input.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nxbt/controller/input.py b/nxbt/controller/input.py index c6272d7..6b27749 100644 --- a/nxbt/controller/input.py +++ b/nxbt/controller/input.py @@ -165,12 +165,13 @@ class InputParser(): :return: True (on an active button) or False (no active buttons) :rtype: bool """ - if (self.current_macro_commands is not None or - dumps(self.controller_input) != dumps(DIRECT_INPUT_IDLE_PACKET)): + if (self.current_macro_commands is not None): if len(self.current_macro_commands) < 2: return False else: return True + elif dumps(self.controller_input) != dumps(DIRECT_INPUT_IDLE_PACKET): + return True else: return False