From 4c731401ff32d20e48271b214076f18ef92f08fb Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 28 Jun 2023 18:19:34 -0700 Subject: [PATCH] fix vertical axis on axis buttons being backwards --- src/Input/Gamepad.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Input/Gamepad.cs b/src/Input/Gamepad.cs index 14c9982..8ed4f5b 100644 --- a/src/Input/Gamepad.cs +++ b/src/Input/Gamepad.cs @@ -100,13 +100,13 @@ namespace MoonWorks.Input LeftXLeft = new AxisButton(LeftX, false); LeftXRight = new AxisButton(LeftX, true); - LeftYUp = new AxisButton(LeftY, false); - LeftYDown = new AxisButton(LeftY, true); + LeftYUp = new AxisButton(LeftY, true); + LeftYDown = new AxisButton(LeftY, false); RightXLeft = new AxisButton(RightX, false); RightXRight = new AxisButton(RightX, true); - RightYUp = new AxisButton(RightY, false); - RightYDown = new AxisButton(RightY, true); + RightYUp = new AxisButton(RightY, true); + RightYDown = new AxisButton(RightY, false); TriggerLeft = new Trigger(this, TriggerCode.Left, SDL.SDL_GameControllerAxis.SDL_CONTROLLER_AXIS_TRIGGERLEFT); TriggerRight = new Trigger(this, TriggerCode.Right, SDL.SDL_GameControllerAxis.SDL_CONTROLLER_AXIS_TRIGGERRIGHT);