Skip to content

Commit

Permalink
Reverse joystick x and y in PyGamer
Browse files Browse the repository at this point in the history
  • Loading branch information
deshipu committed Jun 19, 2019
1 parent 0dce331 commit 6d1ae72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygamer/ugame.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def __init__(self):
digitalio.DigitalInOut(board.BUTTON_OUT),
digitalio.DigitalInOut(board.BUTTON_LATCH),
)
self.joy_x = analogio.AnalogIn(board.JOYSTICK_Y)
self.joy_y = analogio.AnalogIn(board.JOYSTICK_X)
self.joy_x = analogio.AnalogIn(board.JOYSTICK_X)
self.joy_y = analogio.AnalogIn(board.JOYSTICK_Y)

def get_pressed(self):
pressed = self.buttons.get_pressed()
Expand Down

0 comments on commit 6d1ae72

Please sign in to comment.