diff --git a/pygameControls/controller.py b/pygameControls/controller.py index 2b154e3..16b2a1e 100644 --- a/pygameControls/controller.py +++ b/pygameControls/controller.py @@ -9,7 +9,7 @@ from .xbox_series_x_controller import XboxSeriesXController from .generic_controller import GenericController from .logitech_dual_action_controller import LogitechDualActionController -__version__ = "0.1.6" +__version__ = "0.1.7" CONTROLLERS = { "DualSense Wireless Controller": DualSenseController, diff --git a/pygameControls/controlsbase.py b/pygameControls/controlsbase.py index 15bd352..5657c46 100644 --- a/pygameControls/controlsbase.py +++ b/pygameControls/controlsbase.py @@ -34,4 +34,8 @@ class ControlsBase(ABC): @abstractmethod def stop_rumble(self): + pass + + @abstractmethod + def close(self): pass \ No newline at end of file diff --git a/pygameControls/generic_controller.py b/pygameControls/generic_controller.py index 1b47a47..b9073ba 100644 --- a/pygameControls/generic_controller.py +++ b/pygameControls/generic_controller.py @@ -36,6 +36,9 @@ class GenericController(ControlsBase): } print(f"{self.name} connected.") + def close(self): + pass + def handle_input(self, event): pass diff --git a/pygameControls/logitech_dual_action_controller.py b/pygameControls/logitech_dual_action_controller.py index 41b85ab..314ef6a 100644 --- a/pygameControls/logitech_dual_action_controller.py +++ b/pygameControls/logitech_dual_action_controller.py @@ -56,7 +56,10 @@ class LogitechDualActionController(ControlsBase): "logo button": None } print(f"{self.name} connected.") - + + def close(self): + pass + def handle_input(self, event): pass diff --git a/pygameControls/logitech_f310_controller.py b/pygameControls/logitech_f310_controller.py index 3bad3d8..6e22bab 100644 --- a/pygameControls/logitech_f310_controller.py +++ b/pygameControls/logitech_f310_controller.py @@ -57,6 +57,9 @@ class LogitechF310Controller(ControlsBase): } print(f"{self.name} connected.") + def close(self): + pass + def handle_input(self, event): pass diff --git a/pygameControls/logitech_f510_controller.py b/pygameControls/logitech_f510_controller.py index 7892e27..5494427 100644 --- a/pygameControls/logitech_f510_controller.py +++ b/pygameControls/logitech_f510_controller.py @@ -59,6 +59,9 @@ class LogitechF510Controller(ControlsBase): } print(f"{self.name} connected.") + def close(self): + pass + def handle_input(self, event): pass diff --git a/pygameControls/logitech_f710_controller.py b/pygameControls/logitech_f710_controller.py index e80a130..e3c1c5e 100644 --- a/pygameControls/logitech_f710_controller.py +++ b/pygameControls/logitech_f710_controller.py @@ -59,6 +59,9 @@ class LogitechF710Controller(ControlsBase): } print(f"{self.name} connected.") + def close(self): + pass + def handle_input(self, event): pass diff --git a/pygameControls/xbox_series_x_controller.py b/pygameControls/xbox_series_x_controller.py index 0b58277..145009f 100644 --- a/pygameControls/xbox_series_x_controller.py +++ b/pygameControls/xbox_series_x_controller.py @@ -36,6 +36,9 @@ class XboxSeriesXController(ControlsBase): } print(f"{self.name} connected.") + def close(self): + pass + def handle_input(self, event): pass diff --git a/setup.py b/setup.py index fb22ec2..5db052c 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ if __name__ == "__main__": setup( name='pygameControls', - version='0.1.6', + version='0.1.7', packages=find_packages(), install_requires=[], author='Jan Lerking',