Made KEYDOWN event more flexible

This commit is contained in:
2025-06-26 14:51:06 +01:00
parent a1c5641eee
commit 94fa33ebd0

View File

@ -149,7 +149,8 @@ class Game(gameUtils.Game):
Args:
event (pygame.Event): The event that was fired.
"""
if event.type == pygame.KEYDOWN and event.key == pygame.K_SPACE:
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_SPACE:
self.wheelSpinSpeed = random.randint(*self.WHEEL_SPEED_RANGE)
self.wheelAnimStart = time.perf_counter()