pygameControls 0.1.8__tar.gz → 0.1.9__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.
Files changed (20) hide show
  1. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/PKG-INFO +1 -1
  2. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/controller.py +1 -1
  3. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/xbox_series_x_controller.py +4 -4
  4. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls.egg-info/PKG-INFO +1 -1
  5. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/setup.py +1 -1
  6. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/LICENSE +0 -0
  7. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/README.md +0 -0
  8. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/__init__.py +0 -0
  9. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/controlsbase.py +0 -0
  10. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/dualsense_controller.py +0 -0
  11. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/dualsense_edge_controller.py +0 -0
  12. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/generic_controller.py +0 -0
  13. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/logitech_dual_action_controller.py +0 -0
  14. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/logitech_f310_controller.py +0 -0
  15. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/logitech_f510_controller.py +0 -0
  16. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls/logitech_f710_controller.py +0 -0
  17. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls.egg-info/SOURCES.txt +0 -0
  18. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls.egg-info/dependency_links.txt +0 -0
  19. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/pygameControls.egg-info/top_level.txt +0 -0
  20. {pygamecontrols-0.1.8 → pygamecontrols-0.1.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygameControls
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: A simple controller class for pygame.
5
5
  Home-page:
6
6
  Author: Jan Lerking
@@ -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.1.8"
12
+ __version__ = "0.1.9"
13
13
 
14
14
  CONTROLLERS = {
15
15
  "DualSense Wireless Controller": DualSenseController,
@@ -37,7 +37,7 @@ class XboxSeriesXController(ControlsBase):
37
37
  print(f"{self.name} connected.")
38
38
 
39
39
  def close(self):
40
- pass
40
+ self.device.quit()
41
41
 
42
42
  def handle_input(self, event):
43
43
  pass
@@ -57,13 +57,13 @@ class XboxSeriesXController(ControlsBase):
57
57
  def pause(self):
58
58
  pass
59
59
 
60
- def rumble(self, left, right):
60
+ def rumble(self, left, right, duration=0):
61
61
  if not left in range(256) or not right in range(256):
62
62
  raise ValueError("left and right values must be in the range 0 - 255")
63
- self.joy.rumble(left, right)
63
+ self.device.rumble(left / 255, right / 255, duration)
64
64
 
65
65
  def stop_rumble(self):
66
- self.joy.rumble(0, 0)
66
+ self.device.stop_rumble()
67
67
 
68
68
  @property
69
69
  def name(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygameControls
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: A simple controller class for pygame.
5
5
  Home-page:
6
6
  Author: Jan Lerking
@@ -3,7 +3,7 @@ if __name__ == "__main__":
3
3
 
4
4
  setup(
5
5
  name='pygameControls',
6
- version='0.1.8',
6
+ version='0.1.9',
7
7
  packages=find_packages(),
8
8
  install_requires=[],
9
9
  author='Jan Lerking',
File without changes
File without changes
File without changes