Cleanup code. /JL

This commit is contained in:
2025-05-06 20:57:58 +02:00
parent e02148c937
commit b0d364b15e
15 changed files with 2 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import pygame import pygame
from . import globals from . import globals
__version__ = "0.2.0" __version__ = "0.2.1"
class Controllers: class Controllers:
def __init__(self, joy): def __init__(self, joy):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from .enums import ConnectionType
from pydualsense import * from pydualsense import *
BATTERY_STATE = { BATTERY_STATE = {

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
from pydualsense import * from pydualsense import *

View File

@@ -1,6 +1,5 @@
import pygame import pygame
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
class GenericController(ControlsBase): class GenericController(ControlsBase):
def __init__(self, joy): def __init__(self, joy):

View File

@@ -14,7 +14,6 @@ This controller is a usb controller, with the following features.
import pygame import pygame
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
class LogitechDualActionController(ControlsBase): class LogitechDualActionController(ControlsBase):
def __init__(self, joy): def __init__(self, joy):

View File

@@ -14,7 +14,6 @@ This controller is a usb controller, with the following features.
import pygame import pygame
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
class LogitechF310Controller(ControlsBase): class LogitechF310Controller(ControlsBase):
def __init__(self, joy): def __init__(self, joy):

View File

@@ -7,7 +7,6 @@ Subsequent updates will be done, based on updates for the F310.
import pygame import pygame
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
class LogitechF510Controller(ControlsBase): class LogitechF510Controller(ControlsBase):
def __init__(self, joy): def __init__(self, joy):

View File

@@ -5,7 +5,6 @@ This controller is a usb/wireless controller.
import pygame import pygame
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
class LogitechF710Controller(ControlsBase): class LogitechF710Controller(ControlsBase):
def __init__(self, joy): def __init__(self, joy):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
import pygame import pygame
class PlayStation3Controller(ControlsBase): class PlayStation3Controller(ControlsBase):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
import pygame import pygame
class PlayStation4Controller(ControlsBase): class PlayStation4Controller(ControlsBase):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
import pygame import pygame
class SonyPlayStation3Controller(ControlsBase): class SonyPlayStation3Controller(ControlsBase):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
import pygame import pygame
class SonyPlayStation4Controller(ControlsBase): class SonyPlayStation4Controller(ControlsBase):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType, InputType
import pygame import pygame
class Xbox360Controller(ControlsBase): class Xbox360Controller(ControlsBase):

View File

@@ -1,5 +1,4 @@
from pygameControls.controlsbase import ControlsBase from pygameControls.controlsbase import ControlsBase
from enums import ConnectionType
import pygame import pygame
class XboxSeriesXController(ControlsBase): class XboxSeriesXController(ControlsBase):

View File

@@ -3,7 +3,7 @@ if __name__ == "__main__":
setup( setup(
name='pygameControls', name='pygameControls',
version='0.2.0', version='0.2.1',
packages=find_packages(), packages=find_packages(),
install_requires=[], install_requires=[],
author='Jan Lerking', author='Jan Lerking',