From 6d1ae72916cf240ea86185c45f844d59f56d8ec3 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Wed, 19 Jun 2019 21:28:11 +0200 Subject: [PATCH] Reverse joystick x and y in PyGamer --- pygamer/ugame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygamer/ugame.py b/pygamer/ugame.py index 0482226..336a1eb 100644 --- a/pygamer/ugame.py +++ b/pygamer/ugame.py @@ -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()