PygameToolsKit 1.2.5__py3-none-any.whl → 1.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.
@@ -24,4 +24,12 @@ class KeyManager:
24
24
 
25
25
  @OnKey([pygame.K_d, pygame.K_RIGHT])
26
26
  def get_right(self):
27
- return Direction.RIGHT
27
+ return Direction.RIGHT
28
+
29
+ def get_direction(self):
30
+ for method in dir(self):
31
+ if method.startswith("get_"):
32
+ direction = getattr(self, method)()
33
+ if direction:
34
+ return direction
35
+ return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PygameToolsKit
3
- Version: 1.2.5
3
+ Version: 1.2.6
4
4
  Summary: Bibliothèque qui dispose de divers classes, fonctions et décorateurs pour aider au développement avec pygame
5
5
  Requires-Dist: DecoratorsToolKit>=1.0.0
6
6
  Requires-Dist: pygame-ce>=2.5.0
@@ -10,10 +10,10 @@ PygameToolsKit/Event/isEventObject.py,sha256=bIPWAhwNwiQUWb6kYYHGhjmR1s8sDa1-CDH
10
10
  PygameToolsKit/Graphics/color.py,sha256=TcKiyq7CnGHdEnAE3u17Fnrc6Mj5L1hh8p9Vt247Whg,424
11
11
  PygameToolsKit/Inputs/dir.py,sha256=w8KDqO82T8DMnT45ZNHYbOvSFQ7lDVZLzJvs0jqbz8A,197
12
12
  PygameToolsKit/Inputs/joystickManager.py,sha256=OdegoO72DYByhrlUpC-3vm3X2Qw9vxnlJeIZApJB6Ls,808
13
- PygameToolsKit/Inputs/keyManager.py,sha256=5CJlQvLv4zr_1sgPeiLGSR4afHcsoxMjUqjZjTX6mWU,540
13
+ PygameToolsKit/Inputs/keyManager.py,sha256=1XK30sdH1sZbqrpAdoNoD2_SROIMDEMGSSA2xnFYGqo,792
14
14
  PygameToolsKit/Update/update.py,sha256=xqXIZxqewDXjB0F1QcXrV2V8E_0ReE6LMNG9F3EkCPY,268
15
15
  PygameToolsKit/Update/updateManager.py,sha256=Ae-HQmHa_-dL8lITEW6P9KKmH_xGCVG74UBILhiq1lM,416
16
- pygametoolskit-1.2.5.dist-info/METADATA,sha256=gs0CL5f-GHq5NxQ84NLL2DoIOGAfdAoj5Ki8fHRJKvM,257
17
- pygametoolskit-1.2.5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
18
- pygametoolskit-1.2.5.dist-info/top_level.txt,sha256=eJgRVhXT3DMSHVT7aoeiviyxfvIjKODNnYKm4OccqRw,15
19
- pygametoolskit-1.2.5.dist-info/RECORD,,
16
+ pygametoolskit-1.2.6.dist-info/METADATA,sha256=l6DipUNwBj9xgFcjqyoI8VGjkjHOsGfKt7T12uJQ8Xs,257
17
+ pygametoolskit-1.2.6.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
18
+ pygametoolskit-1.2.6.dist-info/top_level.txt,sha256=eJgRVhXT3DMSHVT7aoeiviyxfvIjKODNnYKm4OccqRw,15
19
+ pygametoolskit-1.2.6.dist-info/RECORD,,