pygameControls 0.0.5__tar.gz → 0.0.7__tar.gz
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-0.0.5 → pygamecontrols-0.0.7}/PKG-INFO +1 -1
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/controller.py +1 -1
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/dualsense_controller.py +6 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/dualsense_edge_controller.py +6 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls.egg-info/PKG-INFO +1 -1
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/setup.py +1 -1
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/LICENSE +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/README.md +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/__init__.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/controlsbase.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/generic_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/logitech_dual_action_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/logitech_f310_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/logitech_f510_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/logitech_f710_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/xbox_series_x_controller.py +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls.egg-info/SOURCES.txt +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls.egg-info/dependency_links.txt +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls.egg-info/top_level.txt +0 -0
- {pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/setup.cfg +0 -0
@@ -9,7 +9,7 @@ from .xbox_series_x_controller import XboxSeriesXController
|
|
9
9
|
from .generic_controller import GenericController
|
10
10
|
from .logitech_dual_action_controller import LogitechDualActionController
|
11
11
|
|
12
|
-
__version__ = "0.0.
|
12
|
+
__version__ = "0.0.7"
|
13
13
|
|
14
14
|
CONTROLLERS = {
|
15
15
|
"DualSense Wireless Controller": DualSenseController,
|
@@ -18,6 +18,12 @@ class DualSenseController(ControlsBase):
|
|
18
18
|
self.powerlevel = self.device.battery.Level
|
19
19
|
self.batterystate = BATTERY_STATE[str(self.device.battery.State)]
|
20
20
|
self.set_player_id(PlayerID.PLAYER_1)
|
21
|
+
self.numaxis: int = joy.get_numaxes()
|
22
|
+
self.axis: list = [joy.get_axis(a) for a in range(self.numaxis)]
|
23
|
+
self.numhats: int = joy.get_numhats()
|
24
|
+
self.hats: list = [joy.get_hat(h) for h in range(self.numhats)]
|
25
|
+
self.numbuttons: int = joy.get_numbuttons()
|
26
|
+
self.buttons: list = [joy.get_button(b) for b in range(self.numbuttons)]
|
21
27
|
self.mapping = {
|
22
28
|
"left stick x": self.axis[0],
|
23
29
|
"left stick y": self.axis[1],
|
@@ -10,6 +10,12 @@ class DualSenseEdgeController(ControlsBase):
|
|
10
10
|
self.powerlevel = self.device.battery.Level
|
11
11
|
self.batterystate = BATTERY_STATE[str(self.device.battery.State)]
|
12
12
|
self.set_player_id(PlayerID.PLAYER_1)
|
13
|
+
self.numaxis: int = joy.get_numaxes()
|
14
|
+
self.axis: list = [joy.get_axis(a) for a in range(self.numaxis)]
|
15
|
+
self.numhats: int = joy.get_numhats()
|
16
|
+
self.hats: list = [joy.get_hat(h) for h in range(self.numhats)]
|
17
|
+
self.numbuttons: int = joy.get_numbuttons()
|
18
|
+
self.buttons: list = [joy.get_button(b) for b in range(self.numbuttons)]
|
13
19
|
self.mapping = {
|
14
20
|
"left stick x": self.axis[0],
|
15
21
|
"left stick y": self.axis[1],
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pygamecontrols-0.0.5 → pygamecontrols-0.0.7}/pygameControls/logitech_dual_action_controller.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|