Skip to content

Commit

Permalink
Fixed controller.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuschang committed Nov 13, 2020
1 parent 12fe772 commit e11035f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e11035f

Please sign in to comment.