From d0efd76edf69f8662bd5f7e63d8fe83d86077f7c Mon Sep 17 00:00:00 2001 From: Thomas Altenburger Date: Fri, 8 Jan 2016 09:13:26 +0100 Subject: [PATCH] Invert Y axis on all GamePad --- Source/OpenTK/Input/GamePadState.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Input/GamePadState.cs b/Source/OpenTK/Input/GamePadState.cs index 2ab66fe0..22f5077c 100644 --- a/Source/OpenTK/Input/GamePadState.cs +++ b/Source/OpenTK/Input/GamePadState.cs @@ -171,7 +171,7 @@ namespace OpenTK.Input if ((axis & GamePadAxes.LeftY) != 0) { - left_stick_y = value; + left_stick_y = (short)(-value); } if ((axis & GamePadAxes.RightX) != 0) @@ -181,7 +181,7 @@ namespace OpenTK.Input if ((axis & GamePadAxes.RightY) != 0) { - right_stick_y = value; + right_stick_y = (short)(-value); } if ((axis & GamePadAxes.LeftTrigger) != 0)