From b13c84f8541ab9dcb4f6d8ca0605cbb0012869d4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 7 Nov 2013 20:45:29 +0100 Subject: [PATCH] Removed joystick axis value negation on OS X. --- README.md | 1 + src/cocoa_joystick.m | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 2634213c..3400a59e 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ guide in the GLFW documentation. differently from the Khronos `glext.h` - [Cocoa] Bugfix: Creating hidden windows would steal application focus - [Cocoa] Bugfix: Controllers were reported as having zero buttons and axes + - [Cocoa] Bugfix: Removed joystick axis value negation left over from GLFW 2 - [X11] Added setting of the `WM_CLASS` property to the initial window title - [X11] Bugfix: Removed joystick axis value negation left over from GLFW 2 - [X11] Bugfix: The position of hidden windows was ignored by Metacity diff --git a/src/cocoa_joystick.m b/src/cocoa_joystick.m index e333ab7e..7af1042b 100644 --- a/src/cocoa_joystick.m +++ b/src/cocoa_joystick.m @@ -251,9 +251,6 @@ static void pollJoystickEvents(void) joystick->axes[i] = value; else joystick->axes[i] = (2.f * (value - axis->minReport) / readScale) - 1.f; - - if (i & 1) - joystick->axes[i] = -joystick->axes[i]; } for (i = 0; i < CFArrayGetCount(joystick->hatElements); i++)