From e11035f4121780d609bbc7c56511ce3b9df91e00 Mon Sep 17 00:00:00 2001 From: Chang <61498020+ChangProg@users.noreply.github.com> Date: Thu, 12 Nov 2020 23:32:51 -0300 Subject: [PATCH] Fixed controller.py --- controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.py b/controller.py index 448e95e..9f87789 100644 --- a/controller.py +++ b/controller.py @@ -158,7 +158,7 @@ def check_event(self, event, menu: object, screen, clock): self.x_hd -= 5 if self.x_hd - 5 >= min_px_hd else 0 return self.x_hd - if abs(event.axis) == 2: + if abs(event.axis) == 4: if event.value == 1: play_again = menu.run(screen, clock) if not play_again: @@ -213,7 +213,7 @@ def check_event(self, event, menu: object, screen, clock): self.x_hd -= 5 if self.x_hd - 5 >= min_px_hd else 0 return self.x_hd - if abs(event.axis) == 3: + if abs(event.axis) == 2: if event.value == 1: play_again = menu.run(screen, clock) if not play_again: