pygameControls 0.1.9__tar.gz → 0.1.11__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.9 → pygamecontrols-0.1.11}/PKG-INFO +1 -1
  2. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/controller.py +1 -1
  3. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/dualsense_controller.py +11 -19
  4. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/generic_controller.py +12 -18
  5. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/logitech_dual_action_controller.py +12 -18
  6. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/logitech_f310_controller.py +11 -19
  7. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/logitech_f510_controller.py +11 -19
  8. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/logitech_f710_controller.py +11 -19
  9. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/xbox_series_x_controller.py +12 -20
  10. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls.egg-info/PKG-INFO +1 -1
  11. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/setup.py +1 -1
  12. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/LICENSE +0 -0
  13. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/README.md +0 -0
  14. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/__init__.py +0 -0
  15. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/controlsbase.py +0 -0
  16. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls/dualsense_edge_controller.py +0 -0
  17. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls.egg-info/SOURCES.txt +0 -0
  18. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls.egg-info/dependency_links.txt +0 -0
  19. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/pygameControls.egg-info/top_level.txt +0 -0
  20. {pygamecontrols-0.1.9 → pygamecontrols-0.1.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygameControls
3
- Version: 0.1.9
3
+ Version: 0.1.11
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.9"
12
+ __version__ = "0.1.11"
13
13
 
14
14
  CONTROLLERS = {
15
15
  "DualSense Wireless Controller": DualSenseController,
@@ -25,25 +25,17 @@ class DualSenseController(ControlsBase):
25
25
  self.numbuttons: int = joy.get_numbuttons()
26
26
  self.buttons: list = [joy.get_button(b) for b in range(self.numbuttons)]
27
27
  self.mapping = {
28
- "left stick x": self.axis[0],
29
- "left stick y": self.axis[1],
30
- "right stick x": self.axis[3],
31
- "right stick y": self.axis[4],
32
- "right trigger": self.buttons[5],
33
- "left trigger": self.buttons[2],
34
- "dhat x": self.hats[0][0],
35
- "dhat y": self.hats[0][1],
36
- "left button": self.buttons[4],
37
- "right button": self.buttons[5],
38
- "cross button": self.buttons[0],
39
- "triangle button": self.buttons[2],
40
- "circle button": self.buttons[1],
41
- "square button": self.buttons[3],
42
- "left stick button": self.buttons[11],
43
- "right stick button": self.buttons[12],
44
- "connect button": self.buttons[8],
45
- "list button": self.buttons[9],
46
- "logo button": self.buttons[10]
28
+ "l1 button": 4,
29
+ "r1 button": 5,
30
+ "cross button": 0,
31
+ "triangle button": 2,
32
+ "circle button": 1,
33
+ "square button": 3,
34
+ "left stick button": 11,
35
+ "right stick button": 12,
36
+ "connect button": 8,
37
+ "list button": 9,
38
+ "logo button": 10
47
39
  }
48
40
  print(f"{self.name} connected")
49
41
  print(f"Power level: {self.powerlevel}")
@@ -14,24 +14,18 @@ class GenericController(ControlsBase):
14
14
  self.numbuttons: int = self.device.get_numbuttons()
15
15
  self.buttons: list = [self.device.get_button(b) for b in range(self.numbuttons)]
16
16
  self.mapping = {
17
- "left stick x": self.axis[0],
18
- "left stick y": self.axis[1],
19
- "right stick x": self.axis[2],
20
- "right stick y": self.axis[3],
21
- "right trigger": self.buttons[7],
22
- "left trigger": self.buttons[6],
23
- "dhat x": self.hats[0][0],
24
- "dhat y": self.hats[0][1],
25
- "left button": self.buttons[4],
26
- "right button": self.buttons[5],
27
- "X button": self.buttons[0],
28
- "Y button": self.buttons[3],
29
- "A button": self.buttons[1],
30
- "B button": self.buttons[2],
31
- "left stick button": self.buttons[10],
32
- "right stick button": self.buttons[11],
33
- "back button": self.buttons[8],
34
- "start button": self.buttons[9],
17
+ "r2 trigger": 7,
18
+ "l2 trigger": 6,
19
+ "l1 button": 4,
20
+ "r1 button": 5,
21
+ "X button": 0,
22
+ "Y button": 3,
23
+ "A button": 1,
24
+ "B button": 2,
25
+ "left stick button": 10,
26
+ "right stick button": 11,
27
+ "back button": 8,
28
+ "start button": 9,
35
29
  "logo button": None
36
30
  }
37
31
  print(f"{self.name} connected.")
@@ -35,24 +35,18 @@ class LogitechDualActionController(ControlsBase):
35
35
  self.buttons: list = [self.device.get_button(b) for b in range(self.numbuttons)]
36
36
  self.input_mode = InputMode.DirectInput
37
37
  self.mapping = {
38
- "left stick x": self.axis[0],
39
- "left stick y": self.axis[1],
40
- "right stick x": self.axis[2],
41
- "right stick y": self.axis[3],
42
- "right trigger": self.buttons[7],
43
- "left trigger": self.buttons[6],
44
- "dhat x": self.hats[0][0],
45
- "dhat y": self.hats[0][1],
46
- "left button": self.buttons[4],
47
- "right button": self.buttons[5],
48
- "X button": self.buttons[0],
49
- "Y button": self.buttons[3],
50
- "A button": self.buttons[1],
51
- "B button": self.buttons[2],
52
- "left stick button": self.buttons[10],
53
- "right stick button": self.buttons[11],
54
- "back button": self.buttons[8],
55
- "start button": self.buttons[9],
38
+ "r2 trigger": 7,
39
+ "l2 trigger": 6,
40
+ "l1 button": 4,
41
+ "r1 button": 5,
42
+ "X button": 0,
43
+ "Y button": 3,
44
+ "A button": 1,
45
+ "B button": 2,
46
+ "left stick button": 10,
47
+ "right stick button": 11,
48
+ "back button": 8,
49
+ "start button": 9,
56
50
  "logo button": None
57
51
  }
58
52
  print(f"{self.name} connected.")
@@ -35,25 +35,17 @@ class LogitechF310Controller(ControlsBase):
35
35
  self.buttons: list = [self.device.get_button(b) for b in range(self.numbuttons)]
36
36
  self.input_mode = InputMode.XInput
37
37
  self.mapping = {
38
- "left stick x": self.axis[0],
39
- "left stick y": self.axis[1],
40
- "right stick x": self.axis[3],
41
- "right stick y": self.axis[4],
42
- "right trigger": self.axis[2],
43
- "left trigger": self.axis[5],
44
- "dhat x": self.hats[0][0],
45
- "dhat y": self.hats[0][1],
46
- "left button": self.buttons[4],
47
- "right button": self.buttons[5],
48
- "X button": self.buttons[2],
49
- "Y button": self.buttons[3],
50
- "A button": self.buttons[0],
51
- "B button": self.buttons[1],
52
- "left stick button": self.buttons[9],
53
- "right stick button": self.buttons[10],
54
- "back button": self.buttons[6],
55
- "start button": self.buttons[7],
56
- "logo button": self.buttons[8]
38
+ "l1 button": 4,
39
+ "r1 button": 5,
40
+ "X button": 2,
41
+ "Y button": 3,
42
+ "A button": 0,
43
+ "B button": 1,
44
+ "left stick button": 9,
45
+ "right stick button": 10,
46
+ "back button": 6,
47
+ "start button": 7,
48
+ "logo button": 8
57
49
  }
58
50
  print(f"{self.name} connected.")
59
51
 
@@ -37,25 +37,17 @@ class LogitechF510Controller(ControlsBase):
37
37
  self.buttons: list = []
38
38
  self.input_mode: InputMode.DirectInput
39
39
  self.mapping = {
40
- "left stick x": self.axis[0],
41
- "left stick y": self.axis[1],
42
- "right stick x": self.axis[3],
43
- "right stick y": self.axis[4],
44
- "right trigger": self.axis[2],
45
- "left trigger": self.axis[5],
46
- "dhat x": self.hats[0][0],
47
- "dhat y": self.hats[0][1],
48
- "left button": self.buttons[4],
49
- "right button": self.buttons[5],
50
- "X button": self.buttons[2],
51
- "Y button": self.buttons[3],
52
- "A button": self.buttons[0],
53
- "B button": self.buttons[1],
54
- "left stick button": self.buttons[9],
55
- "right stick button": self.buttons[10],
56
- "back button": self.buttons[6],
57
- "start button": self.buttons[7],
58
- "logo button": self.buttons[8]
40
+ "l1 button": 4,
41
+ "r1 button": 5,
42
+ "X button": 2,
43
+ "Y button": 3,
44
+ "A button": 0,
45
+ "B button": 1,
46
+ "left stick button": 9,
47
+ "right stick button": 10,
48
+ "back button": 6,
49
+ "start button": 7,
50
+ "logo button": 8
59
51
  }
60
52
  print(f"{self.name} connected.")
61
53
 
@@ -37,25 +37,17 @@ class LogitechF710Controller(ControlsBase):
37
37
  self.buttons: list = []
38
38
  self.input_mode: InputMode.DirectInput
39
39
  self.mapping = {
40
- "left stick x": self.axis[0],
41
- "left stick y": self.axis[1],
42
- "right stick x": self.axis[3],
43
- "right stick y": self.axis[4],
44
- "right trigger": self.axis[2],
45
- "left trigger": self.axis[5],
46
- "dhat x": self.hats[0][0],
47
- "dhat y": self.hats[0][1],
48
- "left button": self.buttons[4],
49
- "right button": self.buttons[5],
50
- "X button": self.buttons[2],
51
- "Y button": self.buttons[3],
52
- "A button": self.buttons[0],
53
- "B button": self.buttons[1],
54
- "left stick button": self.buttons[9],
55
- "right stick button": self.buttons[10],
56
- "back button": self.buttons[6],
57
- "start button": self.buttons[7],
58
- "logo button": self.buttons[8]
40
+ "l1 button": 4,
41
+ "r1 button": 5,
42
+ "X button": 2,
43
+ "Y button": 3,
44
+ "A button": 0,
45
+ "B button": 1,
46
+ "left stick button": 9,
47
+ "right stick button": 10,
48
+ "back button": 6,
49
+ "start button": 7,
50
+ "logo button": 8
59
51
  }
60
52
  print(f"{self.name} connected.")
61
53
 
@@ -13,26 +13,18 @@ class XboxSeriesXController(ControlsBase):
13
13
  self.numbuttons: int = self.device.get_numbuttons()
14
14
  self.buttons: list = [self.device.get_button(b) for b in range(self.numbuttons)]
15
15
  self.mapping = {
16
- "left stick x": self.axis[0],
17
- "left stick y": self.axis[1],
18
- "right stick x": self.axis[2],
19
- "right stick y": self.axis[3],
20
- "right trigger": self.axis[4],
21
- "left trigger": self.axis[5],
22
- "dhat x": self.hats[0][0],
23
- "dhat y": self.hats[0][1],
24
- "left button": self.buttons[6],
25
- "right button": self.buttons[7],
26
- "X button": self.buttons[3],
27
- "Y button": self.buttons[4],
28
- "A button": self.buttons[0],
29
- "B button": self.buttons[1],
30
- "left stick button": self.buttons[13],
31
- "right stick button": self.buttons[14],
32
- "logo button": self.buttons[12],
33
- "share button": self.buttons[15],
34
- "list button": self.buttons[11],
35
- "copy button": self.buttons[10]
16
+ "l1 button": 6,
17
+ "r1 button": 7,
18
+ "X button": 3,
19
+ "Y button": 4,
20
+ "A button": 0,
21
+ "B button": 1,
22
+ "left stick button": 13,
23
+ "right stick button": 14,
24
+ "logo button": 12,
25
+ "share button": 15,
26
+ "list button": 11,
27
+ "copy button": 10
36
28
  }
37
29
  print(f"{self.name} connected.")
38
30
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygameControls
3
- Version: 0.1.9
3
+ Version: 0.1.11
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.9',
6
+ version='0.1.11',
7
7
  packages=find_packages(),
8
8
  install_requires=[],
9
9
  author='Jan Lerking',
File without changes