pygameControls 0.2.3__py3-none-any.whl → 0.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pygameControls/controller.py +2 -4
- {pygamecontrols-0.2.3.dist-info → pygamecontrols-0.2.5.dist-info}/METADATA +2 -2
- {pygamecontrols-0.2.3.dist-info → pygamecontrols-0.2.5.dist-info}/RECORD +6 -6
- {pygamecontrols-0.2.3.dist-info → pygamecontrols-0.2.5.dist-info}/WHEEL +0 -0
- {pygamecontrols-0.2.3.dist-info → pygamecontrols-0.2.5.dist-info}/licenses/LICENSE +0 -0
- {pygamecontrols-0.2.3.dist-info → pygamecontrols-0.2.5.dist-info}/top_level.txt +0 -0
pygameControls/controller.py
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
import pygame
|
2
2
|
from . import globals
|
3
3
|
|
4
|
-
__version__ = "0.2.
|
4
|
+
__version__ = "0.2.5"
|
5
5
|
|
6
6
|
class Controllers:
|
7
7
|
def __init__(self, joy):
|
8
|
+
globals.init()
|
8
9
|
self.controllers = []
|
9
10
|
cont = self.detect_controller(joy.get_guid())
|
10
|
-
print(cont)
|
11
11
|
self.controllers.append(cont(joy))
|
12
12
|
|
13
13
|
def detect_controller(self, guid):
|
14
14
|
for gp in globals.GAMEPADS:
|
15
|
-
print(gp)
|
16
15
|
for p in globals.GAMEPADS[gp]:
|
17
|
-
print(p)
|
18
16
|
if p["guid"] != guid:
|
19
17
|
continue
|
20
18
|
return p["class"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pygameControls
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.5
|
4
4
|
Summary: A simple controller class for pygame.
|
5
5
|
Home-page:
|
6
6
|
Author: Jan Lerking
|
@@ -24,4 +24,4 @@ Dynamic: summary
|
|
24
24
|
Small module to make it easy to add controller support.
|
25
25
|
|
26
26
|

|
27
|
-

|
@@ -1,5 +1,5 @@
|
|
1
1
|
pygameControls/__init__.py,sha256=Ivl6jPIP4xfrBe5kokd2FXP_CLV0bATuV3rorKfDcHI,25
|
2
|
-
pygameControls/controller.py,sha256=
|
2
|
+
pygameControls/controller.py,sha256=TiORzbTAvzzVX65-yqOP5A-o_exvFRQX7RKB0EIyyNE,534
|
3
3
|
pygameControls/controlsbase.py,sha256=2o4gxsbP50IesYv9dye_RKA_2gzStVSH5G0BG5hgnG8,668
|
4
4
|
pygameControls/dualsense_controller.py,sha256=7mftYzEZeHMIX3qiLCR0_bG9SCIYWpPkTkNGzevN54E,2998
|
5
5
|
pygameControls/dualsense_edge_controller.py,sha256=8ZInDWP8hYLIdL3_0qwR49jBenPO9BHrh_PgQYasrBE,3328
|
@@ -16,8 +16,8 @@ pygameControls/sony_playstation3_controller.py,sha256=I4EMhX5M7FbzvXNLvGJOzSGunl
|
|
16
16
|
pygameControls/sony_playstation4_controller.py,sha256=j0xnvuvtiUzlGT97szJ9VHbe2M6FE2WdncF2iwURINc,1959
|
17
17
|
pygameControls/xbox_360_controller.py,sha256=Y2lhkeqlfHRpOcTj2X_L4bG8uYNqHw9dFWiIhehHdH4,1959
|
18
18
|
pygameControls/xbox_series_x_controller.py,sha256=EY4pvQWTTRPO2wSK4QhiAFTKShTMD6Vq79rZ2U-acBw,1963
|
19
|
-
pygamecontrols-0.2.
|
20
|
-
pygamecontrols-0.2.
|
21
|
-
pygamecontrols-0.2.
|
22
|
-
pygamecontrols-0.2.
|
23
|
-
pygamecontrols-0.2.
|
19
|
+
pygamecontrols-0.2.5.dist-info/licenses/LICENSE,sha256=KQMYrAM921Oeawv1XkqKG3PxDJy9v7wuu1vhr63d2CY,1070
|
20
|
+
pygamecontrols-0.2.5.dist-info/METADATA,sha256=QY_WNIeJuxyrNTHu7oW9H3Cv28OztS7oq3SUKZgZH-I,790
|
21
|
+
pygamecontrols-0.2.5.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
22
|
+
pygamecontrols-0.2.5.dist-info/top_level.txt,sha256=Tg86INulVO2XDGUPiQCC68Zsl36kBlr0My-Bn-q04V8,15
|
23
|
+
pygamecontrols-0.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|