From 89e6c31a783f7b0f544fa2859dc5092ca027b52a Mon Sep 17 00:00:00 2001 From: cra0zy Date: Tue, 15 Mar 2016 19:21:04 +0100 Subject: [PATCH] Fix axis range --- 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 22f5077c..2859cea5 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 = (short)(-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 = (short)(-value); + right_stick_y = (short)~value; } if ((axis & GamePadAxes.LeftTrigger) != 0)