pygameControls 0.2.4__py3-none-any.whl → 0.2.6__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 +1 -4
- pygameControls/globals.py +4 -3
- {pygamecontrols-0.2.4.dist-info → pygamecontrols-0.2.6.dist-info}/METADATA +2 -2
- {pygamecontrols-0.2.4.dist-info → pygamecontrols-0.2.6.dist-info}/RECORD +7 -7
- {pygamecontrols-0.2.4.dist-info → pygamecontrols-0.2.6.dist-info}/WHEEL +1 -1
- {pygamecontrols-0.2.4.dist-info → pygamecontrols-0.2.6.dist-info}/licenses/LICENSE +0 -0
- {pygamecontrols-0.2.4.dist-info → pygamecontrols-0.2.6.dist-info}/top_level.txt +0 -0
pygameControls/controller.py
CHANGED
@@ -1,21 +1,18 @@
|
|
1
1
|
import pygame
|
2
2
|
from . import globals
|
3
3
|
|
4
|
-
__version__ = "0.2.
|
4
|
+
__version__ = "0.2.6"
|
5
5
|
|
6
6
|
class Controllers:
|
7
7
|
def __init__(self, joy):
|
8
8
|
globals.init()
|
9
9
|
self.controllers = []
|
10
10
|
cont = self.detect_controller(joy.get_guid())
|
11
|
-
print(cont)
|
12
11
|
self.controllers.append(cont(joy))
|
13
12
|
|
14
13
|
def detect_controller(self, guid):
|
15
14
|
for gp in globals.GAMEPADS:
|
16
|
-
print(gp)
|
17
15
|
for p in globals.GAMEPADS[gp]:
|
18
|
-
print(p)
|
19
16
|
if p["guid"] != guid:
|
20
17
|
continue
|
21
18
|
return p["class"]
|
pygameControls/globals.py
CHANGED
@@ -183,7 +183,7 @@ def init():
|
|
183
183
|
},
|
184
184
|
{
|
185
185
|
"vidpid": "046d:c21d",
|
186
|
-
"guid": "",
|
186
|
+
"guid": "0333443e6d0400001fc2000005030000",
|
187
187
|
"connection": ConnectionType.USB,
|
188
188
|
"input": InputType.XInput,
|
189
189
|
"name": [
|
@@ -194,12 +194,13 @@ def init():
|
|
194
194
|
},
|
195
195
|
{
|
196
196
|
"vidpid": "046d:c216",
|
197
|
-
"guid": "",
|
197
|
+
"guid": "03005d8e6d04000019c2000011010000",
|
198
198
|
"connection": ConnectionType.USB,
|
199
199
|
"input": InputType.DirectInput,
|
200
200
|
"name": [
|
201
201
|
"Logitech, Inc. F710 Gamepad [DirectInput Mode]",
|
202
|
-
"Logitech Dual Action"
|
202
|
+
"Logitech Dual Action",
|
203
|
+
"Logitech Cordless Rumblepad 2"
|
203
204
|
],
|
204
205
|
"class": CONTROLLERS["Logitech Dual Action"]
|
205
206
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pygameControls
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.6
|
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,11 +1,11 @@
|
|
1
1
|
pygameControls/__init__.py,sha256=Ivl6jPIP4xfrBe5kokd2FXP_CLV0bATuV3rorKfDcHI,25
|
2
|
-
pygameControls/controller.py,sha256=
|
2
|
+
pygameControls/controller.py,sha256=R6qZqZ4M9clV2o49_3hPt6PBp_20hUdwEOXoM1Um1ag,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
|
6
6
|
pygameControls/enums.py,sha256=r9xsepu6IBxBCABxtaGFP4Nh9zdA3yIcZnCJq0o3bEQ,190
|
7
7
|
pygameControls/generic_controller.py,sha256=ISgcrX1fMr1g0FTeqzsIpOlmpTr5RG_wmNgnzcu7UII,1736
|
8
|
-
pygameControls/globals.py,sha256=
|
8
|
+
pygameControls/globals.py,sha256=a42UVhCwU1ubs0iaLKQTw0cwRXdX5ioyEHA1f-qzqCw,8726
|
9
9
|
pygameControls/logitech_dual_action_controller.py,sha256=oPxhf6aBgxLX-1EeMhIITWxasZ65fI6_oMzIs2GxfMw,1984
|
10
10
|
pygameControls/logitech_f310_controller.py,sha256=_W1maT0kxuWGeDfp5ze4hKGDVNdj7cLH64uXdB4MP-c,1916
|
11
11
|
pygameControls/logitech_f510_controller.py,sha256=uzesKdvLJR0_EEwfD8gAAQr8ZdyANLuZ8qkKFJadcFM,2406
|
@@ -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.6.dist-info/licenses/LICENSE,sha256=KQMYrAM921Oeawv1XkqKG3PxDJy9v7wuu1vhr63d2CY,1070
|
20
|
+
pygamecontrols-0.2.6.dist-info/METADATA,sha256=j34PQZRf4iZJ9ejYIo_8B1zDaF-0KPJatWFidIcEhxc,790
|
21
|
+
pygamecontrols-0.2.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
22
|
+
pygamecontrols-0.2.6.dist-info/top_level.txt,sha256=Tg86INulVO2XDGUPiQCC68Zsl36kBlr0My-Bn-q04V8,15
|
23
|
+
pygamecontrols-0.2.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|