From 75fb3f577bdcd7b7a412bd71191556e9c535565b Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Sun, 20 Apr 2025 23:09:25 +0200 Subject: [PATCH] Update Xbox controller. /JL --- pygameControls/controller.py | 2 +- pygameControls/xbox_series_x_controller.py | 5 ++--- setup.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pygameControls/controller.py b/pygameControls/controller.py index 0d11dd8..cdfef14 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.4" +__version__ = "0.1.5" CONTROLLERS = { "DualSense Wireless Controller": DualSenseController, diff --git a/pygameControls/xbox_series_x_controller.py b/pygameControls/xbox_series_x_controller.py index f14da8e..0b58277 100644 --- a/pygameControls/xbox_series_x_controller.py +++ b/pygameControls/xbox_series_x_controller.py @@ -1,7 +1,6 @@ -import time -import threading +from pygameControls.controlsbase import ControlsBase -class XboxSeriesXController: +class XboxSeriesXController(ControlsBase): def __init__(self, joy): self.device = joy self.instance_id: int = self.device.get_instance_id() diff --git a/setup.py b/setup.py index 92f0330..ca07faa 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ if __name__ == "__main__": setup( name='pygameControls', - version='0.1.4', + version='0.1.5', packages=find_packages(), install_requires=[], author='Jan Lerking',