From 96ae8860d5a18833b5a0879e68598814fabadb3e Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Wed, 7 May 2025 21:40:40 +0200 Subject: [PATCH] Updated initialization code. /JL --- README.md | 2 +- main.py | 1 - pygameControls/controller.py | 3 ++- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6186f74..6843039 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ Small module to make it easy to add controller support. ![Tests](https://gitpot-lerking.servehttp.com/api/v1/badges/CodingPirates/PyGame-Controller/workflows/test.yml) -![Version](https://img.shields.io/badge/version-0.2.3-blue) \ No newline at end of file +![Version](https://img.shields.io/badge/version-0.2.4-blue) \ No newline at end of file diff --git a/main.py b/main.py index ea05694..a3f1247 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,6 @@ from pygameControls import globals if __name__ == "__main__": pygame.init() - globals.init() done = False diff --git a/pygameControls/controller.py b/pygameControls/controller.py index 3e61b19..c867ea7 100644 --- a/pygameControls/controller.py +++ b/pygameControls/controller.py @@ -1,10 +1,11 @@ import pygame from . import globals -__version__ = "0.2.3" +__version__ = "0.2.4" class Controllers: def __init__(self, joy): + globals.init() self.controllers = [] cont = self.detect_controller(joy.get_guid()) print(cont) diff --git a/setup.py b/setup.py index 13efc43..2b5af56 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ if __name__ == "__main__": setup( name='pygameControls', - version='0.2.3', + version='0.2.4', packages=find_packages(), install_requires=[], author='Jan Lerking',